Home » Images » Image_Transform » Bug #596
gd driver fails 'trueColor' test
Details
| Submitted | 2004-01-18 04:17 UTC |
|---|---|
| From | seangirard at yahoo dot com |
| Assigned | reywob |
| Status | Closed |
| Package | Image_Transform |
| PHP Version | 4.3.3 |
| OS | linux/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)