ID:               18460
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sramage at fatpipeinternet dot com
 Status:           No Feedback
 Bug Type:         GD related
 Operating System: FreeBSD
 PHP Version:      4.2.1
 New Comment:

"blackjayde at xtremegaming dot net"

Without a small script and some sample PNG files, I have no way to know
what's going wrong.

Also using 4.3.11 is not going to help either. Please try 4.4.2, 5.1.4,
or the snapshot (snaps.php.net). I keep this bug to "no feedback" as
nothing new has been brought.


Previous Comments:
------------------------------------------------------------------------

[2006-05-15 20:14:50] blackjayde at xtremegaming dot net

Having the same issue.

PHP 4.3.11
Apache 1.3.29
libpng 1.2.1-2
libpng10 1.0.13-5
gd-1.8.4-7
JPEG, PNG enabled

Seems to fail on anything related to png code (ImageCreateFromPNG,
ImagePng, etc).

Works perfect using Jpeg.

------------------------------------------------------------------------

[2002-09-11 11:55:18] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2002-07-23 15:26:18] [EMAIL PROTECTED]

I can not reproduce this with latest CVS of PHP when using
libpng 1.2.0 and GD 2.0.1.


------------------------------------------------------------------------

[2002-07-22 22:11:08] sramage at fatpipeinternet dot com

//Sorry 'bout that, Brain Freeze =)

function CreateThumbnail($input_image,$output_image){
        $image = ImageCreateFromPNG($input_image);
        $thumb = ImageCreateTrueColor(75, 75);
        $bg = ImageColorAllocate($thumb, 255, 255, 255);
        ImageFill($thumb, 0, 0, $bg);
        ImageCopyResampled ($thumb, $image, 0, 0, 0, 0, 75,75,
ImageSX($image), ImageSY($image));
        return ImagePNG($thumb, "$output_image");
}//end function
CreateThumbnail("original.png","thumb.png");

------------------------------------------------------------------------

[2002-07-22 21:18:45] [EMAIL PROTECTED]

Please provide a short, self-contained script which is as short as
possible, preferrably under 10 lines of code.
And such script which can be easily cut'n'pasted and run..
(without any need of huge rewrites)


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/18460

-- 
Edit this bug report at http://bugs.php.net/?id=18460&edit=1

Reply via email to