Page 1 of 1

Multilayered Files

Posted: 2007-02-05T08:24:51-07:00
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.

Re: Multilayered Files

Posted: 2007-02-05T21:27:56-07:00
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/

Re: Multilayered Files

Posted: 2007-02-07T06:57:39-07:00
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!

Re: Multilayered Files

Posted: 2007-02-07T21:18:23-07:00
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.

Re: Multilayered Files

Posted: 2007-02-27T17:14:05-07:00
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.