Last modified: 2014-09-01 13:45:27 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 T47212, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45212 - TIFs appear less focused than JPG equivalent
TIFs appear less focused than JPG equivalent
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 18014 (view as bug list)
Depends on:
Blocks: 41371 tiff-handling
  Show dependency treegraph
 
Reported: 2013-02-20 23:11 UTC by Smallman
Modified: 2014-09-01 13:45 UTC (History)
8 users (show)

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


Attachments

Description Smallman 2013-02-20 23:11:04 UTC
It appears that TIFs are slightly less focused (more blurred) than their JPG equivalent.

My bot uploaded these two files:

https://commons.wikimedia.org/wiki/File:071017_NRCS_Sterling_003_-_Ohio_%28717110%29%28NRCS_Photo_Gallery%29.tif

https://commons.wikimedia.org/wiki/File:071017_NRCS_Sterling_003_-_Ohio_%28717110%29%28NRCS_Photo_Gallery%29.jpg

The JPG one was converted from the tif with imagemagick (python):
call(['convert', 'currentfile.tif','-quality', '97', 'currentfile.jpg'])

Although the jpg is 97% of the tif quality, it appears to have better quality.

Am I mistaken or is there a reason for this?
Comment 1 Sam Reed (reedy) 2013-02-20 23:13:04 UTC
In the thumbnails of those images?
Comment 2 Bawolff (Brian Wolff) 2013-02-21 00:03:14 UTC
(In reply to comment #1)
> In the thumbnails of those images?

And do you mean the png or the jpg thumbnail of the tiff (we support both. Jpg is the default).

Its possible that different sharpening is applied to tiffs than to jpgs (not sure off the top of my head. I would be surprised though). Its also possible that different scaling algorithms may be used for the different formats or something like that.
Comment 4 Dominic 2014-03-09 05:17:47 UTC
*** Bug 18014 has been marked as a duplicate of this bug. ***
Comment 5 Dominic 2014-03-09 05:18:40 UTC
This is also true of .jpg thumbnails of PNG uploads, I assume for the same reason (see duplicate bug report).
Comment 6 Bawolff (Brian Wolff) 2014-03-09 07:10:57 UTC
(In reply to Dominic from comment #5)
> This is also true of .jpg thumbnails of PNG uploads, I assume for the same
> reason (see duplicate bug report).

We dont do jpg thumbs of png files (png files get png thumbs), but yes, pngs are not sharpened. Only jpgs get sharpened.

I believe comment 2 is incorrect...
Comment 7 Dominic 2014-03-09 21:54:24 UTC
(In reply to Bawolff (Brian Wolff) from comment #6)
> (In reply to Dominic from comment #5)
> > This is also true of .jpg thumbnails of PNG uploads, I assume for the same
> > reason (see duplicate bug report).
> 
> We dont do jpg thumbs of png files (png files get png thumbs), but yes, pngs
> are not sharpened. Only jpgs get sharpened.
> 

Yeah, I misspoke. I should have said JPG versions of  PNGs.
Comment 8 Maarten Dammers 2014-06-07 16:21:53 UTC
The current tiff thumbnails are of such poor quality that Commons users are uploading duplicate jpegs. This is a lot of extra work and puts and extra strain on the Commons community because everything needs to be done twice. Raising the priority of this bug.
Comment 9 Bawolff (Brian Wolff) 2014-06-07 16:24:29 UTC
I would like to fix this bug at the same time as bug 52045, since we're be changing the rendering config with that bug, so might as well do it all at once.

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


Navigation
Links