[libGD] #128 [Comment added] ImageCopyResampled causes uncommon black glitches

[email protected] Tue, 20 May 2008 11:45:52 +0200 (CEST)
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#128 - ImageCopyResampled causes uncommon black glitches
User who did this - Pierre Joye (Pierre)

----------
If you use PHP (Christoph? :), can you try this patch please?

http://pierre.libgd.org/patches/bug45030.txt

Simple script:
<code PHP>
<?php
$nw = 574;
$nh = 430;

//$im = imagecreatefromjpeg('testbild1.jpg');
$im = imagecreatefromjpeg('resampled.jpeg');
$dst = imagecreatetruecolor($nw, $nh);

imagealphablending($dst, 0);
imagesavealpha($dst, 1);

imagecopyresampled($dst, $im, 0, 0, 0, 0, $nw, $nh, imagesx($im) - 1, imagesy($im) -1);

imagejpeg($dst, 'out.jpeg');
</code>
----------

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=128#comment556

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.