How can I parse, manipulate, and save Adobe Photoshop files?

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.

+4
source share
2 answers

I am not familiar with this myself, but there is an official SDK for Photoshop that should allow you to do all this and more with .psd.

0
source

There are not many options. General tip is to consider purchasing Adobe InDesign Server. In some cases, this can be costly and you may be interested in the 3-way SDKs. Unfortunately, there are several options on the market. One of them is the Graphics Mill Image Processing SDK ( http://www.graphicsmill.com/photoshop-psd ).

Disclaimer: I work for Aurigma, which runs the Graphics Mill project.

0
source

Source: https://habr.com/ru/post/1393785/


All Articles