Multilayered Files

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
Hades

Multilayered Files

Post by Hades »

Hello, hope any of you can help me with this issue.

I am trying to create a PSD (or PDF, or any other format) multi-layered file from two single jpg files.

Googled for it, but all I get are PERL or PHP examples for the ImageMagick interfaces, but I need to do this from the command line using the composite program.

This is the program I am using:

Code: Select all

composite -geometry +100+100 frontimg.jpg backimg.jpg composed.psd
I just get a psd file with both images composed, but it is a flattern image with only one layer.

Any idea of how to get a multilayered file using the composite command?

Thanks in advance.

Cris.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Multilayered Files

Post by anthony »

composite only composes two images into one image. For a multi-layered image you need to use convert, to save multiple images into one file, this is the default.

See Multiple file handling
http://www.imagemagick.org/Usage/files/#write_seq
Also GIF animation basics (also a multi-layer image)
http://www.imagemagick.org/Usage/anim_basics/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Hades

Re: Multilayered Files

Post by Hades »

Hello, thanks for your answer.

I tried with the convert program, with this instruction:

Code: Select all

convert frontimg.jpg backimg.jpg composed.psd
But it generates a psd file which Photoshop is not able to open, it says: "Could not complete your request because this file is not compatible with this version of Photoshop". (I am using CS 2 Version)

I also tried with PDF format, and it generates the images in different pages. And with GIF, it generates an animation. What I need is to get one single PSD file with multiple layers.

Is there a way to do that? Can I use any other multilayered format?

Thank You!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Multilayered Files

Post by anthony »

Repeat this with a link to a copy of the source and generated psd files, on the sevelopers list and I am sure Cristy will look into the problem.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
mrmernan

Re: Multilayered Files

Post by mrmernan »

I'm very interested in being able to create a multi-layer .psd file from individual .jpg and/or .tiff files as well, ..so I'll be following this post.
Post Reply