Page MenuHomePhabricator

Thumbnails for specific TIFF pages have small rendering errors, ugly edges, glow missing
Open, Needs TriagePublic

Event Timeline

Aklapper renamed this task from TIFF scaling rendering error, ugly edges, glow missing to Thumbnails for specific TIFF pages have small rendering errors, ugly edges, glow missing.Apr 16 2018, 5:44 PM

Thanks for clarifying the title Aklapper. I had found T47212 but I do not believe it is the same issue. That "bug" (it's more or less by design) is caused by sharpening not being applied to TIFF images. Applying sharpening to this TIFF won't resolve the issues described.

Is the TIF scaled down before the thumbnail is created? If so, the bug might be easily "fixable" as a workaround, by reversing the process: Generate the large JPG and scale that down. Because that seems to work nicely.

Oh, this is a very weird, possibly broken TIFF file. Opening it in GIMP looks very different again!

Note how black the right half is! Exporting this file as PNG creates this image:

Atmospheric glow missing!

(scaled down to 1000px for upload)

The real surprise came when I added a white layer above the original TIFF:

The TIFF file contains "TIFF channels", additionally to the RGB channels. Two of them:

(This is an animated GIF, click to play!)

I have never seen such an unusual file before. It should be replaced by a PNG, solving all problems.

This file comes straight from NASA. If you find any evidence of a fake moon landing in those channels let us know. ;-)

Converting it to PNG is something I wanted to do as well.. Except I had trouble opening the file as well. I'll ask someone else.

And how strange is this?

I've converted the images:

I had to load the images in my PDF viewer, print them to a file, use the gimp and presto png?? I checked to be sure the conversion went well and they look just like the jpg files from NASA, minus the compression artifacts.

@ToBeFree : thanks for the help! I'm not sure if this bug should be fixed or not. It probably needs to be fixed in some library Wikimedia uses.

AntiCompositeNumber added a project: Upstream.

This TIFF is < 10MP, so it is handled by ImageMagick. Testing locally with ImageMagick 7.0.10-11, I get a file that renders mostly as expected. ImageMagick also decided that the file should have a white background now.

I should probably get around to installing a Buster VM on my laptop and figuring out if our problems will be fixed in the current stable version of the libraries.