PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_Transform » Bug #596

gd driver fails 'trueColor' test

Details

Submitted2004-01-18 04:17 UTC
Fromseangirard at yahoo dot com
Assignedreywob
StatusClosed
PackageImage_Transform
PHP Version4.3.3
OSlinux/windows
Roadmaps(Not assigned)

Comments

[2004-01-18 04:17 UTC] seangirard at yahoo dot com

Description:
------------
the check for truecolor (at about line 187) evaluate to false even though the requisite functions exist on my setups (4.3.2/win & 4.3.3 linux).

removing the error-supressing @ shows that the ImageCreateTrueColor() function is not being called w/ the right parameter count.

adding params - anything but 0,0 i guess - or removing the second part of the check - && @ImageCreateTrueColor() - both resolve the issue for me.

this same issue exists just below these lines at the 'copyResampled' check

if (function_exists('ImageCreateTrueColor') && @ImageCreateTrueColor()) {
$new_img =ImageCreateTrueColor($new_x,$new_y);
} else {
$new_img =ImageCreate($new_x,$new_y);
}

[2004-01-21 14:23 UTC] reywob at php dot net

Should be fixed in the next CVS commit (once the major unrelated changes been tested)