files with layers

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
BWT

files with layers

Post by BWT »

When generating previews from a psd file with 4 layers I get an animated .gif (ImageMagick makes each layer a frame of the animation) and 5 .jpg previews, a flattened preview and then a preview of each of the four layers separately. Can someone help me with a command to generate only 2 files a flattened .gif and .jpg preview?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: files with layers

Post by anthony »

Use -flatten to merge all layers on top of each other.

Code: Select all

convert   image.psd  -flatten -write image.gif  image.jpg
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
BWT

Re: files with layers

Post by BWT »

Thanks! Works like a magick.
Post Reply