Last modified: 2011-09-21 17:37:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8038 - GD thumbnails are rusty: True color v. indexed palette
GD thumbnails are rusty: True color v. indexed palette
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
Other All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: 9055 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2006-11-25 22:08 UTC by George Chriss
Modified: 2011-09-21 17:37 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description George Chriss 2006-11-25 22:08:58 UTC

Problem: Thumbnails for PNG images are generated using rusty tones using the GD

( $this->bits > 8 ) line 1277 in Image.php is returning false when it should
return true for PNG images.  The thumbnail is created using an indexed palette
instead of true color, due to the code calling PHP's imagecreate() instead of
imagecreatetruecolor().  I have it hard-coded to 'true' now as a temporary

I am not sure if the bug is a Mediawiki-specific issue.   Build and OS
information for the problematic server is located at:

Thanks, George

    *  MediaWiki: 1.7.1
    * PHP: 5.1.6 (apache)
    * MySQL: 4.1.21-standard
    * Extensions:
          o Extension functions:
                + Auth_remote_user_hook 
          o Parser extension tags:
                + <pre>
Comment 1 Brion Vibber 2007-08-23 19:34:31 UTC
*** Bug 9055 has been marked as a duplicate of this bug. ***
Comment 2 Brion Vibber 2007-08-23 19:38:11 UTC
As of 1.10, it looks like all thumbs are done in truecolor mode with GD rendering, thus nicely colored and resampled.

Note You need to log in before you can comment on or make changes to this bug.