Skip to main content
Inspiring
November 1, 2014
Question

Read layer structure closed file

  • November 1, 2014
  • 2 replies
  • 615 views

Are there any programing tools that will allow reading the layer structure of a closed photoshop file?

This topic has been closed for replies.

2 replies

Inspiring
November 2, 2014

This doc describes all Photoshop file formats.

Adobe Photoshop File Formats Specification

I used a prior version for reading/writing action files in JavaScript. You could use the info in there to scan a psd file.

Here's a library in C that you might find useful.

Photoshop File Format Decode Library | SourceForge.net

JJMack
Community Expert
Community Expert
November 1, 2014

I do not know how many file type formats support layers, I know  of PSD, PSB and Tiff. Many Applications support Tif however some like Lightroom do not support Layers.  Is there a particular layered file format  you have in mind?

JJMack
ojodegatoAuthor
Inspiring
November 1, 2014

Mainly psd and tif formats. I often have work with files that have different files structures.

It would be useful if I could know the files's layer structure without opening the file.

JJMack
Community Expert
Community Expert
November 2, 2014

How would it be useful?  Any program that shows you an image structure would need to open the file and look at its structure.  Photoshop has no problem doing that. If the other program shows you a image has at structure your interested in what are going to do close that program and open the  image in Photoshop.  I think you may be better off writing a Photoshop script that looks at image files structures and when it finds one like your interested in  terminates an leaves  the image in Photoshopo as the active document.

JJMack