One more problem after update

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dsl
Posts: 21
Joined: 2008-01-22T15:14:29-07:00

One more problem after update

Post 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' );
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: One more problem after update

Post by magick »

It looks like there is a problem with Scale(). Use Resize() until we come up with a patch.
Post Reply