php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11827 ImageTrueColorToPalette() creates palettemap.png
Submitted: 2001-07-01 20:41 UTC Modified: 2001-07-02 02:50 UTC
From: brett at dolphyn dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.0.6 OS: Windows 98
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: brett at dolphyn dot com
New email:
PHP Version: OS:

 

 [2001-07-01 20:41 UTC] brett at dolphyn dot com
When I use the function ImageTrueColorToPalette(), a file "palettemap.png" is created in the directory that contains my PHP script. Is this a bug or an undocumented "feature"?

Sample code:
<?php
$NewImg = ImageCreateTrueColor ( 350, 500 );
ImageTrueColorToPalette( $NewImg, 1, 100 );
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-02 02:50 UTC] derick@php.net
It's not PHP that is doing that, but GD 2. However, the GD documentation states that this
is the purpose of this function. Please also note that GD 2 is still in Beta.

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC