Image Size when bringing pix into Photoshop from a Camera

I'm using Photoshop CS2 on XP Media Center Edition. I cannot, for the life of me, find out how set the default dpi of images being brought into Photoshop.
At the moment I'm using an Action but that's pretty time intensive when I have to bring in more than a few photos. Sometimes I have 2 or 3 hundred to do.
Can anyone help me?
Thanks in advance for any assistance you can give me.
JJ

Images are made of pixels. ppi has nothing to do with the characteristics of an image file. The ppi is only a suggested setting if placed in the metadata of an image file. You can print your image at any size you want regardless of the ppi embedded in the file. Some printers will assume you want to use the embedded ppi setting but again this can be overridden.
So, Printed images have ppi. (image files do not, until they are printed)
So ask yourself, why are you trying to set the default ppi (you say dpi) of the image files? What are you going to use this metadata information for. Normally I just ignore this ppi metadata since it really does not mean anything, other than possibly the physical size you meant to print your image, but again it can be overridden at the time of printing.

Similar Messages

  • Every since I updated to the latest Camera Raw and Photoshop I have the following issue: when I finish the photo in Raw and bring it into Photoshop I have white squares in the Photo. If I crop the photo the white square disappears until I zoom to enlarge

    Every since I updated to the latest Camera Raw and Photoshop I have the following issue: when I finish the photo in Raw and bring it into Photoshop I have white squares in the Photo. If I crop the photo the white square disappears until I zoom to enlarge it then the white square reappears. I do not believe the squares are saved

    Does turning off »Use Graphics Processor« in the Performance Preferences and restarting Photoshop have any bearing on the issue?
    Please read this (in particular the section titled "Supply pertinent information for quicker answers"):
    http://forums.adobe.com/docs/DOC-2325

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • I am getting the following error message when I try to import photos into iPhoto from my camera: "/private/var/folders/GB/GBl4wh8-ELqUVMI5dO-ryU   TI/-Tmp-/iPhoto/DSCF2033.JPG".  Have already tried removing and reinstalling iPhoto to no avail.

    I am getting the following error message when I try to import photos into iPhoto from my camera: "/private/var/folders/GB/GBl4wh8-ELqUVMI5dO-ryU   TI/-Tmp-/iPhoto/DSCF2033.JPG".  Have already tried removing and reinstalling iPhoto to no avail.

    Does this happen if you try to Import to Library within iPhoto, or is it when you connect your camera (and which is set to automatically use iPhoto) that this error message occurs?
    If you open Image Capture > Preferences is iPhoto selected as the choice when a camera is connected?

  • Is there any options/addons for selecting/changing image size when viewing images?

    When clicking to open images when on web pages there is no option to select size.
    I'm looking at some pages that have images (mostly jpg) I like to compare and that is very hard when all images open in a size that normally fill most of the browser window.
    So I wonder if there is some hidden options or addons for selecting image size when opening images for viewing?
    I have tried Image resizer/scaler, image zoom and show picture with mix results. Image resizer/scaler and image zoom allow resizing of images, but when opening images on same tab as web page the white image "frame" that is visible when reducing image size is left in original size. This make viewing and opening other pages a hazard.
    I'm grateful for any help...cheers :-)
    Picture of white frame
    http://s25.postimg.org/z1ubo6zun/Remove_Exterior_Fog_at_Skyrim_Nexus_mods_and_c.png

    hehe no offense, but I'm not following the version rushing from Mozilla. I'm using many customizations and addons and it is a nightmare to change to a new version and practically impossible to use last version. Also the FIrefox history have shown that earlier versions have both been more stable and had better implementation of features.
    Spending hours customizing and finding out that addons dont work with new version every time Firefox come with a new version , no thanks. For that to happen Firefox have to be more compatible across versions and more friendly toward customization in updates and new versions. I have used Firefox for at least 8-9 years with practically no security problems and one thing I have learned is: dont update or install next version if the version I have is working well.
    Maybe I should have mentioned this in this question, that Im using v26 and that my FIrefox is heavily modified with addons and customizations.
    '''Back to the subject'''
    Anyway I dont think any of my customizations or addons should create a white frame behind images, but I'm asking to find out if you guys also get this white frame when resizing pictures to a smaller size after clicking images for viewing.

  • As  increase DPI, image size is also  increase in photoshop scripting ?

    as  increase DPI, image size is also  increase in photoshop scripting can please tell me what  will the reason for that?

    Hi JJMACK,
                      I am using adobe  Flex with  Photoshop scripting . I am sending  Flex file  with parameter to generate .psd.Right now i am able to generate 72 DPI with proper image size while  I am generating  .psd with  250 DPI with Improper Size.
    E.g
    This is my  flex parameters
    MgrPSAction.instance.FinishLayoutToPhotoshop(curFl , savedType ,TemplateConstant.TM_LEFT,getPSDImageName(objItem,TemplateConstant.TM_LEFT_RIGHT), objItem.LayoutTMLWidth,objItem.LayoutTMLHeight ,pageDPI,returnPhotoshopHandler,
    true,setWidth , setHeight,formatQty); ----- Page DPI - > like 72 or 250 paasing  from here.
    below is Scirpt ot resize
    function openFileAndResize(xp,yp,wi,hi,imagepath)
    var fileRef = new File(imagepath);
    var curRefDoc = app.open(fileRef);
    var curw = curRefDoc.width;
    var curh = curRefDoc.height;
    var resW;
    var resH;
    var scw = imgObj.wi/curw;
    var sch = imgObj.hi/curh;
    var scale ;
    if(scw > sch)
    scale = scw;
    else
    scale = sch;
    resW = curw * scale;
    resH = curh * scale;
    if(imgObj.isAdjustImage == "true")
    resW = resW * parseFloat (imgObj.scaleOrg);
    resH = resH * parseFloat (imgObj.scaleOrg);
    // Resize Image=======================================================
    var idImgS = charIDToTypeID( "ImgS" );
    var desc226 = new ActionDescriptor();
    var idWdth = charIDToTypeID( "Wdth" );
    var idPxl = charIDToTypeID( "#Pxl" );
    desc226.putUnitDouble( idWdth, idPxl, resW);
    var idHght = charIDToTypeID( "Hght" );
    var idPxl = charIDToTypeID( "#Pxl" );
    desc226.putUnitDouble( idHght, idPxl, resH );
    var idIntr = charIDToTypeID( "Intr" );
    var idIntp = charIDToTypeID( "Intp" );
    var idBcbc = charIDToTypeID( "Bcbc" );
    desc226.putEnumerated( idIntr, idIntp, idBcbc );
    executeAction( idImgS, desc226, DialogModes.NO );
    // Select Image=======================================================
    var idsetd = charIDToTypeID( "setd" );
    var desc263 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref138 = new ActionReference();
    var idChnl = charIDToTypeID( "Chnl" );
    var idfsel = charIDToTypeID( "fsel" );
    ref138.putProperty( idChnl, idfsel );
    desc263.putReference( idnull, ref138 );
    var idT = charIDToTypeID( "T " );
    var idOrdn = charIDToTypeID( "Ordn" );
    var idAl = charIDToTypeID( "Al " );
    desc263.putEnumerated( idT, idOrdn, idAl );
    executeAction( idsetd, desc263, DialogModes.NO );
    //Copy Image=======================================================
    var idcopy = charIDToTypeID( "copy" );
    executeAction( idcopy, undefined, DialogModes.NO );
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    //Create Temp Layer for image adjustment =======================================================
    //createApplication(wi,hi,dpi,"imagelayerdoc");
    createApplication(wi,hi,dpi,layerAppName);
    //var curDoc = getCurDoc('imagelayerdoc');
    //get Active Temp Layer for image adjustment =======================================================
    var curDoc = getCurDoc(layerAppName);
    app.activeDocument = curDoc;
    // Past Copy image in Temp Layer for image adjustment =======================================================
    var idpast = charIDToTypeID( "past" );
    var desc250 = new ActionDescriptor();
    var idAntA = charIDToTypeID( "AntA" );
    var idAnnt = charIDToTypeID( "Annt" );
    var idAnno = charIDToTypeID( "Anno" );
    desc250.putEnumerated( idAntA, idAnnt, idAnno );
    executeAction( idpast, desc250, DialogModes.NO );
    // HERE YOU NEED TO SET XY POSTION OF IMAGE
    positionLayer(app.activeDocument.activeLayer,imgObj.moveX,imgObj.moveY);
    cropImage();
    Please reply if have answer...
    Thanks

  • When trying to upload pictures from my camera I get this message although I have uploaded from the same camera in the pastiPhoto cannot import your photos because there was a problem downloading an image.

    When trying to upload pictures from my camera I get this message although I have uploaded from the same camera in the past, "iPhoto cannot import your photos because there was a problem downloading an image."

    Can you access the images with Image Capture (in your Applications Folder) ?

  • When loading songs into iTunes, from my external hard drive. It seems to be copying the music onto my MacBook Air.

    When loading songs into iTunes, from my external hard drive. It seems to be copying the music onto my MacBook Air.
    How do i have iTunes only read the songs from my hard drive, rather then copying them?

    You may find these Links of Interest...
    Moving iTunes Media Folder
    http://support.apple.com/kb/HT1449
    http://macmost.com/moving-your-itunes-media-to-an-external-drive.html

  • When i try installing photoshop from adobe creative cloud it says: fail on update, try again, i try again and says the same

    When i try installing photoshop from adobe creative cloud it says: fail on update, try again, i try again and says the same, any help?

    Try this link; follow the instructions carefully: Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    And also a troubleshooting page: https://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html
    Benjamin

  • When importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed.

    when importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed. need to figure out why it randomly imports differently, or how to add different file tyoes to multi cam.

    here is one that is imported and stays .mp4. the specs are same as original file before import.
    here is one that has changed somehow during import. specs on original file are same as above, but once it is imported it changes to this in event folder, and others randomly keep the above specs.

  • When I placed a video from my camera roll on my ipad to keynote on my ipad I lost sound how do you make sound work?

    When i placed a video from my camera roll on my ipad to my keynote presentation on my ipad I lost sound how do I get sound?

    Not sure of the answer, but does the sound disappear when it was added to the photo roll, or when you try to import it into Keynote?

  • Adobe Bridge CC crashes when opening file with Photoshop CC or Camera RAW!

    Adobe Bridge CC crashes when opening file with Photoshop CC or Camera RAW!
    - Tried to Reset the preference with CTRL + Click.
    - It's just new clean install didn't do anything with it yet.
    - Windows 8.
    Any help?

    Just that one project, or any project?  Can you create new projects?

  • Problems with image names when exporting - images that have come back into lightroom from photoshop

    Can anyone help ? When I need to take an image from lightroom into photoshop then back into lightroom and then I export that image, the original file number disappears and is replaced by dashes. Does anyone know how to solve this ?
    Thanks !

    The appearance of dashes usually suggests some kind of pre-set e.g.
    Wedding-20150106-0001.jpg
    The only suggestion I can make is that you check to ensure you are using the correct parameters in the templates manager.
    Photoshop Lightroom Reference Guide | Create Your Own Custom Filename Presets | Peachpit

  • Adjusting the size of an image going into Photoshop from LR2

    At the bottom of the Adobe Camera Raw converter, there is a box that allows you to either make the default RAW file smaller or larger as it goes into PS. In Lightroom 2, I found the Edit In command, and the options to change to 16 bit and the color profile picker, but I don't see a command to change the size of the image.
    Any help would be appreciated.
    M. Jackson

    It's not there. It will only go into Photoshop at native resolution. Then it is one second work to scale it in Photoshop if you really need to.

  • Wrong image size when placing

    When I try to place a picture in photoshop CS6 either from drag&drop in the application window or from the place command, my image gets automatically resized based on the resolution (pixels per inch) of my document.
    Example:
    I create a new blank document, 1000*1000px @ 300ppi.
    I have another image that I want to place in the document and this image measures 500*500px @ 100ppi.
    I then go to File->Place  and the image that appears is way too big.  In the Info panel, it says that the image is 1500x1500 and the transform settings at the top indicate that the image hasen't been scaled because both width and height are at 100%
    If I cahnge my document resolution (no resample) to 100ppi, the image has the right size when I place it.
    So my question is:  Is this normal?  Because it has never done that with past versions of Photoshop.  If it is normal, is there a way I can change this because placing an image based on it's physical (printed) size makes absolutely no sense.  1 pixel = 1 pixel.
    Thank you for your help

    Once you understand how Photoshop works you can batch some some things you create some actions for.  Size is difficult to deal with in actions and often you will have problems dealing with aspect ratios and image orientation.
    To automate a process well scripting is more powerful then actions for you can use logic to solve problem area involving sizing, orientation, aspect ratios and positioning.  You can size an image to cover an area then mask off any excess to virtually crop the image to the areas aspect ratio.  If you download my Photoshop Photo Collage Toolkit there are script that create composite that can deal with any size image.
    One script PasteImageRoll.jsx can past selected images into a document to be print on roll paper. Images will be tiled into the document some images may be rotated for a better fit for the tiles aspect ratio. Image will be resized to fill the tile area and masked to virtually make a center crop of the images.  Other scripts will place in images file into collage template as smart object layers. Smart object images layers will be scaled to fit the various templates images areas position over the area and masked to the area. Link Documentation and Examples for the toolkit and Link Paste Image Roll Script Information
    Scripting is very powerful you can even open image off the web using its URL even stack all the image on a web page using its url
    OpenImageFromWeb.jsx
    // OpenImageFromWeb.jsx
    // Copyright 2006-2009
    // Written by Jeffrey Tranberry
    // Photoshop for Geeks Version 3.0
    // modified by MLH
    // modified by JJMACK 2010
    <javascriptresource>
    <about>$$$/JavaScripts/OpenImageFromWeb/About=JJMack's OpenImageFromWeb.^r^rCopyright 2010 Mouseprints.^r^rJJMack's Script.^rOpen Image From Web as a Placed smart object layer!</about>
    <category>JJMack's Script</category>
    </javascriptresource>
    Description:
    This sample script shows how to download images from a web server using the
    Socket object.
    // Note: Socket.read() parameter & behavior
    // Socket.read() will read or time out. It may not read all data fromserver. <---------------
    // Socket.read(999999) will read 999999 bytes, or timeout, or socket will be
    // closed by the server.
    // enable double clicking from the
    // Macintosh Finder or the Windows Explorer
    #target photoshop
    // Make Photoshop the frontmost application
    app.bringToFront();
    // SETUP
    var html = "";
    var request = "";
    var url = "";
    var binary = "";
    var requesthtml = "";
    var socket = new Socket;
    var domain = "www.mouseprints.net" // the domain for the file we want
    var sImg = "/old/dpr/JJMack8btiSrgb.png"; // the rest of the url for the file we want
    var port = ":80"; // the port for the file we want
    // MAIN
    var url = prompt("Enter the image's full URL http://domain/full image path",url);   // prompt for domain name
    if (url != null && url != ""){
              if ( (url.indexOf("http://") != -1)  || (url.indexOf("HTTP://") != -1)  ) {
                        domainPathLength = url.length - "http://".length;
                        domainPath = url.substr(7, domainPathLength);
                        pathOffset = domainPath.indexOf("/");
                        domain = domainPath.substr(0, pathOffset);
                        sImg = domainPath.substr(pathOffset, domainPath.length - pathOffset );
                        // Isolate Image name
                        var Name =  sImg
                        var imagePath = "";
                        while (Name.indexOf("/") != -1 ) {                                        // Strip Path
                                  imagePath= imagePath + Name.substr(0, Name.indexOf("/") + 1);
                                  Name = Name.substr(Name.indexOf("/") + 1 ,);
                        //alert("domain = " +  domain + " , Image = " + sImg + " Image File Name = " + Name);
                        if ( domain != "" && sImg != "" && sImg != "/" && Name.indexOf(".") != -1 ) {
                                  var f = File("~/" + Name); // Image file name
                                  f.encoding = "binary"; // set binary mode
                                  f.open("w");
                                  if (socket.open(domain + port, "binary")){
                                            //alert("GET " + sImg +" HTTP/1.0\n\n");
                                            requesthtml ="\n\nDmain:" + domain + " Port" + port + " binary\n"
                                            request ="GET " + sImg +" HTTP/1.0\n\n"
                                            socket.write(request); // get the file
                                            var binary = socket.read(99999999);
                                            binary = removeHeaders(binary);
                                            f.write(binary);
                                            socket.close();
                                  else { alert("Connection to Domain:" + domain + " Port" + port + " Failed   ");}
                                  f.close();
                                  if (binary.length != 0) {
                                            //alert ("file length = " + binary.length );
                                            if(app.documents.length == 0) {
                                                      //app.documents.add([width] [, height] [, resolution] [, name] [, mode] [, initialFill] [,pixelAspectRatio] [, bitsPerChannel] [,colorProfileName])
                                                      app.documents.add(new UnitValue(1600,'px'), new UnitValue(1200,'px'), 72, null, NewDocumentMode.RGB, DocumentFill.WHITE, 1,BitsPerChannelType.EIGHT, "sRGB IEC61966-2.1" );
                                            placeSmartObject( f );
                                  f.remove(); // Remove temporary downloaded files
                        else { alert("Invalid Image URL: " + url ); }
              else { alert("Invalid URL: " + url ); }
    else { if ( url == "" ) alert("No URL Entered"); }
    // FUNCTIONS
    function placeSmartObject(fileRef){
              //create a new smart object  layer using a file
              try {
                        var desc = new ActionDescriptor();
                                  desc.putPath( charIDToTypeID( "null" ), new File( fileRef ) );
                                  desc.putEnumerated( charIDToTypeID( "FTcs" ), charIDToTypeID( "QCSt" ),charIDToTypeID( "Qcsa" ));
                                  desc.putUnitDouble( charIDToTypeID( "Wdth" ),charIDToTypeID( "#Prc" ), 100 );
                                  desc.putUnitDouble( charIDToTypeID( "Hght" ), charIDToTypeID( "#Prc" ), 100 );
                                  desc.putUnitDouble( charIDToTypeID( "Angl" ), charIDToTypeID( "#Ang" ), 0 );
                                  desc.putBoolean( charIDToTypeID( "Lnkd" ), true );
                        executeAction( charIDToTypeID( "Plc " ), desc, DialogModes.NO );
                        activeDocument.activeLayer.resize(100 ,100,AnchorPosition.MIDDLECENTER);
                        activeDocument.revealAll();
              } catch (e) { alert("Placeing file: '" + fileRef + "' failed"); }
    // Remove header lines from HTTP response
    function removeHeaders(binary){
              var bContinue = true ; // flag for finding end of header
              var line = "";
              var httpheader = "";
              var nFirst = 0;
              var count = 0;
              while (bContinue) {
                        line = getLine(binary) ; // each header line
                        httpheader = httpheader + line;
                        bContinue = line.length >= 2 ; // blank header == end of header
                        nFirst = line.length + 1 ;
                        binary = binary.substr(nFirst) ;
              if (httpheader.indexOf("Bad Request") != -1 || httpheader.indexOf("Not Found") != -1) {
                        alert (requesthtml + request + httpheader);
                        var binary = "";
              //alert (requesthtml + request + httpheader + "\nFile length = " + binary.length);
              return binary;
    // Get a response line from the HTML
    function getLine(html){
              var line = "" ;
              for (var i = 0; html.charCodeAt(i) != 10; i++){ // finding line end
                        line += html[i] ;
              return line ;
    StackWebPageImages.jsx
    // Copyright 2007.  Adobe Systems, Incorporated.  All rights reserved.
    // This script demonstrates how to download images from a web server using the Socket object.
    // Adobe's Socket.jsx Photoshop sample javascript
    // modified by JJMACK 2011
    <javascriptresource>
    <about>$$$/JavaScripts/StackWebPageImages/About=JJMack's StackWebPageImages.^r^rCopyright 2011 Mouseprints.^r^rJJMack's Script.^rPlaces Images used in a Web page as smart object layers in stack in a new document!^rOnly images embedded coded with path relative to the domains root will be Placed though.^rImages that fail to be placed may be Placed into the document using your browser right click to copy image URL.^rThen paste that URL into the OpenImageFromWeb script URL input field. </about>
    <category>JJMack's Script</category>
    </javascriptresource>
    // Note: Socket.read() parameter & behavior
    // Socket.read() will read or time out. It may not read all data from server.
    // Socket.read(999999) will read 999999 bytes, or timeout, or socket will be
    // closed by the server.
    // Settings
    #target photoshop
    app.bringToFront(); // bring top
    //if("en_US" == $.locale) { // display only US build
    //          alert("This sample script shows how to download images from a web server using the Socket object.");
    // Remove header lines from HTTP response
    function removeHeaders(binary)
              var bContinue = true ; // flag for finding end of header
              var line = "";
              var nFirst = 0;
              var count  = 0;
              while (bContinue) {
                        line = getLine(binary) ; // each header line
                        bContinue = line.length >= 2 ;  // blank header == end of header
                        nFirst = line.length + 1 ;
                        binary = binary.substr(nFirst) ;
              return binary;
    // Get a response line from the HTML
    function getLine(html)
              var line = "" ;
              for (var i = 0; html.charCodeAt(i) != 10; i++){ // finding line end
                        line += html[i] ;
              return line ;
    var socket = new Socket;
    var port = "80";
    var html = "";
    //if (socket.open("www.adobe.com:80")){
    //          socket.write("GET /index.html HTTP/1.0\n\n");
    //          html = socket.read(9999999);
    //          socket.close();
    var url = "";
    var url = prompt("Enter the Web page full URL the images are in like http://domain/index.html",url);   // prompt web page
    if (url != null && url != ""){
              if ( (url.indexOf("http://") != -1)  || (url.indexOf("HTTP://") != -1)  ) {
                        domainPathLength = url.length - "http://".length;
                        domainPath = url.substr(7, domainPathLength);
                        if ( domainPath.indexOf("/") != -1 ) {
                                  pathOffset = domainPath.indexOf("/");
                                  domain = domainPath.substr(0, pathOffset);
                                  wPage= domainPath.substr(pathOffset, domainPath.length - pathOffset );
                        else {
                                  domain = domainPath;
                                    wPage = "/";
                        // Isolate Page name
                        var pName=  wPage;
                        var pagePath = "";
                        while (pName.indexOf("/") != -1 ) {
                                  pagePath= pagePath + pName.substr(0, pName.indexOf("/") + 1);
                                  pName = pName.substr(pName.indexOf("/") + 1 ,);
                        //if (socket.open("www.adobe.com:80")){
                        if (socket.open(domain +":" + port)){
                                  //alert("GET page = " + wPage + " HTTP/1.0\n\n");
                                  socket.write("GET " + wPage + " HTTP/1.0\n\n");
                                  html = socket.read(9999999);
                                  socket.close();
                                  //var aImg = html.match(/src=\"\/images\/(.*?)\"/g);                    //  src="/images/~~~"
                                  //var aImg = html.match(/img src=\"(.*?)\"/g);                              // img src="~~~"
                                  //var aImg = html.match(/img src=\"(.*?)[\"?]/g);                    // img src=["|?]~~~" 
                                  //var aImg = html.match(/img (.*?)src=\"(.*?)[\"?]/g);                    // img ~~~src="~~~" 
                                  var aImg = html.match(/<img (.*?)src=\"(.*?)\"/g);                    // <img ~~~src="~~~"
                                  //var aImg = html.match(/<img (.*?)src=\"(.*?)[\"?]/g);                    // <img ~~~src=["|?]~~~"
                                  //alert("Image List\n" + aImg);
                                  if (null != aImg) { // parsed image tags
                                            //app.documents.add([width] [, height] [, resolution] [, name] [, mode] [, initialFill] [,pixelAspectRatio] [, bitsPerChannel] [,colorProfileName])
                                            app.documents.add(new UnitValue(1600,'px'), new UnitValue(1200,'px'), 72, null, NewDocumentMode.RGB, DocumentFill.WHITE, 1,BitsPerChannelType.EIGHT, "sRGB IEC61966-2.1" );
                                            for (var i=0; i < aImg.length; i++) {
                                                      var str = aImg[i];
                                                      imageNo=i+1;
                                                      //var sImg = str.substring(5, str.length-1); // remove "src=" & ["]
                                                      //var sImg = str.substring(9, str.length-1); // remove "img src=" & ["]
                                                      var sImg = str.substring(str.indexOf('src="')+5, str.length-1); // remove "<img ... src=" & ["]
                                                      try{
                                                                if (sImg.substring(0,7) == "http://" || sImg.substring(0,7) == "HTTP://")  { placeWebImage(imageNo, sImg); } // redirect image
                                                                else {
                                                                          if (sImg.substring(0,1) != "/" ) { sImg = pagePath + sImg ; }                               // image is relative to web page path
                                                                          //else { sImg = sImg.substr(1, sImg.length - 1) ; sImg = pagePath + sImg; }          // aways include web page path bad idea
                                                                          // Isolate Image name
                                                                          var Name =  sImg;
                                                                          var imagePath = "";
                                                                          while (Name.indexOf("/") != -1 ) {                                        // Strip Path
                                                                                    imagePath= imagePath + Name.substr(0, Name.indexOf("/") + 1);
                                                                                    Name= Name.substr(Name.indexOf("/") + 1 ,);
                                                                          Name= imageNo + " " + Name;
                                                                          //var f = File("~/socket_sample_" + i + sImg.substr(sImg.length-4)); // 4 = .gif or .jpg
                                                                          var f = File("~/" + Name ); // Temp File name
                                                                          f.encoding  = "binary";  // set binary mode
                                                                          f.open("w");
                                                                          //if (socket.open("www.adobe.com:80", "binary")){
                                                                          if (socket.open(domain +":" + port, "binary")){
                                                                                    socket.write("GET " + sImg +" HTTP/1.0\n\n"); // Adobe's site image link starts with "/"
                                                                                    var binary = socket.read(9999999);
                                                                                    binary = removeHeaders(binary);
                                                                                    f.write(binary);
                                                                                    socket.close();
                                                                          else { alert("Socket Open " + domain + ":" + port + ", binary Failed"); }
                                                                          f.close();
                                                                          //app.open(f); // Open files in Photoshop
                                                                          placeSmartObject( f );
                                                                          f.remove();  // Remove temporary downloaded files
                                                      catch(e){
                                            alert("Number of images found in page = " + imageNo );
                                  else { alert("No images found for " + url); }
                        else { alert("Connection to Domain:" + domain + " Port " + port + " Failed   ");}
              else { alert("Invalid URL: " + url ); }
    else { if (url == "") alert("No URL Entered"); }
    // FUNCTIONS
    function placeSmartObject(fileRef){
              //create a new smart object layer using a file
              try {
                        var desc = new ActionDescriptor();
                                  desc.putPath( charIDToTypeID( "null" ), new File( fileRef ) );
                                  desc.putEnumerated( charIDToTypeID( "FTcs" ), charIDToTypeID( "QCSt" ),charIDToTypeID( "Qcsa" ));
                                  desc.putUnitDouble( charIDToTypeID( "Wdth" ),charIDToTypeID( "#Prc" ), 100 );
                                  desc.putUnitDouble( charIDToTypeID( "Hght" ), charIDToTypeID( "#Prc" ), 100 );
                                  desc.putUnitDouble( charIDToTypeID( "Angl" ), charIDToTypeID( "#Ang" ), 0 );
                                  desc.putBoolean( charIDToTypeID( "Lnkd" ), true );
                        executeAction( charIDToTypeID( "Plc " ), desc, DialogModes.NO );
                        activeDocument.activeLayer.resize(100 ,100,AnchorPosition.MIDDLECENTER);
                        activeDocument.revealAll();
              } catch (e) { }
    function placeWebImage(num, url){
              var socket = new Socket;
              domainPathLength = url.length - "http://".length;
              domainPath = url.substr(7, domainPathLength);
              pathOffset = domainPath.indexOf("/");
              domain = domainPath.substr(0, pathOffset);
              sImg = domainPath.substr(pathOffset, domainPath.length - pathOffset );
              // Isolate Image name
              var Name =  sImg
              var imagePath = "";
              while (Name.indexOf("/") != -1 ) {                                        // Strip Path
                        imagePath= imagePath + Name.substr(0, Name.indexOf("/") + 1);
                        Name = Name.substr(Name.indexOf("/") + 1 ,);
              Name= num + "R " + Name;
              //alert("domain = " +  domain + " , Image = " + sImg + " Image File Name = " + Name);
              if ( domain != "" && sImg != "" && sImg != "/" && Name.indexOf(".") != -1 ) {
                        var f = File("~/" + Name); // Image file name
                        f.encoding = "binary"; // set binary mode
                        f.open("w");
                        if (socket.open(domain +":" + port, "binary")){
                                  //alert("socket.write GET " + sImg +" HTTP/1.0\n\n");
                                  //socket.write("GET " + sImg +" HTTP/1.0\n\n");           // did not work
                                  socket.write("GET " + url +" HTTP/1.0\n\n");                    // use url to this server works
                                  var binary = socket.read(9999999);
                                  binary = removeHeaders(binary);
                                  f.write(binary);
                                  socket.close();
                        //else { alert("Connection to Domain:" + domain + " Port" + port + " Failed   ");}
                        f.close();
                        placeSmartObject( f );
                        f.remove(); // Remove temporary downloaded files
              //else { alert("Invalid Image URL: " + url ); }

Maybe you are looking for