Next message: Tony Cook: "Re: scale a gif and background turns black"
the background stays black... :(
my @imgs = Imager->read_multi(file=>"./303411.gif");
push(@thumb_imgs, $_->scale(xpixels=>100, ypixels => 100, type =>
'min')) for @imgs;
This is a bit odd, Imager should manage this issue, right?
On Jun 28, 2005, at 00:30, Tony Cook wrote:
> On Mon, Jun 27, 2005 at 02:07:53PM +0100, Delfim Machado wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> Hi Tony, this is my code
>> use strict;
>> use Imager;
>> my $img = Imager->new;
>> my $thumb = $img->scale(xpixels=>100, ypixels => 100, type =>
>> $thumb->write(file=>'test.gif', transp=>'threshold');
> Ok, I was looking at the wrong side for this problem.
> You want:
> my ($img) = Imager->read_multi(file=>...);
> The loss of transparency with the single image read is historical,
> from before we had read_multi() and should change.
> The current GIF reader tries to build a "screen" based on the
> background color set in the image (usually black) and place each image
> on that background.
~ "The point of template engines should be to separate your business
logic from your presentation logic, not separate your PHP code from
your HTML code." - Brian Lozier