Write a multilayered .psd file

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
roberto.tognelli
Posts: 1
Joined: 2012-04-01T13:53:32-07:00
Authentication code: 8675308

Write a multilayered .psd file

Post by roberto.tognelli » 2012-04-01T14:02:42-07:00

I have two images, let's say

Code: Select all

$image_A = Image::Magick->new(size=>'100x100');
$image_A->read('xc:white');

$image_B = Image::Magick->new(size=>'100x100');
$image_B->read('xc:red');
and I want to originate a .psd file having those images as layers.

How can I do it from PerlMagick, please?


With regards
Roberto

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

Re: Write a multilayered .psd file

Post by anthony » 2012-04-01T23:16:32-07:00

You need to put both images into the same image list (in ParlMagick that is a array of images).
You then write the psd file from from that one array.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

Post Reply