Last modified: 2010-05-15 15:48:18 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 T11055, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9055 - some PNG thumbnails can be discolored
some PNG thumbnails can be discolored
Status: RESOLVED DUPLICATE of bug 8038
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.9.x
Macintosh Mac OS X 10.0
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://wikidiy.com/mediawiki-1.9.1/in...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-21 19:03 UTC by Travis D
Modified: 2010-05-15 15:48 UTC (History)
0 users

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


Attachments

Description Travis D 2007-02-21 19:03:15 UTC
Certain, but not all PNG thumbnails can be discolored, as seen here. 

This image:
http://wikidiy.com/mediawiki-1.9.1/index.php/Image:Looking_over_paper_657.png

is RGB, true color, 24 bits

This image:

http://wikidiy.com/mediawiki-1.9.1/index.php/Image:Red_copyright.png

is RGB, indexed color (127 colors), 24 bits. 

Forcing imagecreatetruecolor in Image.php seems to fix the first thumbnail:

     if ( true ) {
          $dst_image = imagecreatetruecolor( $width, $height );

but doesn't work for the second image, possibly because it has a transparent
background. 

I'm unsure if this is related to bugs 6205, 5994 or 234, but is reproducible on
our installation with libpng 1.2.16 and gd 2.0.34.
Comment 1 Rob Church 2007-02-21 21:52:34 UTC
GD is a bit rubbish for this sort of thing; use ImageMagick if possible.
Comment 2 Travis D 2007-02-22 18:00:51 UTC
Great! This seems to fix the issue for me.
Comment 3 Brion Vibber 2007-08-23 19:34:31 UTC
Duping this to bug 8038...

*** This bug has been marked as a duplicate of bug 8038 ***

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


Navigation
Links