Page MenuHomePhabricator

GD thumbnails are rusty: True color v. indexed palette
Closed, ResolvedPublic

Description

Author: gschriss

Description:
Hi,

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

( $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
workaround.

I am not sure if the bug is a Mediawiki-specific issue. Build and OS
information for the problematic server is located at:
http://php.scripts.psu.edu/phpinfo.php

Thanks, George
en:[[User:GChriss]]

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

Version: 1.7.x
Severity: normal
Platform: Other
URL: http://www.clubs.psu.edu/up/usg/

Details

Reference
bz8038

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:29 PM
bzimport set Reference to bz8038.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 9055 has been marked as a duplicate of this bug. ***

As of 1.10, it looks like all thumbs are done in truecolor mode with GD rendering, thus nicely colored and resampled.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:27 AM
Gilles added a project: Multimedia.
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM