in reply to Image Magick branding module crash

a few comments:
Also, using Imager may be an alternative:
use Image; my $image = Imager->new; $image->read(file=>'x.jpg', type=>'jpeg') or die "Cannot read: + ", $image->errstr; my $pic = Imager->new; $pic->read(file=>'x.gif', type=>'gif') or die "Cannot read: ", + $pic->errstr; $image->paste( left=>$x, top=>$y, img=> $pic->scale( xpixels=>$w, ypixels=>$h, type=>'min' ), ); $image->write(file=>"xb.jpg");

Replies are listed 'Best First'.
Re^2: Image Magick branding module crash
by GrandFather (Saint) on Sep 10, 2005 at 18:38 UTC

    Excellent answer davidrw!

    a few replys:

    1. Initial code included the debug line, but it didn't tell me anything useful so I removed it to simplify the problem
    2. Noted :)
    3. I committed the sin of "editing the code for publication" and deleted the fullstop. It was a .jpg.
    4. The code you supplied works fine and is an excellent starting point for the problem I need to solve.
    5. Noted and much appreciated

    This is my first venture into using Image Magick. It was in the context of showing Great GrandFather how wonderfull Perl is and how he could save so much time with a small Perl tool used to brand pictures to be put on a web site. The result wasn't quite as impressive as I'd hoped :). Honour will be regained however - thank you.


    Perl is Huffman encoded by design.