Last modified: 2012-12-31 14:08:49 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 T39960, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37960 - provide thumb option to do sharpening on scaled images on a case by case basis
provide thumb option to do sharpening on scaled images on a case by case basis
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.21.x
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-26 10:24 UTC by Subfader
Modified: 2012-12-31 14:08 UTC (History)
2 users (show)

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


Attachments

Description Subfader 2012-06-26 10:24:34 UTC
PNG thumbs are unsharp and there's nothign to do about when you want the thumbs in PNG format:

https://bugzilla.wikimedia.org/show_bug.cgi?id=29659
https://bugzilla.wikimedia.org/show_bug.cgi?id=6205
https://bugzilla.wikimedia.org/show_bug.cgi?id=726

What about an option to return PNG thumbs in JPG (if source is not transparent)?

JPG thumbs of PNG are def sharper. compare yourself: http://www.mediawiki.org/wiki/User:Subfader/PNG_thumbs_unsharp
Comment 1 Bawolff (Brian Wolff) 2012-06-26 12:01:36 UTC
I imagine that has less to do with the file format and more to do with the fact we use image magick to increase sharpening of jpeg files, but not png files.


PNG is generally used for line art, where you don't want to sharpen things artificially (from what I understand).

Note: tiff is sharpened as well (I believe anyhow).
Comment 2 Bawolff (Brian Wolff) 2012-06-26 12:04:33 UTC
for reference, see bug 6193
Comment 3 Subfader 2012-06-26 18:30:07 UTC
You're right. Photoshop saves the original PNG in smaller size as sharped image.

So all we need is an option to sharp the thumbs.

[[File:Foo.png|250px|sharpen]]

Add a global option to make it default (see reasons below, not every wiki is Wikipedia):

$wgImageMagickSharpenPNGthumbs = true;

option to override that: [[File:Foo.png|250px|nosharpening]]


You shouldn't assume what type of images which format is used for. PNG is also used a lot for artwork, esp when it has plain pink or red (JPG has horrorible artefacts on these).

Also, my wiki doesn't use line art images. For me most PNG images are normal images. I archive images from web so I take them in the format as they come. I won't convert the PNG source files to JPG just to make their thumbs sharper.
Comment 4 Bawolff (Brian Wolff) 2012-06-26 18:42:25 UTC
Changing bug title per your last comment.


PNG is generally assumed to be line art since that's what the format is optimized for (Or i thought anyways. I'm not an image expert so I could have that all wrong).
Comment 5 Subfader 2012-06-26 18:51:26 UTC
It doesn't matter what the format is ment to be for if the web uses it as lossless and bug-free alternative to JPG.

As said, I don't have line art images on my wiki and 99% of my PNG files are normal images. All their thumbs are unsharp. The reason why they're unsharp is that MediaWiki doesn't want to sharp them since they are better should be line-art? Shame on these images for not being line art :D

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


Navigation
Links