How can I write a script or program to work with Adobe Photoshop files? I would like to do something like reading an Adobe PSD file, rename the layers and save it back in PSD format.
Files look to be saved using a combination of XML and serialized data. I looked at the file code and saw that it has <x:xmpmeta near launch, did some Google searches to find the wikipedia article on xmp - Extensible metadata platform , but it is unclear whether this is the format of the whole file or only for a part metadata.
I saw that there is a PSD parser class for PHP , and not a bad article on how to use it , although it seems that it is just for reading / converting, and not for writing / saving.
But I would like to know:
- In what format are these files stored?
- Where are the guidelines for interacting with this format?
- Are there some classes / tools for managing this file format? Any language will be good for a start.
I am happy to do more research on my own, but I hope for some guidance to know what I should look for.
source share