Lost transparency when scal / resize gif

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
MrsCalahan
Posts: 9
Joined: 2009-05-13T01:28:22-07:00
Authentication code: 8675309

Lost transparency when scal / resize gif

Post by MrsCalahan »

Hi,

I've some problem with scaling an gif image with transparency.
I try to convert it like this:

Code: Select all

my $img_scale = Image::Magick->new;
$img_scale->Read(foo.gif);
$img_scale->Scale(width=>'37', height=>'75');
$img_scale->Write(foo.gif);	
As a result I get an image without transparency and with a white background.
I use. Version: ImageMagick 6.3.7 11/12/08 with GPL Ghostscript 8.62 (2008-02-29)

what I'm doing wrong?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Lost transparency when scal / resize gif

Post by anthony »

Worked for me with the latest IM!

My test image was http://www.imagemagick.org/Usage/images/hand_point.gif

I did not save into the same image file. though that should still work fine.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply