Page MenuHomePhabricator

Issues with displaying thumbnails for CMYK JPG images due to buggy version of ImageMagick (black horizontal stripes, black color missing)
Closed, ResolvedPublic

Assigned To
Authored By
Josve05a
Jul 31 2016, 8:56 PM
Referenced Files
F7824260: image.png
Apr 29 2017, 5:32 PM
F7803651: Logo_Tver (1).jpg
Apr 28 2017, 4:50 AM
F7803650: Logo_Tver.jpg
Apr 28 2017, 4:50 AM
F4723942: 300px-Imagemagick_test_image.jpg.1
Nov 14 2016, 11:10 AM
F4723940: 300px-Imagemagick_test_image.jpg
Nov 14 2016, 11:10 AM
F4718254: Oshkosh_JLTV.jpg
Nov 12 2016, 8:09 AM
F4718253: Child_Soldiers_International.jpg
Nov 12 2016, 8:09 AM
F4718261: RR_Uebersichtskarte.jpg
Nov 12 2016, 8:09 AM
Tokens
"Like" token, awarded by Fae.

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
matmarex subscribed.

I'll try to look into this.

Our current version of Thumbor+plugins in production handles those fine:

1537px-NRCSIL99001_-_Illinois_(4171)(NRCS_Photo_Gallery).jpg (1×1 px, 1 MB)

801px-Recycling_Center_reduces_tons_of_waste_output_130626-M-ZH183-010.jpg (534×801 px, 733 KB)

140px-Youngstown_State_Athletics.jpg (88×140 px, 4 KB)

Since the plan is to have Thumbor handle all thumbnail production traffic at some point this quarter, this task can probably wait for that to happen. If you want to fix this in Mediawiki's thumbnailing code, the first thing I'd check is ImageMagick versions and trying to run the same underlying IM command locally. This feels like an IM bug at first glance and it might just be a case of the Thumbor boxes having a more recent IM than the image scalers.

matmarex renamed this task from Issue with displaying thumbnail for a progressive CMYK-JPG image to Issues with displaying thumbnails for CMYK JPG images.Oct 11 2016, 8:43 PM
matmarex added subscribers: FDMS, Platonides.

OK, so I'm going to start by finding out which versions are affected. For a start, I reproduced locally, so this is not specific to the production configuration.

MediaWiki uses a command like this for thumbnailing (enabled $wgDebugLog to have it printed out there):

convert '-quality' '80' '-background' 'white' '-define' 'jpeg:size=480x321' 'NRCSIL99001_-_Illinois_(4171)(NRCS_Photo_Gallery).jpg' '-thumbnail' '480x321!' '-set' 'comment' 'File source: http://localhost:3080/wiki/Plik:NRCSIL99001_-_Illinois_(4171)(NRCS_Photo_Gallery).jpg' '+set' 'Thumb::URI' '-depth' '8' '-sharpen' '0x0.4' '-rotate' '-0' '-sampling-factor' '2x2,1x1,1x1' 'out.jpg'

These versions are definitely buggy:

  • ImageMagick 6.8.9-9 (default in Ubuntu 16, and also what we're running in production)
  • ImageMagick 6.9.0-0 (random one I had installed locally)

ImageMagick 6.8.0 and ImageMagick 7.0.0 both thumbnail the files correctly, so this was broken in ImageMagick somewhere between 6.8 and 6.9, and fixed between 6.9 and 7.0.

6.8.0
out.jpg (321×480 px, 113 KB)
6.9.0
out.jpg (321×480 px, 80 KB)
7.0.0
out.jpg (321×480 px, 92 KB)

I supposed the solution is to upgrade or downgrade the version we're using. I'll try out some more versions and pinpoint when it was broken/fixed. @Gilles Is Thumbor using the older, or the newer non-broken version? I have no idea where to check this.

6.8.4 is the first buggy version:

6.8.3
out.jpg (321×480 px, 94 KB)
6.8.4
out.jpg (321×480 px, 82 KB)

7.0.0 is the first fixed version:

6.9.6
out.jpg (321×480 px, 80 KB)
7.0.0
out.jpg (321×480 px, 92 KB)

To summarize a discussion on wikimedia operations IRC channel:

  • ImageMagick 7 API evolved, A porting guide is available.
  • A locally maintained package would offer more coherence when we use several OSes to deploy the same version everywhere, at the cost to require package maintenance
  • To fix this issue, pending ImageMagick 7 testing, per T141739#2785739, the more careful path should be to use 6.8.3, a version we should recommend on mediawiki.org documentation, and deploy on wmf cluster

Just for fun, here are the thumbnails (120x120px square) that MediaWiki produces for all of the problematic files reported here and on related tasks (except the ones that were since deleted) with each of the four interesting ImageMagick versions (6.7.7 which we used previously and to which we could roll back; 6.8.3 which is the last good one; 6.8.4 which is broken; and 7.0.3 which is the latest).

Jdforrester-WMF renamed this task from Issues with displaying thumbnails for CMYK JPG images to Issues with displaying thumbnails for CMYK JPG images due to buggy version of ImageMagick.Nov 10 2016, 4:12 PM
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF subscribed.
matmarex renamed this task from Issues with displaying thumbnails for CMYK JPG images due to buggy version of ImageMagick to Issues with displaying thumbnails for CMYK JPG images due to buggy version of ImageMagick (black horizontal stripes, black color missing).Nov 10 2016, 5:05 PM

If we can pinpoint this to a specific commit in 7, which is backportable to 6.9.6.2 from jessie, we can work with the Debian maintainer to backport the fix into a Debian point release.

It appears that the vast majority of commits to ImageMagick have no commit message at all… I suppose I could try to bisect it to find the fix. I wonder how long it takes to compile.

I tried to bisect between IM 6.8.3-10 and 6.8.4-0 first, hoping I could find the problematic patch and revert it, but the commit introducing this issue is d9f6715841cdad02c37efd64308e85282da580b8, which is somewhat unhelpful for understanding the problem, and doesn't clearly revert on 6.9.6-2.

Looks like this is a part of a chain of commits that leads to 524dfaa16d659a2d5c2ac46c4d4c45f5e61ae23c, adding a release note: "The -blur, -guassian-blur, and -sharpen are now convenience methods for -morphology convolve." So perhaps it was just code cleanup… maybe I'll try a bit harder to revert it.

It also seems that removing '-sharpen' '0x0.4' from the command line clears up the issue. So the minimal test case is:

convert -colorspace CMYK logo: '-sharpen' '0x0.4' logo.jpg

logo.jpg (480×640 px, 43 KB)

Just sharpening, or just working with CMYK images, is fine:

convert logo: '-sharpen' '0x0.4'
logo.jpg (480×640 px, 43 KB)
convert -colorspace CMYK logo:
logo.jpg (480×640 px, 69 KB)

IM 7 seems to have diverged from IM 6 in 2011 (!), and from what I've seen in the history so far they like to rewrite something important in every other point release, so I doubt that the fix will be backportable even if I do manage to find one. Honestly, I suspect the commits which broke this were just never forwardported to IM 7, since they were done in 2013.

$ git merge-base master ImageMagick-6
1b5421762851bf1649cefc8f5afc4e684f6b68a2

$ git show --stat 1b5421762851bf1649cefc8f5afc4e684f6b68a2 | grep Date
Date:   Sat Jul 9 16:04:35 2011 +0000

$ git log --oneline 1b5421762851bf1649cefc8f5afc4e684f6b68a2..master | wc -l
7882

$ git log --oneline 1b5421762851bf1649cefc8f5afc4e684f6b68a2..ImageMagick-6 | wc -l
7695

For future reference, because there are no tags for older releases in their Git repo:

  • 6.8.3-10 = 8016577473b0eb6bd88c59e7412ed9291e19d671
  • 6.8.4-0 = d9bbeb02f3613640092aef9e2277d997ed9986c6

By the way, looking for alternatives: -convolve is broken in exactly the same way (syntax is weird, but try the example from http://www.imagemagick.org/Usage/convolve/#unsharpen). -unsharp is broken in a different but also hopeless way, I'm not even going to look since when. So patching/upgrading/downgrading looks like the only solution.

Original-sharpen 0x0.4 -unsharp 0x0.4
logo.jpg (480×640 px, 93 KB)
logo.jpg (480×640 px, 43 KB)
logo.jpg (480×640 px, 99 KB)

@MoritzMuehlenhoff Here's the best patch I can produce:

This change reverts the functions ConvolveImage(), ConvolveImageChannel(), SharpenImage(), SharpenImageChannel() to exactly how they looked in ImageMagick 6.8.3-10, which is the last version not exhibiting the issue. It applies on top of 6.9.6-2, compiles and as far as I can tell works as expected.

Do you think this would be okay?

We should probably report this upstream too. I couldn't find any recent cases on the internet of anyone complaining about sharpening CMYK files with ImageMagick. There are some old cases (including our own tasks), but they indicate the issues were fixed at the time (affecting IM 6.5 and older, mostly).

The Thumbor servers are on Debian Jessie, which currently uses IM version 8:6.8.9.9-5+deb8u5: https://packages.debian.org/jessie/imagemagick

Which means 6.8.9.9 with patches applied in the Debian package.

It does sharpen, but not using the same method as Mediawiki. It currently uses the Python bindings' unsharp_mask() method. Which should be the same as -unsharp in the IM command line.

Specifically, for thumbnails that match the resize ratio condition that triggers sharpening (not all thumbnails get sharpened), it uses the equivalent of -unsharp 0.0x0.8+1.0+0.0 which using DSSIM I found the be the closest visually to -sharpen 0x0.8 which is what's currently used in production.

Hmm, I found -unsharp when looking for alternatives, but I found it to also produce artifacts (different kind though):

By the way, looking for alternatives: -convolve is broken in exactly the same way (syntax is weird, but try the example from http://www.imagemagick.org/Usage/convolve/#unsharpen). -unsharp is broken in a different but also hopeless way, I'm not even going to look since when. So patching/upgrading/downgrading looks like the only solution.

Original-sharpen 0x0.4 -unsharp 0x0.4
logo.jpg (480×640 px, 93 KB)
logo.jpg (480×640 px, 43 KB)
logo.jpg (480×640 px, 99 KB)

Can you put the original image here (generated with convert -colorspace CMYK logo: logo.jpg) through Thumbor and see if the colors of the result look right? Perhaps this is specific to some version, or some values for -unsharp.

-unsharp was also tried in the past, then swiftly reverted: T26857.

I would advise against subjective judgment regarding visual artifacts. This is what algorithms like DSSIM are for. We look closely at status quo thumbnails all the time, which makes us "used" to the kind of artifacts it generates and a new kind of visual artifact looks more wrong to our eyes than it should. While it might actually preserve more - or as much - visual information.

DSSIM is a much more objective way to compare visual variants of the same image.

I'll generate what you've requested in a sec.

Generated in production.

300px coming from Mediawiki:

300px-Imagemagick_test_image.jpg (225×300 px, 9 KB)

300px coming from Thumbor:

300px-Imagemagick_test_image.jpg.1 (225×300 px, 12 KB)

The softness looks out of place, but the colors look accurate.

Generating an original-sized image with sharpening applied would be kind of irrelevant, because not only we don't currently allow original-sized thumbnails, sharpening is only applied when the resize ratio is greater than a defined minimum. Images whose size is close to the original aren't sharpened.

Um, perhaps you're seeing something else than I do (you never know with these things…), but I'm seeing completely different colors in the processed image than the original. I'm not talking small details :)

Yes, I was doing sharpening-only as a "minimal test case" of sorts. Thanks. So I guess just waiting on Thumbor is also an option to solve this.

Um, perhaps you're seeing something else than I do (you never know with these things…), but I'm seeing completely different colors in the processed image than the original. I'm not talking small details :)

In Chromium the colors are identical between the original you've linked to and the thumbor-generated thumbnail, but then again I'm looking at this inside a vmware VM on an external monitor, so yeah, who knows. At least make sure that you're looking at images on the same monitor.

In the 3 images you've provided, the -sharpen one has the same colors and the production Mediawiki example I've provided. And your -unsharp one looks like it has very high contrast, the wizard's suit is almost black instead of blue.

Note that Thumbor, just like Mediawiki currently, leaves color profiles alone when they're not sRGB. That might play a role in having a different experience looking at the same images. And phabricator might mess with that stuff in the embedded previews, make sure to open the actual attachments.

I'll look into a backport to our jessie package currently used on the image scalers, if the patch is self-contained and sane we might be able to get that into the next imagemagick update in jessie.

Mentioned in SAL (#wikimedia-operations) [2016-11-17T07:57:54Z] <moritzm> uploaded imagemagick 8:6.8.9.9-5+deb8u5+wmf1 to carbon (T141739)

Mentioned in SAL (#wikimedia-operations) [2016-11-17T10:20:16Z] <moritzm> upgrading imagemagick on mw1293 (T141739)

Mentioned in SAL (#wikimedia-operations) [2016-11-17T12:50:41Z] <moritzm> upgrading imagemagick on remaining image scalers (T141739)

The backported patch is now deployed on the image scalers, I'll also report this in the Debian bug tracker, ideally we can merge that into the next jessie point release so that we can use unmodified imagemagick builds in the future.

@Gilles @MoritzMuehlenhoff Thank you! Everything looks fine on the wikis now. I purged the files linked on this task that were still affected, and they thumbnail correctly now.

imagescalers and thumbors upgraded from imagemagick 8:6.8.9.9-5+deb8u5+wmf1 to imagemagick 8:6.8.9.9-5+deb8u6+wmf1

security upgrade https://www.debian.org/security/2016/dsa-3726 and our patch here for this on top of it again

1```
2[neodymium:~/debdeploy] $ cat 2016-12-01-imagemagick.yaml
3source: imagemagick
4comment: DSA-3726-1 security update
5update_type: tool
6fixes:
7 precise:
8 jessie: 8:6.8.9.9-5+deb8u6+wmf1
9 trusty:
10
11---
12
13[neodymium:~/debdeploy] $ sudo debdeploy -u 2016-12-01-imagemagick.yaml -s imagescaler-eqiad status-deploy
14mw1296.eqiad.wmnet:
15 Updated packages:
16 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
17 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
18 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
19 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
20 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
21mw1298.eqiad.wmnet:
22 Updated packages:
23 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
24 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
25 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
26 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
27 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
28mw1293.eqiad.wmnet:
29 Updated packages:
30 imagemagick-common: 8:6.8.9.9-5+deb8u5 -> 8:6.8.9.9-5+deb8u6+wmf1
31 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5 -> 8:6.8.9.9-5+deb8u6+wmf1
32 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5 -> 8:6.8.9.9-5+deb8u6+wmf1
33mw1295.eqiad.wmnet:
34 Updated packages:
35 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
36 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
37 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
38 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
39 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
40mw1297.eqiad.wmnet:
41 Updated packages:
42 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
43 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
44 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
45 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
46 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
47mw1294.eqiad.wmnet:
48 Updated packages:
49 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
50 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
51 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
52 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
53 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
54
55
56Deployment summary:
57Number of hosts in this deployment run: 6
58No packages were added
59No packages were removed
60Updated packages:
61imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 5 hosts
62imagemagick-common: 8:6.8.9.9-5+deb8u5 -> 8:6.8.9.9-5+deb8u6+wmf1 on 1 hosts
63imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 5 hosts
64imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 5 hosts
65libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5 -> 8:6.8.9.9-5+deb8u6+wmf1 on 1 hosts
66libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 5 hosts
67libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5 -> 8:6.8.9.9-5+deb8u6+wmf1 on 1 hosts
68libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 5 hosts
69
70No restarts are needed
71
72Error summary:
73No errors found
74
75---
76
77[neodymium:~/debdeploy] $ sudo debdeploy -u 2016-12-01-imagemagick.yaml -s imagescaler-codfw status-deploy
78mw2086.codfw.wmnet:
79 Updated packages:
80 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
81 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
82 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
83 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
84 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
85mw2087.codfw.wmnet:
86 Updated packages:
87 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
88 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
89 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
90 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
91 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
92mw2148.codfw.wmnet:
93 Updated packages:
94 imagemagick-common: 8:6.8.9.9-5+deb8u6 -> 8:6.8.9.9-5+deb8u6+wmf1
95 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u6 -> 8:6.8.9.9-5+deb8u6+wmf1
96 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u6 -> 8:6.8.9.9-5+deb8u6+wmf1
97mw2089.codfw.wmnet:
98 Updated packages:
99 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
100 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
101 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
102 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
103 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
104mw2149.codfw.wmnet:
105 Updated packages:
106 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
107 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
108 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
109 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
110 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
111mw2150.codfw.wmnet:
112 Updated packages:
113 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
114 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
115 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
116 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
117 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
118mw2088.codfw.wmnet:
119 Updated packages:
120 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
121 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
122 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
123 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
124 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
125mw2151.codfw.wmnet:
126 Updated packages:
127 imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
128 imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
129 libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
130 imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
131 libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1
132
133
134Deployment summary:
135Number of hosts in this deployment run: 8
136No packages were added
137No packages were removed
138Updated packages:
139imagemagick-6.q16: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 7 hosts
140imagemagick-common: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 7 hosts
141imagemagick-common: 8:6.8.9.9-5+deb8u6 -> 8:6.8.9.9-5+deb8u6+wmf1 on 1 hosts
142imagemagick: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 7 hosts
143libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 7 hosts
144libmagickcore-6.q16-2: 8:6.8.9.9-5+deb8u6 -> 8:6.8.9.9-5+deb8u6+wmf1 on 1 hosts
145libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u5+wmf1 -> 8:6.8.9.9-5+deb8u6+wmf1 on 7 hosts
146libmagickwand-6.q16-2: 8:6.8.9.9-5+deb8u6 -> 8:6.8.9.9-5+deb8u6+wmf1 on 1 hosts
147
148No restarts are needed
149
150Error summary:
151No errors found
152
153---
154neodymium:~/debdeploy] $ sudo debdeploy -u 2016-12-01-imagemagick.yaml -s thumbor status-deploy
155thumbor1002.eqiad.wmnet:
156 No change
157thumbor1001.eqiad.wmnet:
158 No change
159
160
161Deployment summary:
162Number of hosts in this deployment run: 2
163No packages were added
164No packages were removed
165No packages were updated
166
167No restarts are needed
168
169Error summary:
170No errors found
171
172--
173
174imagemagick (8:6.8.9.9-5+deb8u6+wmf1) jessie-security; urgency=medium
175
176 * Fix convert -sharpen with CYMK images (Bug: T141739)
177
178 -- Daniel Zahn <dzahn@wikimedia.org> Thu, 1 Dec 2016 18:33:33 -0800
179
180imagemagick (8:6.8.9.9-5+deb8u6) jessie-security; urgency=medium
181
182 * Fix CVE-2016-7799: global buffer overflow. (Closes: #840437).
183 * Fix CVE-2016-7906: use after free. (Closes: #840435).
184 * Fix a TIFF file buffer overflow. (Closes: #845195).
185 * Check return of fputc during TIFF file writing.
186 (Closes: #845196).
187 * Prevent buffer overflow by checking image extend
188 for TIFF (Closes: #845198).
189 * Avoid a out of bound read in VIFF file handler.
190 (Closes: #845212 and LP: #1545183).
191 * Avoid a DOS by not allowing too deep nested exception.
192 (Closes: #845213).
193 * Better check for buffer overflow in TIFF files
194 handling. (Closes: #845202).
195 * Fix CVE-2016-8677: memory allocate failure in AcquireQuantumPixels
196 (Closes: #845206).
197 * Prevent fault in MSL interpreter. (Closes: #845242).
198 * Prevent heap buffer overflow in heap-buffer-overflow in IsPixelGray
199 (Closes: #845242)
200 * Fix null pointer dereference in TIFF file handling.
201 (Closes: #845243).
202 * Added check for invalid number of frames in mat file
203 (Closes: #845244).
204 * Fix an out of bound read in mat file due to insuffisant allocation.
205 (Closes: #845246).
206 * Fix CVE-2016-8862: memory allocation failure in AcquireMagickMemory
207 (Closes: #845634).
208--
209
210root@carbon:~# reprepro ls imagemagick
211imagemagick | 8:6.8.9.9-5+deb8u6+wmf1 | jessie-wikimedia | amd64, source
212
213---
214
215Format: 1.8
216Date: Thu, 1 Dec 2016 18:33:33 -0800
217Source: imagemagick
218Binary: imagemagick-common imagemagick-doc libmagickcore-6-headers libmagickwand-6-headers libmagick++-6-headers imagemagick libimage-magick-perl libmagickcore-6-arch-config imagemagick-6.q16 libmagickcore-6.q16-2 libmagickcore-6.q16-2-extra libmagickcore-6.q16-dev libmagickwand-6.q16-2 libmagickwand-6.q16-dev libmagick++-6.q16-5 libmagick++-6.q16-dev imagemagick-dbg libimage-magick-q16-perl perlmagick libmagickcore-dev libmagickwand-dev libmagick++-dev
219Architecture: source all amd64
220Version: 8:6.8.9.9-5+deb8u6+wmf1
221Distribution: jessie-wikimedia
222Urgency: medium
223Maintainer: ImageMagick Packaging Team <pkg-gmagick-im-team@lists.alioth.debian.org>
224Changed-By: Daniel Zahn <dzahn@wikimedia.org>
225Description:
226 imagemagick - image manipulation programs -- binaries
227 imagemagick-6.q16 - image manipulation programs -- quantum depth Q16
228 imagemagick-common - image manipulation programs -- infrastructure
229 imagemagick-dbg - debugging symbols for ImageMagick
230 imagemagick-doc - document files of ImageMagick
231 libimage-magick-perl - Perl interface to the ImageMagick graphics routines
232 libimage-magick-q16-perl - Perl interface to the ImageMagick graphics routines -- Q16 versio
233 libmagick++-6-headers - object-oriented C++ interface to ImageMagick - header files
234 libmagick++-6.q16-5 - object-oriented C++ interface to ImageMagick
235 libmagick++-6.q16-dev - object-oriented C++ interface to ImageMagick - development files
236 libmagick++-dev - object-oriented C++ interface to ImageMagick
237 libmagickcore-6-arch-config - low-level image manipulation library - architecture header files
238 libmagickcore-6-headers - low-level image manipulation library - header files
239 libmagickcore-6.q16-2 - low-level image manipulation library -- quantum depth Q16
240 libmagickcore-6.q16-2-extra - low-level image manipulation library - extra codecs (Q16)
241 libmagickcore-6.q16-dev - low-level image manipulation library - development files (Q16)
242 libmagickcore-dev - low-level image manipulation library -- transition package
243 libmagickwand-6-headers - image manipulation library - headers files
244 libmagickwand-6.q16-2 - image manipulation library
245 libmagickwand-6.q16-dev - image manipulation library - development files
246 libmagickwand-dev - image manipulation library - transition for development files
247 perlmagick - Perl interface to ImageMagick -- transition package
248Changes:
249 imagemagick (8:6.8.9.9-5+deb8u6+wmf1) jessie-security; urgency=medium
250 .
251 * Fix convert -sharpen with CYMK images (Bug: T141739)
252Checksums-Sha1:
253 273388417e80f2e2753c09aa9b35496d89e9c866 3379 imagemagick_6.8.9.9-5+deb8u6+wmf1.dsc
254
255```
256
257https://www.debian.org/security/2016/dsa-3726

The update has been accepted by the Debian stable release managers, so starting with the next jessie update we can use the stock Debian packages again.

Have we reverted, or do we have a regression on our hand?
https://commons.wikimedia.org/wiki/File:Logo_Tver.jpg

Full versionCommons thumbnail
Logo_Tver (1).jpg (492×1 px, 308 KB)
Logo_Tver.jpg (250×800 px, 18 KB)

No, that seems like a new/unrelated issue which simply exhibits a similar visual distortion. We're still using the same imagemagick version and the original bug is still fixed, so let's make this a new Phab task.

Restoring previous task status per previous comment.
@Josve05a: Please create a separate task - thanks!

I don't actually see this problem on that file. Looks like it was uploaded before this task was resolved, so it might have just been an old broken thumbnail that no one purged.

image.png (968×1 px, 338 KB)