Newbie: output multi-layes GIF file to PSD file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Newbie: output multi-layes GIF file to PSD file

Post by fmw42 »

cuongvt wrote:Hi all,
The title say it all. is there a command of IM allows me to output multi-layes GIF file to PSD file?
thanks and regards
Depends upon what you want in the PSD. Just try it. For example:

convert white.png black.png grad.png tmp3.gif
identify tmp3.gif
tmp3.gif[0] GIF 1x100 1x100+0+0 8-bit PseudoClass 2c 2.32kb
tmp3.gif[1] GIF 101x101 1x100+0+0 8-bit PseudoClass 2c 2.32kb
tmp3.gif[2] GIF 100x100 1x100+0+0 8-bit PseudoClass 128c 2.32kb

convert tmp3.gif tmp3.psd
identify tmp3.psd
tmp3.psd[0] PSD 1x100 1x100+0+0 8-bit PseudoClass 256c 20.7kb
tmp3.psd[1] PSD 101x101 101x101+0+0 8-bit DirectClass 20.7kb
tmp3.psd[2] PSD 100x100 100x100+0+0 8-bit DirectClass 20.7kb

Seems to have copied the layers, but PSD files interpret the layers differently from a gif "animation" or multi-frame file. In PSD the first layer is the composite of all the rest. So when I opened the psd file in PS, it did not appear correct to me. In fact, I got non-sense. So again, depends upon what you want to do with the PSD file and how you want to preprocess the gif to make the PSD meaningful. Also the PSD file may have other header data that it needs to interpret its data.

Perhaps Anthony can shed more light.
Post Reply