#28737 [Asn->Csd]: Call to undefined function: imageistruecolor()
| From: | nlopess@php.net | Date: | Fri, 11 Jun 2004 08:25:41 +0000 |
| Subject: | #28737 [Asn->Csd]: Call to undefined function: imageistruecolor() | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969361291@lists.php.net to get a copy of this message | ||
ID: 28737
Updated by: nlopess@php.net
Reported By: p00p00 at hotmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Documentation problem
Operating System: w2k
PHP Version: 4.3.4
Assigned To: nlopess
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-06-11 10:04:10] nlopess@php.net
You need GD 2.
I'll add a note in the manual.
------------------------------------------------------------------------
[2004-06-11 09:09:51] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
------------------------------------------------------------------------
[2004-06-11 04:56:56] p00p00 at hotmail dot com
Description:
------------
I tried to use the imageistruecolor() function, but it didn't work, the
errormessage PHP returned was:
Fatal error: Call to undefined function: imageistruecolor() in
...etc...
I checked the documentation and it said (PHP 4 >= 4.3.2, PHP 5), and i
have 4.3.4
Reproduce code:
---------------
Header("Content-type: image/jpeg");
$im = imagecreatefromjpeg("test.jpg");
imageinterlace($im, 1);
//Imagejpeg($im,'',100);
print imageistruecolor($im);
ImageDestroy($im);
Expected result:
----------------
boolean (i think 0 since test.jpg is not true color i think, not sure,
thats why i wanted to use this function in the first place :-))
Actual result:
--------------
<br />
<b>Fatal error</b>: Call to undefined function: imageistruecolor() in
<b>c:\webserver\htdocs\test.php</b> on line <b>10</b><br />
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28737&edit=1