Opening 16bit images in Layers

I created a sequence in Apple Motion and I want to export a single frame to use in a Photoshop project.
I am exporting from Motion as a 16bit Tiff (I also tried PSD) with an alpha channel. When I open the image in Photoshop it has a solid background!
When I use the same setttings -- but change the output to 8 bit -- it does show a transparent background.
How can I open a 16bit image with an alpha layer in PS CS3 so it has a transparent background?
Thanks
Steven

You might export it from Fireworks first, can you bring it into Photoshop as a Video frame to layer and have you tried placing it?
How are you importing it to PS are you opening it or placing it.
Have you tried bringing it into After Effects and then to Photoshop.
I have another question but I am not trying to be smart. Don't you find Motion a little bit to mysterious to work with for animation or special effects?

Similar Messages

  • Problems opening multiple images as layers from Lightroom 4 to Photoshop CS6

    I'm having trouble bringing multiple photos from Lightroom 4 into Photoshop CS6 as layers. In LR4, I select the multiple photos I want to bring in, right click and from the pop-up menu select "Edit In", then "Open as Layers In Photoshop...". Photoshop CS6 then opens but the photos do not load in. I then get an error in LR4 about a minute later that says "The files could not be edited because Adobe Photoshop CS6 could not be launched." However Photoshop just opened before I got the error. How do I fix this?

    Maybe a keyboard issue - shortcut key toggling multiple times. But, if you're sure your keyboard is fine, then try this:
    Reset LR preferences:Windows 7/ Vista: The preference setting file is Lightroom 4 Preferences.agprefs, in C:\Users\[user name]\AppData\Roaming\Adobe\Lightroom\Preferences\. Rename/ move this file to a different location. LR will recreate preferences during next launch. See if this fixes the issue. The reason we're renaming or moving it is so that if it doesn't fix the error, you can move it back there so you don't have to recreate your in-application preferences again
    Reset Photoshop preferences: Follow instructions here: http://forums.adobe.com/thread/375776
    See if either or one of the above suggestions works.
    -ST

  • Is it possible to open multiple images in Photoshop as smart layers?

    Hi All,
    After searching, I think I know the answer to this but thought I'd check, we have background plates with main images and love the open multiple images as layers option - but can you open multiple images as multiple smart object layers?
    Cheers

    This might work.
    Edit: But it is a lot less sophisticated than the Load Files into StackScript.
    // select folder and place contents as smart objects;
    // 2013, use it at your own risk;
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    // select files;
    if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog ("please select files", '*.jpg;*.tif;*.pdf;*.psd;*.bmp', true)}
    else {var theFiles = File.openDialog ("please select files", getFiles, true)};
    if (theFiles.length > 0) {
    for (var m = 0; m < theFiles.length; m++) {
              var theLayer = placeScaleFile(theFiles[m], 0, 0, 100);
    ////// get psds, tifs and jpgs from files //////
    function getFiles (theFile) {
        if (theFile.name.match(/\.(eps|ai|jpg|tif|psd|pdf|)$/i)) {
            return true
    ////// place //////
    function placeScaleFile (file, xOffset, yOffset, theScale) {
    // =======================================================
    var idPlc = charIDToTypeID( "Plc " );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc5.putPath( idnull, new File( file ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc5.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc6 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idHrzn, idPxl, xOffset );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idVrtc, idPxl, yOffset );
        var idOfst = charIDToTypeID( "Ofst" );
        desc5.putObject( idOfst, idOfst, desc6 );
        var idWdth = charIDToTypeID( "Wdth" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idWdth, idPrc, theScale );
        var idHght = charIDToTypeID( "Hght" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idHght, idPrc, theScale );
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc5.putBoolean( idLnkd, true );
    executeAction( idPlc, desc5, DialogModes.NO );
    return myDocument.activeLayer;

  • Option missing to open images as layers in Photoshop.

    The option to edit in Photoshop CS4 from Lightroom 4 and return is just fine. However, the option to Open images as layers in Photoshop is grayed out as well as the option to open as Smart Object or Merge.

    These other options work differently than the simple "Edit in..".
    The method that does work for you, with CS4, is using Photoshop as a standard external editor by means of a "dumb" interaction. LR does all the work of converting the image into a bitmp and then saving it as a TIFF or PSD. It knows just enough about the other program, to tell the operating system to start the program executable and to pass it the file that has already been created. Then it keeps an eye on the file, watching for modifications saved to it by the other application.
    The only compatibility needed between the two programs is: that PS (or whatever) can understand a TIFF or a PSD made by LR; and in return, that PS (or whatever) can save a modified file which LR can display.
    The extended options you mention, rely on LR getting PS to get ACR to do all the work of conversion, and then in due course, for PS to take care of file creation too, and furthermore, to tell LR which file has been created where. This is partly because several conversions are involved rather than one; conversions made directly into Photoshop's memory space but not yet onto disk; which is ACR territory.
    In order for this more complex interaction to happen, LR needs to be talking to a fully-compatible PS and ACR partnership - which it knows will properly read all its adjustments, and include them in the bitmap information. At present, from LR4, that means either Photoshop CS6 with ACR 7.x - or else (as a special concession), Photoshop CS5 with ACR 6.7. Unless one of those two setups is detected, these forms of interaction are greyed out. Sorry

  • How To Place/Open Multiple Images Into Separate Layers For ONE Document?

    I've been searching for the answer for a long time so I figured that someone here has to know.  I have PS Elements 9. 
    So I would like to make GIFs and I know how to do so, the problem is placing in those tens of files in layers (it's tedious).  Is there a way to select multiple image files to place into a single document?  And for them to be place into its own layer?  I've tried dragging and selecting from the Open/Place menus (won't allow), SHIFT + Direction Key from the Open/Place menus (won't allow), tried opening them to drag on the Organizer and to drag from the Project Bin (again won't allow), and I've read tutorials where they say to use scripts and actions but I'm not sure what to download them in order for them to work and the links are broken anyway.
    An example of what I'd like to do:
    Open and place in 15+ screenshots into layers but in just one document.
    Each screenshot would be one layer in said document.
    ...rest of GIF process...
    I feel like there's an easier way to get this without placing in each one at a time.  I remember being able to do this on a old PS (though not Elements).  Thanks for any help.

    The quickest method is probably opening all images together from Full Edit:
    File >> Open
    Then navigate to the folder and use shift+click to select a block of files.
    The images will appear in the photo bin. Drag and drop each one into the main editing window and a separate layer will be created for each.

  • Weird behavior in opening Aperture images in Photoshop

    I have found a lot of really weird behavior when opening Aperture images in an external editor (in my case, Photoshop, so I'll use PS to refer to it):
    1) If the master image is opened in PS, a new version is created when the file is opened, not saved. So quitting PS without saving leaves you with a new version of the file, regardless of whether you actually saved any changes or not.
    2) If a version (not the master) is opened in PS, a new version is not created, either on open, or on save. So in other words, changes to that version in PS when saved overwrite that version, and the previous condition of that version is lost (with respect to versioning).
    3) If multiple versions of the same image are opened simultaneously in PS, there doesn't seem to be a way to tell the difference between them in PS, except for visually (possibly meta-data, but I haven't checked that, nor would I want to be forced to). The file names of all versions are exactly the same.
    I'm looking for feedback from anyone out there who can explain why this isn't completely quacky version control. I've been using version control almost my entire career (as a software programmer) and here's how I have seen almost invariably version control work:
    1) New versions of files are always created upon commit, i.e. saving of the file, not on opening a file. (Do not confuse this with working copies, think about what is present in the repository).
    2) Opening / editing any file version is never destructive. Any change to that file version that is saved (committed) results in a new version, not an overwrite to the same version.
    Aperture's interface basically has combined what traditional version management has represented separately, that being the client and repository views of a project. They are showing all versions of a file simultaneously. This is fine, but I'm really not liking the fact that some changes create new versions, other changes overwrite versions, and one case, merely opening the file creates a new version, whether there are any changes saved or not. In addition, when working with multiple versions in the editor, the file name and/or interface doesn't give any indication of what version you are working with. Easy to say that's the fault of the external editor, but I disagree -- all external editors are going to work with filenames, so Aperture should produce a unique namespace for any file version so that any external tool will be able to distinguish (visually) one file from another.
    Is this completely wacky version management, or is it just me?
    Brad
    Powerbook G4-1.33GHz-17" / Powermac G4-1.4GHz   Mac OS X (10.4.2)   PB: 1GB RAM, Radeon 9600-64MB / PM: 1.25GB RAM, Radeon 9000Pro-128MB

    Hi Bradley,
    Due to the way I personally use Photoshop, I want Aperture to behave as it does.
    That's because, with Photoshop, I use layers extensively. Any edits I do (levels, curves, saturation, sharpening) I do on layers. I can delete the layers at any time (or select to show or hide them). Because of this, I actually WANT Aperture to behave the way it does. Once I've done a bunch of edits in Photoshop, if I select again to edit that file in the external editor, I want to work on that specific file (to add another layer, or change one). I don't want another duplicate. I tinkered with this over the weekend, and it worked very nicely for me.
    Perhaps you work differently from within Photoshop? Do you ever use layers? If I were to have a bunch of Photoshop "versions," each with 5 layers, I'd have like 5 GB of "versions" for my original 8 MB RAW file, due to the size of PSD files. Yuck

  • When opening an image in Adobe Camera Raw in CC, the image is solid red

    The image is solid red and not my image. I have been working on an image and several layers of work done on things like white balance, color cast.  When I add a CAL I cant get to ACR at all. If im on the previous CAL I can open in ACR but with the red image.   I am on a Mac 10.8.5 Have the latest version of CC installed. Help!
    An hour later I went back and on a copy of my Background layer, I opened the image in ACR.  So what are the parameters of ACR that I don't understand?

    You can't do that in ACR, but you can if you open it in Photoshop and use the crop tool there.
    Gene
    (If this answers your question, mark it correct.)

  • Batch: Open Bridge 'Stacks' as layers in PS CS5 + run action. Is this possible with script??

    I posted this topic a couple of days ago - I didn't know about this forum/group so the thread appears in Photoshop Scripting and Bridge Windows. I haven't found a solution on those forums - can any one here help?
    http://forums.adobe.com/thread/880777?tstart=0
    http://forums.adobe.com/thread/880779?tstart=0
    I would like to automate part of my workflow that involves opening stacked images (in Bridge CS5) as layers in Ps CS5 and running an PS action that composites the layers and processes the image. Something similar to 'Process Collection' in Bridge CS5 only with my own action instead of merge to HDR/Panorama.
    Apparently this is possible with Mac 'Automator' - is there anything I can do in Windows? I don't have any experience with writing scripts, but have friends that can help. Can someone tell me if its possible and point me in the right direction please?
    This needs to be a batch process. I know how to open images as layers from Bridge so that I can manually run the PS action - I would like to automatically process lots of images in this same way.
    To clarify, the script if possible will need to
    1) find first stack (in Bridge [in selected folder])
    2) open as layers in PS
    3) run PS action
    4) save and close (as psd preserving layers)
    5) find next stack in Bridge (selected folder) and repeat.
    By 'stack' I mean a set of similar files (for instance same scene -2EV, 0EV, +2EV)
    Bridge's 'Process Collection' feature is great because it very cleverly recognises similar images (I think you have to stack them first) opens them and either processes them into a hdr or panoramic image. Instead or hdr or pano, wouldn't it be great if you could run your own action.
    Bridge's Image Processor is fantastic at opening a batch of individual files and running your own processing action, but it won't open groups of images ('Stacks' or sets) as layers.
    What I need is basically a hybrid of the two.

    In case you miss my late append in the other thread you may want to look at the auto collection script that ships with the Bridge and use it as a base for what you want to do. You may also be able to automat the creation of your stacks if their time stamps are close. The Auto Collection Script night now does two types of stacks  HDR and Panoramas.  You may be able to modify it to do a third stack type. You stack type and use your stack processing process instead of mearge to HDR or PhotoMerge.
    From Bridge help:
    The Auto Collection CS5 script in Adobe Bridge assembles sets of images into stacks for processing as high dynamic range (HDR) or panoramic composites in Photoshop CS5. The script collects images into stacks based on capture time, exposure settings, and image alignment. Timestamps must be within 18 seconds for the Auto Collection script to process the photos. If exposure settings vary across the photos and content overlaps by more than 80%, the script interprets the photos as an HDR set. If exposure is constant and content overlaps by less than 80%, the script interprets the photos as being part of a panorama.
    Note: You must have Adobe Bridge with Photoshop CS5 for Auto Collection CS5 to be available.
    To enable the Auto Collection CS5 script, choose Edit > Preferences (Windows) or Adobe Bridge CS5.1 > Preferences (Mac OS).
    In the Startup Scripts panel, select Auto Collection CS5, and then click OK.
    Select a folder with the HDR or panoramic shots, and choose Stacks > Auto-Stack Panorama/HDR.
    Choose Tools > Photoshop > Process Collections In Photoshop to automatically merge them and see the result in Adobe Bridge.

  • Open multiple images from the project bin

    In Elements 9 I can only seem to open 1 image from the project bin at a time! What am I doing wrong?
    Bob Dunkerley.

      You need to double click on your main image and then drag your second image up from the project bin. That creates separate images on separate layers.
     

  • How to open multiple images in photoshop cs3

    Hey, what im trying to do is open multiple images in photoshop cs3 and then blend the images together. But the problem that i am facing is that i can only open one image at a time. Can someone tell me step by step how to do this.
    Thanks for the help
    Michael

    i dont belive i have tabbed view, what i just did, was i draged one photo into phtoshop and then another. When i look to my right, only one iamge shows up in the layers and the other seems to have dissappeaed.
    It seems that having a tabbed view is useful, how do i set photoshop to this?

  • How do I open an image as layer?

    Okay so what I'm doing is I go to Browse in Bridge, Select the image I want, Go to tools, Click Photoshop, then load into Photoshop layers. It then brings Photoshop back up and says Load Layers needs at least 2 files open. How do I fix this and is there a way I can open an image as a layer without using Bridge? (I'm using CC for both by the way)

    Hi,
    You can open the image in Photoshop directly. Then it will come up as a locked background layer. Double click on the locked layer in the layers palette - it wll rename to layer 0 by default. Accept that change. That makes it a regular layer like any other - instead of a locked background.
    I'm not sure if this is what you were looking for or not? If I misunderstood - please clarify for me and I will try again
    April

  • Suddenly can't open multiple image files in CS5

    I recently transferred LR 5.3 and CS5 (12.04x64X) onto a new PC (OS Windows 7 64-bit). Both programs are working fine individually. And single images in LR open just fine for editing in CS5. But when I try to open multiple images (to merge as a panoramic) or open multiple images as separate layers, nothing happens.  CS5 opens on top of LR, but the files themselves never open. No problems doing this a few days ago with my older computer (same programs, same operating system).
    Any suggestions for fixing this would be much appreciated.

    When you say nothing is showing up, do you mean it is as if you didn’t use File / Open, or is it more that there is something but it is gray or white or black without any image detail?  If the latter, perhaps something like a video driver update or system-level change has made things incompatible with how PSE11 tries to display images.
    Have you rebooted?
    Have you reset your preferences?  You can do this by holding down Ctrl-Shift-Alt at the same time while PSE11 is starting up (or at least while the editor is starting up) and you’ll get a message about deleting the preferences file or not before you see the splash screen.   Various other key combinations will ask for an additional plug-ins folder or a different scratch disk location.  If you are going to delete your preferences file you might want to review the settings, first, in case there is something important you need to reconfigure once the preferences have been reset.

  • Opening/Dragging Images from Desktop into Photoshop CS4

    I'm trying to import/drag/open a png image file from finder, my desktop, or anywhere on my hard drive into an existing photoshop document.  Unfortunately, the image does not drop into the existing document; it just bounces off.  No new layer is created.  When I try to import the photo manually from File-->Open, the image is opened in a new document instead of the existing one.
    This only occurs for images saved on my hard drive.  Any image pulled from a web browser and dragged/dropped into the document creates a layer.  I'm running Snow Leopard.
    I've installed the latest software updates to Snow Leopard and installed the latest CS4 patch, version 11.0.2.
    Any help would be greatly appreciated.
    Regards,
    Alex Doan

    Excuse me
    Tai Lao wrote:
    akdoan wrote:
    …This only occurs for images saved on my hard drive.  Any image pulled from a web browser and dragged/dropped into the document creates a layer…
    That's because when you "drag" from the web browser, you are performing a copy-and-paste from one application to another one. The Finder is not involved.  As I said earlier, "The Finder knows nothing about dragging Photoshop layers."
    My original post was poorly written.  Please ignore my digression on file-->open, which loads the image into a new layer in a new document, which it has always done and like you said, is normal behavior. 
    I was emphasizing that I can't find a way to directly insert a photo from the OS (Snow Leopard) running CS4 into an existing document in one step.  The directory path of the file on the OS is meaningless in regard to this behavior.
    Tai Lao wrote:That is perfectly normal, expected behavior. The Finder is not involved.  As I said earlier, "Are you suggesting it used to behave any differently for you earlier? ??? !!
    I am running CS5 on Snow Leopard on another computer.  Dragging and dropping a picture located anywhere on the OS into an existing document works flawlessly, and loads the image into a new layer within the open document. 
    You've lost the script by focusing on the finder.  The file path of the image, whatever it is:
    /Users/alex/Desktop/image.png
    /Users/alex/Documents/image.png
    /Users/alex/Pictures/image.png
    should be meaningless.
    Dragging and dropping an image from OS X to Photoshop is the rule and this failure the exception.
    There is something I'm not doing or a misconfiguration causing this.

  • Leopard Can't open any Image HELP!!

    This is very weird, I've been working fine all these past days since I installed Leopard, but suddenly I am not able to open any image file (giff, tiff, jpeg, even Acrobat files) with my preview image or photoshop, it looks like the file is open, I mean, IT IS OPEN but I CANT SEE ANYTHING, when I click the window toolbar I see that the file is there, but I cant see anything, same thing happend with Photoshop, I see all the layers of the file, I see even the file in the navigator, but I cant see the file itself !!! help, thanks

    Sorry that didn't work. Here are some other suggestions.
    How big is your Hard Drive, and how much room is left on it? Apple suggests you leave at least 10-15% free at all times, or else weirdness may ensue.
    What kind of Install of Leopard did you do? If you did the Upgrade, weirdness may ensue. Back everything up and Archive and Install (preserving all users) or, better, Erase and Install. You can use Time Machine for the backup and reinstall from it. I've done it, and it works.
    Also, did you download the 10.5.1 update? If so, did you do it from Software Update (39MB) or Apple Downloads(110MB)? If you didn't install it, go to Apple Downloads and use that one for best results.
    Hope some of these help.
    Message was edited by: Susan M

  • Opening an image from the net

    Can I open an image from the internet, instead of saving it to my PC first, then opening it?

    lvstealth wrote:
    Can I open an image from the internet, instead of saving it to my PC first, then opening it?
    That can be scripted you need to be able to provide the images URL for the script ie copy paste in a url its even posible to load all image on aweb page into a layer stack in a new document. Go for it.  The following scripts do download a temp files into your temp space but these are deleted once the image is placed into the photoshop document. So there is no image file is on your system images only exist in the open Photoshop Document.
    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

  • Final Cut Studio 2 - not on Mac Mini?

    I moved away from Mac towers around 12 months ago as I just didn't need the power and the Mac Mini has served me well since then, even running Final Cut Pro and DVD Studio Pro etc. However, a worrying section of the spec requirements for Final Cut St

  • Digital Signatures in Adobe 8 Professional

    I have 2 questions regarding digital signatures in Adobe Acrobat Professional 1.) Is it possible to digitally sign a document multiple times without having to resave the document each time you sign?  This would be really helpful in dealing with contr

  • Problem with firebird on visual studio

    hello im importing firebird on visual studio in the references and im making the import line code: imports firebirdsql.data.firebirdclient but when i compile appears one error that makes that line code with a green undelined someone knows what its ha

  • Is there a list of Out of the Box Adobe Interactive forms for HCM (HR)?

    Hi, Is there a list of Out of the Box Adobe Interactive forms for HCM (HR)? Can you please help me? Venkatesh

  • Cant boot into windows 8 partition after updating to 10.10.3

    Hi guys, You may have heard about this bootcamp issue, where suddenly the windows partition is not shown in the startup-boot-menu.. I've tried several things without success. The partition is still browsable in the finder of OSX Please help... !! :/