php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51414 imagecreatetruecolor does work with GIF
Submitted: 2010-03-27 18:45 UTC Modified: 2010-05-18 11:16 UTC
From: ljb9832 at pobox dot com Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ljb9832 at pobox dot com
New email:
PHP Version: OS:

 

 [2010-03-27 18:45 UTC] ljb9832 at pobox dot com
Description:
------------
In the reference manual dated 2010-02-05 (but also in the current online version), the page for imagecreatetruecolor says: "Note: This function will not work with GIF file formats."

That is incorrect. You can output GIF image files from truecolor GD images.  GD internally converts the image to a palette image with a maximum of 256 colors and creates the GIF from that.

I suggest either deleting the note, or replacing it with something like this: "Note: GIF files can be produced from true-color images. PHP will convert the true-color image to a palette image with a maximum of 256 colors, and then output the result in GIF format."



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-02 05:36 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2010-05-18 11:07 UTC] kalle@php.net
-Status: Assigned +Status: Feedback
 [2010-05-18 11:07 UTC] kalle@php.net
I can't see anywhere on the imagecreatetruecolor() page that it says it doesn't work with GIF's
 [2010-05-18 11:16 UTC] kalle@php.net
-Status: Feedback +Status: Closed
 [2010-05-18 11:16 UTC] kalle@php.net
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.

Fixed by Pierre ;-)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 14:01:30 2024 UTC