Page 1 of 1

One more problem after update

Posted: 2009-10-18T04:08:54-07:00
by dsl
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
Image

Here is how Scale and Composite work in 6.5.6-10 (click to enlarge)
Image

Here is how it have to work, example from 6.4.6 (click to enlarge)
Image

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' );

Re: One more problem after update

Posted: 2009-10-18T07:12:17-07:00
by magick
It looks like there is a problem with Scale(). Use Resize() until we come up with a patch.