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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 02:01:30 2024 UTC