Reading a Layer's content in a psd file

Hi,  I hope somebody would have definitely come across this and could help me out!!!!!!
Well I need to read layers(and their inside content!!) in a psd file. Basically the psd file is an interface with several buttons and icons.
All I need is to get the coordinates of these buttons and icons. Its really easy if you hav just one icon/button per layer and adobe javascripts are easily available.
But how to do this for a layer having two or more button/icons ??
Please revert if you have come across this situation to so that we can share our ideas.
Thanks in advance!!!!!!

I have not done this before so others may have more specific and better answers.  Assuming you just have buttons on a common color background without other misc image items to deal with,  here are the general steps I would take (I am sure the experts may have a better way or tell if this suggestion will not work)
- Create a Selection that selects everything other than the background (e.g. select background and invert)
- Convert Selection to a Workpath
- From the Pathitems collection pull out the Pathitem associated wtih the Work path.
- The Pathitem has a SubPathItems collection
- Each SubPathItem has a property identifying if it is closed (you should only have closed paths if all you have are buttons and a background)
- Each SubPathItems that is closed has a PathPoints Colleciton
- The series of PathPoint objects in the PathPoints Collection give the locations of all the points of the Path
With the above, there should be enough info to identify the location of all buttons (in theory).
I hope that at least gives you something to thing about.
As a seperate note, the Automate> Crop and Straighten Photos tool bascially has the capability you need since it identifies all objects out of the background and puts them all in their own document.  I just did not see a way for you to access the locations from which it pulled the objects.
Good Luck

