in reply to Merging 2 tiff images into a single image

but its resulting into a single image (either the front or back image depending on the order of merge).

That is because write_multi is meant for making animated images, like an animated tiff or animated gif. The first image is the one that is first in the animation stack.

What you want is the paste method. I have an example that shows what to do at Mirrored text with Imager. It pastes a mirror image side by side, but with a small amount of manipulation, you could make the code paste your 2 images top and bottom. You could resize your pasted images afterwards if desired. Read perldoc Imager::Transformations for more information and code.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Merging 2 tiff images into a single image

Replies are listed 'Best First'.
Re^2: Merging 2 tiff images into a single image
by zameer (Initiate) on Jul 05, 2012 at 21:18 UTC

    Thanks for pointing out the functionality of write_multi. I looked at your sample and it is definitely helpful. Working with paste function but not there yer. Will keep posted.