php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24068 GIF image not displayed
Submitted: 2003-06-06 15:38 UTC Modified: 2004-09-24 18:58 UTC
From: william at databyte dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.2 OS: Win XP
Private report: No CVE-ID: None
 [2003-06-06 15:38 UTC] william at databyte dot com
Use example of image function in 4.3.2 manual to display jpg image. Success.
Change it to display gif image. No image display. php_gd2.dll is included.
<?
    header("Content-type: image/gif");
    $string = $_GET['text'];
    $im     = imagecreatefromgif("COMMON/IMG/welcome.gif");
    $orange = imagecolorallocate($im, 220, 210, 60);
    $px     = (imagesx($im) - 7.5 * strlen($string)) / 2;
    imagestring($im, 3, $px, 9, $string, $orange);
    imagegif($im);
    imagedestroy($im);
?>
Following is the html source:
<table>
	<tr>
		<td><img src="testgif.php?text=welcome"></td>
	</tr>
</table>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-06 15:52 UTC] iliaa@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.

Gif creation cannot be done with dunbled libraries due to licensing issue. At the moment gd library can only create jpeg, png, wbmp and xpm files.
 [2004-09-24 18:23 UTC] ageous at hotmail dot com
Hi everybody!

I have the same problem that william put in this thread, but in the version 4.3.8. My question is when this option could be realeased? in the version 4.3.9 it's already working?

Thks!!!
 [2004-09-24 18:58 UTC] johannes@php.net
From php.net: "This release also re-introduces ability to 
write GIF images via the bundled GD extension." 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 02:01:35 2024 UTC