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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10038, the corresponding Phabricator task for complete and up-to-date bug report information.
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.