One more problem after update
Posted: 2009-10-18T04:08:54-07:00
Hello, guys.
Please, explain the issue.
After update from 6.4.6 to 6.5.6-10 there is a strange behavior of the "Scale" function for PNG image with transparency. After making "Scale" and "Composite" white border appears.
Original image
Here is how Scale and Composite work in 6.5.6-10 (click to enlarge)
Here is how it have to work, example from 6.4.6 (click to enlarge)
And here is script that was used
Please, explain the issue.
After update from 6.4.6 to 6.5.6-10 there is a strange behavior of the "Scale" function for PNG image with transparency. After making "Scale" and "Composite" white border appears.
Original image
Here is how Scale and Composite work in 6.5.6-10 (click to enlarge)
Here is how it have to work, example from 6.4.6 (click to enlarge)
And here is script that was used
Code: Select all
#!/usr/bin/perl
use strict;
use Image::Magick;
my $res = undef;
my $img_back = Image::Magick->new();
$img_back->Read('photo.jpg');
my $img_front = Image::Magick->new();
$img_front->Read('front.png');
$img_front->Scale( geometry => '200x' );
$img_back->Composite( image => $img_front, geometry => '+200+250' );
$img_back->Write( 'pic.jpg' );