Page MenuHomePhabricator

Tiff image with jpeg compressed data has incorrect colours (image magick needs upgrading?)
Closed, ResolvedPublic

Description

Author: dejan.papez

Description:
Hi, https://commons.wikimedia.org/wiki/File:Stara_Ljubljana_-_Ciril_Metodov_trg.tiff completely changed colours after it was moved.


Version: 1.23.0
Severity: normal

Details

Reference
bz63907

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:22 AM
bzimport set Reference to bz63907.
bzimport added a subscriber: Unknown Object (MLST).

Converting https://upload.wikimedia.org/wikipedia/commons/archive/5/59/20140414211458%21Stara_Ljubljana_-_Ciril_Metodov_trg.tiff on my machine via imagemagick works correctly. Some sort of bug in the converter used on the production servers?

The only relevant difference between the current working and the old broken image seems to be the lack of compression. (The old version has transparency and the new does not, but that does not seem to be the issue here.)

(In reply to Tisza Gergő from comment #1)

Converting
https://upload.wikimedia.org/wikipedia/commons/archive/5/59/
20140414211458%21Stara_Ljubljana_-_Ciril_Metodov_trg.tiff on my machine via
imagemagick works correctly. Some sort of bug in the converter used on the
production servers?

Also fine for me too. All signs point to bug in specific version of image magick used on WMF servers

Here an other example of a whole book uploaded by a GLAM in Switzerland, suffering of an ugly "pink effect":
https://commons.wikimedia.org/wiki/Category:Legacy_of_Tadeusz_Ko%C5%9Bciuszko_in_Solothurn

If the solution is to install a recent version of Imagemagick, we should maybe think about it and assign the bug to ops?

Here an other example of a whole book uploaded by a GLAM in Switzerland, suffering of an ugly "pink effect":
https://commons.wikimedia.org/wiki/Category:Legacy_of_Tadeusz_Ko%C5%9Bciuszko_in_Solothurn

If the solution is to install a recent version of Imagemagick, we should maybe think about it and assign the bug to ops?

We are already planning to upgrade image magick soon-ish, see T84842

@Bawolff
Relation between HHVM and Imagemagick is pretty unclear to me (and imagemagick is not listed in the list of tools to be updated in the ticket description). However, I trust you to have the overview on this and linked both tickets.

Relation between HHVM and Imagemagick is pretty unclear to me

WMF is upgrading the operating system on the servers as part of their migration to HHVM. They are upgrading from Ubuntu 12.04 ("precise") to 14.04 ("trusty"), which includes a new version of ImageMagick (see packages.ubuntu.com).

(and imagemagick is not listed in the list of tools to be updated in the ticket description).

That list only includes Ubuntu packages that WMF had had to rebuild for precise. It does not include packages that came directly from Canonical without changes.

Actually I think for this one, it is the color profile which causes the incorrect colors.

Assuming this is obsolete nowadays as ImageMagick has been updated in the meantime. If this still happens, please file a new ticket.