Similar Messages

  • How to read the 'full resolution composite' from a .psd file?

    I'm working with 16-bit .psd files and have the "maximize compatibility" switch turned on in CS2. When a file is saved, a message box appears indicating that PS is generating a "full resolution composite." I'd guess this is stored in the .psd file somehow, because some of the 3rd party image viewers are able to display the image when the compatibility switch is used, but are unable to display the image otherwise.
    My question is: how can I read this full resolution composite from the .psd file outside of Photoshop?
    If this is the wrong forum to post this question, I'd appreciate it of you'd tell me a better place.
    Thanks,
    Dave H.

    As you guess, it is stored in the PSD, but only with the Maximise Compatibility switch. Without that switch, a dummy image is stored which has the text "This layered Photoshop file was not saved with a composite image.", in English, German, Japanese and French.
    My program
    psdparse extracts each layer in an 8-bit file as a PNG, and the merged image for both 8- and 16-bit files. That link is to a Subversion repository containing source code.

  • Create simple layered .psd file from selected photos in PSE 10?

    I'm wondering if there is any way to take a group of photos -- either selected in Organizer or in Editor or in a File Browser -- and layer them all into a PSD file or drop them "in mass" onto a existing file in Editor.  I have two uses...one is to layer a bunch of tonemapped files from Luminance to create HDR art -- in this case, all the layers are directly on top of each other (and usually the same size), with the original on the bottom, then I adjust layer modes and opacity of the tonemapped versions to create art (this link is very out of date but gives you the idea: https://picasaweb.google.com/117811553538459876302/HDRPhotoMagic).  The other use is to create a scrapbook page -- I'd like to select a bunch of elements ("paper" -- textured 12x12 image, elements, photos, etc) and have them all added to a file so that I can move them around, etc. These will all be different sizes. Sometimes I have the page already (a layered template for example), and would like to drop in additional layers.
    Currently, I create a blank document, select my photos in Organizer, use Ctrl-I to open them all in the editor, and then drop everything one by one into my blank file, then close all the windows that I no longer need. However, it's cumbersome, and it seems the process could easily be automated.
    Any thoughts on how to make this easier?
    Thanks,
    Lisa

    Open the script into Notepad and add the lines as shown in the screenshot, then save the script as a .jsx file instead of a .js file to your desktop.
    Then move or copy the script to the pse 10 presets scripts folder, start or restart pse 10 and the script should be listed under the File>Automation Tools menu.
    C:\Program Files (x86)\Adobe\Photoshop Elements 10.0\Presets\Scripts
    <javascriptresource>
    <name>AV Bros</name>
    <about>script</about>
    <category>Layers</category>
    <menu>automate</menu>
    </javascriptresource>

  • Line exports as flat PSD file. Can I export as layered file? If not, Will this be introduced later?

    Adobe Line app exports the bottom "imported" background and the working layer together as a flat psd file. How can I separate the imported or blank white layer and just export the working layer? Preferably I would like to export both layers in a layered psd file.

    Sorry to hear that you are having problems with some of the scripts. Normally this is due to the prefferences becoming corrupt. They can be trashed to see if all then works..
    http://forums.adobe.com/thread/375776
    I have also written a new script yesterday that includes adjustments layers if the exist, so that may work for you?
    http://www.scriptsrus.talktalk.net/LSA.htm
    Hope it helps.

  • Trying to edit psd file and it adds another layer

    I have a psd file that was created to use as a template (it is all text).  When I try to edit it, it won't let me, instead another layer is added to the file, instead of allowing me to edit the layer that I am in.......what am I missing???

    If it's been rasterized, you will not be able to edit it.  You'll have to re-create the text layer.  The trouble is that since it was a template, you may not have the fonts that were used to originally create the template.

  • I place a psd file with transparent background on another layer in my InDesign document. The layer b

    I placed a psd file with transparent background on another layer in my InDesign document. The layer below has a color (RGB). When the psd file is placed it changes the color on the layer below. I've tried other psd files thinking something is wrong with my file, but get the same result. I have tried for days to figure this out. Can anyone help me?

    Wow, thank you! That was fast. I googled that question to death and even bought (another) book on CS5 and never saw that answer. Thank you so much. You made a very good ending to my day! I'd buy you a beer if I could!!

  • How to reverse a PSD file that's combined layers into one layer...

    Hi,
    I'm not quite sure what happened but I had a PSD file I was working on with multiple layers and then I saved a PDF of the file and I think I may of accidentally switched up the files somehow because now my PSD file's layers are all combined into one background layer. How do I undo this (somehow release all of the layers again into the file)? I need to send the PSD file with all of it's layers available for editing and I have no idea how to fix this.
    Any help is greatly appreciated. Thanks so much!
    ashmic19

    Unless you have a backup copy of the layered PSD, you can't. Once flattened and saved, you can never reconstruct the flattened layers, they are gone. Sorry...best is to save multiple copies so if this happens in the future you won't suffer this again.

  • PSD files always imported as one layer QuickTime

    Does anyone know how to work around the bug in DVD SP 4.2.1 that formats every imported PSD file to Quick Time format destroying the layer structure?
    No matter if the file has layers or not, no matter if the file is saved in PSD, TIF, JEPG, etc the files appears as Quick Time one layer in DVD SP once imported.
    The files generated in PSD (CS4 11.0.1) are 8-bit, RGB, multiple layer or flattend image, standard size, nothing strange.
    Several months ago I did a similar work and had no problems.
    What's happening? Any idea?

    Did you ever read my reply in post #5?  
    My suggestion would be to download a trial version of Photoshop, whatever runs on your machine, and use the Image Processor in Photoshop to batch convert all your files as TIFFs before the 30-day trial period is over.

  • CS5 - Layer links get lost when copying/duplicating to another psd-file

    Hello,
    Following problem when using Photoshop Extended CS5 12.0.4 on OSX 10.6 described as example situation:
    1) You have a psd file with several layers and/or groups.
    2) Let's say 1 layer (N1) is linked to another layer(N2)  in that file and a further layer (N3) is again linked to another layer (L4). That makes 2 linked layers sets. (N1 and N2;  N3 and N4)
    3) When copying those linked layers to another existing file (either by using drag and drop, but also if using the duplicate layer/group menu option), all linked layers get linked together as one link, meaning that your previous SETS of linked layers are gone. (all 4 layers are linked together now as one instead of 2 separate sets of 2 interlinked layers.
    Note: The only way to partially fix it was to duplicate the group  into a new file (using duplicate layer group from menu option as new  file), but i require it to be working for copying content from one  existing file to another existing file, hence this method is not  satisfactory.
    4) Does anyone know how this can be fixed, it looks like a PS bug to me?
    Any suggestions appreciated, many thanks.
    Best regards
    Manuel

    Hi Dave, thanks for your swift reply.
    The sample i have posted is just to explain the priniciple. Usually we work on very complex images with loads of groups and linked content.
    Therefore drag each set of links is not really an option in this case, as it would cost quite a bit of time.
    Our workaround trick at the moment is to mark the linked layers in colours in the layer palette and relink them after they have been duplicated but again this is not ideal. Thank you for your response, much appreciated.
    Manuel

  • How can I edit separate layers in a psd file that was saved as only one layer?

    A designer provided me with a finished design and provided the psd, eps and ai files.  I'd like to make some minor changes in PS and would like to access individual layers - e.g. the text, background, etc.  When I open the psd file, however, it only has one layer.  how do I break out the original layers so that I can edit them?

    You can't. Once it's been flattened, you can't unflatten it. Talk to your designer: he/she will most likely have the unflattened version available.

  • Why can't I find and open a text layer on photo (psd file) for editing using an iMac?

    When I open Photoshop Elements 10 Editor to edit a text layer on a 511KB 412x292 psd photo the text layer is not shown.  How do I open the text layer?  How do I edit the text layer?  How do I save the finished work product?  The background layer is locked.  I can't unlock it.  Do I have to unlock first or do what?  I have tried any number of approaches none of which open the text layer for editing.  I would greatly appreciate help in resolving this issue. 

    How do you know there is a text layer? All the layers should be shown in the layers panel.
    The background layer is always partially locked and that has no effect on editing. You can ignore that.
    Would this be a comp layer or part of a layer group created in full Photoshop, by any chance?

  • There was a problem reading the layer data. Read the composite data instead?

    I can't open my psd with properly in Photoshop, it keeps showing :There was a problem reading the layer data. Read the composite data instead? 
    Photoshop cc
    Help please

    I just discovered this issue. Apparently if your PSD document has a tonne of layers, it will save normally. Then suppose you are working on it one day, and create lots of new additional layers...saving that will then corrupt the PSD file, as apparently the number of layers exceeds some hidden limit. You will not be able to load that back in, as Photoshop doesn't appear to allow you to do that.This issue appears for both PSD & PSB files. I lost a few weeks of updates, but recovered thanks to a few backups.
    One clue you can use to ensure you don't inadvertently save over the file (thereby corrupting it), is to try duplicating a layer or a group of layers. You will not have the option to do so. If you encounter that, immediately open a new file, and drag a few groups of layers to the new document (and deleting them in the original document). You should then go back below the 'limit', allowing you to save normally.
    As for the original corrupted file, well I tried repairing it with a whole host of tools. But nothing worked ....
    MacReady: Any way we can we fix it?
    Garry: It's gone, MacReady.

  • FCP 7 - PSD file in BIN shows diff than layer properties

    steps to reproduce this issue, please confirm you have it too before I submit a bug report:
    1. FCP 7
    2. Photoshop CS5 Extended - setup iPhone 4 size file (640 x 960 at 326 ppi)
    3. create multiple layers
    4. import the PSD file into FCP 7
    5. setup BIN columns to display file resolution
    6. notice that BIN shows 640 x 960
    7. double click PSD file - shows in TL
    8. navigate to PSD in TL, pick any layer
    9. right click Item Properties, Format - will show at 640 x 964
    Ive tried recreating a PSD from scratch - a test scratch file if you will, and the problem persists.
    Tried restarting this Mac - persists.
    Tried software update - there's nothing left to update

    sorry I might have misread your post. To clarify: yes the sequence and PSD files are both SHOWING IN FCP as 640 x 960
    The issue came to light as after importing additional a layers, I noticed that they appear wider when 2x clicked on from the TL versus the BIN.
    Further, the layers will also "stretch" to the layer's size even though the (text) data within the layer is far smaller than the layer itself. This "stretching" phenomena I swear Ive seen before somewhere years ago... cant quite recall the details.
    The layers in my PSD mostly only have text on them, the text bounding box will stretch to layer boundaries as if the matte background werent part of the layer. This behavior is also incorrect, the matte matters....

  • Problem with reading Dual Layer DVDs.

    I've a normal iBook G4 with a combo drive (it's the 1 Ghz model) and when I insert a dual layer dvd which I've made on another computer at school, the drive in my iBook won't read it (as in it spits it out). I was wondering if this problem extends to everyone else with a similar model/drive.
    The media I used is a TDK DVD+R dual layer disc. The drive has had a problem reading a dual layered DVD-R; the problem being that it could only read (possibly) only one layer of the disc.
    Is there a firmware update that can applied to rectify the problem?

    Hi and thanks for your reply.
    I'm actually not sure if I can read commerical dual layer DVDs, but the fact that the DVD was pressed and not burnt, and that the DVD is released for commercial purchase has lead me to believe that my drive can read the DVDs.
    Also backing up my drive's ability to read dual layer DVDs, as mentioned in my previous post, is that it could read parts of a DVD-R dual layer DVD. What I meant by parts, or, just one of the two layers, is that the dvd contains a folder which houses 4 gigabytes of data, or about half the DVD. The contents within this folder can be copied to the hard drive, whereas the content on the root of the DVD can not, causing the drive to continually spin the disc, making the "trying really hard to read" noise, forcing me to restart the computer whilst holding the mouse button in order to get the dvd out.

  • How to read the content of a text file (by character)?

    Guys,
    Good day!
    I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
    Please help me. Thank you so much in advance.
    Jojo

    http://java.sun.com/javase/6/docs/api/index.html
    package java.io
    InputStream.read(): int
    Reads the next byte of data from the input stream.
    Implementation:
    InputStreamReader
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

Maybe you are looking for

  • I bought the wrong version

    Does anyone know how to switch which version you buy after it is bought... I bought the Windows version and I need the MAC version... OOPS!

  • Accessing test.jsp page outside Crystal Reports for Eclipse

    <p><br />Hello All,</p><p>Iam very very new to Crystal Reports for Eclipse...</p><p>I have created a .jsp called as test.jsp (by using the help file which i downloaded from diamond)..</p><p>I have created a report called CrystalReport1.rpt and i have

  • Unknown File Type for Adobe Classroom in a Book Fireworks

    I am trying to open sand_river1.jpg cited on p. 74 of Adobe Fireworks Classroom in a Book and am getting a "Could not open file" and "unknown file type" despite the fact that the image is displaying as a thumbnail in the file browser.  I get the mess

  • Condition to check in decode statement

    Hi All, I have a requirement to check below condtion in decode , please help me on this I need to check name field from a table if it is not equals to null and not equals to ABC% then i need to print some static value as 'XYZ' Thnaks

  • Can't complete Windows 7 installation - mouse and keyboard wont work

    I'm trying to install Windows 7 on my new iMac and am running in to a problem. I have the comprehensive instructions document printed, and am following it. I've created the partition for Windows using Boot Camp Assistant, I've inserted the Windows CD