3 ms·
I just spent a few hours looking into doing this, and all I can say is kudos to them for decoding the psd file format =P. None of the big graphics libraries (G
by showerst 18y ago
I just spent a few hours looking into doing this, and all I can say is kudos to them for decoding the psd file format =P.
None of the big graphics libraries (GD, Image Magick, etc) support writing of layered PSD files (Imagick can read them, and export non-layered's, but that's it as far as I can tell.), and the format specs require you to sign an NDA/non-compete with Adobe.
Taking the screenshots is doable if a bit of a pain, but short of reverse engineering the psd format, the second part seems to be a roadblock. Shame, i'd use this too =P.
- asjo 18y agoThe Gimp (http://gimp.org/ http://gimp.org/) can load _and_ save PSD-files with layers, so you could probably find most of the reverse engineering already done in the code there. While you are at it, why not just save the file in Gimp format and be done with it? :-)