Imager - How to sharpen pasted Images?

Posted on Tue Jan 16 11:28:31 2007 by jfro
How to sharpen pasted Images?
Hi folks, it's me again. Since I can use the Imager module, I played some things around with it. Nevertheless I have still a question about the transformation/paste function of Imager. I paste 1 pic into another. That is working good, but in the result of this operation, I have all the time a blurred (pasted) image on a clear/sharp destination image. I tried this here:
my $oip_image = Imager->new; my $order_image = Imager->new; $oip_image->read( file => $oipfile ) or die "Cannot load $oip_image: ", $oip_image->errstr; $order_image->read( file => $orderfile ) or die "Cannot load $order_image: ", $order_image->errstr; my $scaled_order_image = $order_image->scale( xpixels => 720 ); $oip_image->paste( src => $scaled_order_image, left => 0, top => 570, src_minx => 0, src_miny => 0, src_maxx => 720, src_maxy => 500 ); $oip_image->write( file => $output_dir . $filename . '.jpg', type => "jpeg", jpegquality => 100 ) or die 'Cannot save paste.jpg: ', $oip_image->errstr;
What I am doing wrong? Thank you for you suggestions. I'm using Imager 0.55 with ActivePerl on a Win32 machine. Kind regards, jfro
Direct Responses: 4049 | Write a response