file type question

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
sheila

file type question

Post by sheila »

VisiPic says it uses ImageMagick's libraries, and I was wondering if Photoshop's .psd files are usable. They weren't mentioned in the list of supported files in VisiPic or, from what I could tell, Image Magick.

Thanks,
Sheila
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: file type question

Post by fmw42 »

sheila wrote:VisiPic says it uses ImageMagick's libraries, and I was wondering if Photoshop's .psd files are usable. They weren't mentioned in the list of supported files in VisiPic or, from what I could tell, Image Magick.

Thanks,
Sheila

IM will read .psd files and will write a single layer .psd file. IM does not handle or know how to write multi-layer psd files the way Photoshop uses them. This is my understanding. Others can correct me, if I am wrong.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: file type question

Post by anthony »

Additional.

PSD files are often multiple layer. the first image is the merged, or all-in-one copy of the whole image, with other images containing the various layer images that were used to make up that first image.

I suggest when reading PSD images you add a '[0]' suffix to only read the first all-in-one image and ignore the other layer images.

If you plan to work with layer images then use '[1--1]', or follow the read with a -delete 0 to remove/ignore that first all-in-one image. the former should not junk the first image if it is the ONLY image, while the later method will junk it if it is the only image (I verified this).

Adding the above to IM examples for PSD images in 'Common Formats'
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
sheila

Re: file type question

Post by sheila »

Thanks to both of you for the information!

Sheila
Post Reply