Last modified: 2010-08-31 18:14:15 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 T8193, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6193 - sharpening (at least as option) and higher thumb-quality
sharpening (at least as option) and higher thumb-quality
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 7383 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-03 20:50 UTC by Keunwoo Lee
Modified: 2010-08-31 18:14 UTC (History)
2 users (show)

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


Attachments

Description Keunwoo Lee 2006-06-03 20:50:21 UTC
Nearly all photographs benefit from minor sharpening when reduced to thumbnail
size.  It would be nice if MediaWiki automatically applied some sharpening to
all JPEG thumbnails.  The ability is already there in GD and ImageMagick.

Ideally there would be a way to disable it (I'd suggest |rawthumb| rather than
|thumb| for thumbnails with scaling only) but given how thumbnails are used this
doesn't seem strictly necessary.
Comment 1 Anders Wegge Jakobsen 2006-06-03 21:23:00 UTC
If the image should be sharpened in any particular resolution, the uploader
should do that manually. An automatic action on all images will produce shitty
results in a few cases, without editors having a chance of finding out why. I
feel inclined to WONTFIX this right away.
Comment 2 Keunwoo Lee 2006-06-05 11:45:05 UTC
In other words, you prefer to optimize for the uncommon case, rather than the common case.
Comment 3 Domas Mituzas 2006-06-05 11:56:12 UTC
interesting, can anyone provide with a gallery of examples? :)
Comment 4 Brion Vibber 2006-09-25 21:57:49 UTC
*** Bug 7383 has been marked as a duplicate of this bug. ***
Comment 5 Raimond Spekking 2006-09-25 22:26:46 UTC
(in replay to comment #1)
>If the image should be sharpened in any particular resolution, the uploader
>should do that manually. An automatic action on all images will produce shitty
>results in a few cases

The full size uploaded image has to be as sharp as possible. But please believe
me, if you scale down an image you has to resharpen it for a better look. 

(In reply to comment #3)
> interesting, can anyone provide with a gallery of examples? :)

Please see example at bug 7383.

If possible by the used libs, please add a little bit sharpness to the generated
thumbs. The actual generated thumbs are to blurry even though the original full
size uploaded image is really sharp. 


Comment 6 ejsanders 2006-11-19 17:39:12 UTC
Copying that example here:
Compare
http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Champions_League_trophy.jpg/375px-Champions_League_trophy.jpg
with
http://static.flickr.com/95/224894467_8f0e771cce.jpg

So Flickr are obviously use sharpening to good effect.
Comment 7 Johann H. Addicks 2006-12-06 21:10:49 UTC
I would really appreciate automatic sharpening for thumbnails PLUS more quality for 
thumbnails. 
The quality of the thumbnails generated by mediawiki are o.k. for "old CRTs on bad VGA-
cabling", and for lowres uploads. but the higher the resolution of the uploaded images, the 
worse the thumbs/scalings become. 

As you ask for examples, to visualize the need for this function

a) Sharpeining for Thumbs
Please compare
-Raw Image "sharp, "uploaded in hires"
http://upload.wikimedia.org/wikipedia/de/d/d6/K%C3%B6nigsallee_in_D%C3%BCsseldorf_Girardetbr%
C3%BCcke_bei_Nacht.jpg

-Raw Image "sharpened" "low resolution upload"
http://upload.wikimedia.org/wikipedia/commons/1/1a/Koenigsallee_okt2004.jpg

In the article the thumb of the lowres-picture looks brilliant, but the thumb of the hires is 
really ugly. 

http://upload.wikimedia.org/wikipedia/de/thumb/d/d6/K%C3%B6nigsallee_in_D%C3%
BCsseldorf_Girardetbr%C3%BCcke_bei_Nacht.jpg/300px-K%C3%B6nigsallee_in_D%C3%
BCsseldorf_Girardetbr%C3%BCcke_bei_Nacht.jpg
and compare to 
http://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Koenigsallee_okt2004.jpg/300px-
Koenigsallee_okt2004.jpg

Or on drawings: 
Fulres: 
http://upload.wikimedia.org/wikipedia/commons/c/ce/Schwarzplan_Tausendfuessler.jpg
thumb: 
http://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Schwarzplan_Tausendfuessler.jpg/200px-
Schwarzplan_Tausendfuessler.jpg


b) More q (quality) for thumgs
there are often very disturbing artefacts on the thumbnails

have a look at the Tomatoe-Images
original:
http://upload.wikimedia.org/wikipedia/commons/d/d2/Tomatoes_plain_and_sliced.jpg

thumb:
http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Tomatoes_plain_and_sliced.jpg/250px-
Tomatoes_plain_and_sliced.jpg

-jha- 
Comment 8 Johann H. Addicks 2006-12-06 21:12:09 UTC
I would really appreciate automatic sharpening for thumbnails PLUS more quality for thumbnails. 
The quality of the thumbnails generated by mediawiki are o.k. for "old CRTs on bad VGA-cabling", 
and for lowres uploads. but the higher the resolution of the uploaded images, the worse the 
thumbs/scalings become. 

As you ask for examples, to visualize the need for this function

a) Sharpeining for Thumbs
Please compare
-Raw Image "sharp, "uploaded in hires"
http://upload.wikimedia.org/wikipedia/de/d/d6/K%C3%B6nigsallee_in_D%C3%BCsseldorf_Girardetbr%C3%
BCcke_bei_Nacht.jpg

-Raw Image "sharpened" "low resolution upload"
http://upload.wikimedia.org/wikipedia/commons/1/1a/Koenigsallee_okt2004.jpg

In the article the thumb of the lowres-picture looks brilliant, but the thumb of the hires is 
really ugly. 

http://upload.wikimedia.org/wikipedia/de/thumb/d/d6/K%C3%B6nigsallee_in_D%C3%
BCsseldorf_Girardetbr%C3%BCcke_bei_Nacht.jpg/300px-K%C3%B6nigsallee_in_D%C3%
BCsseldorf_Girardetbr%C3%BCcke_bei_Nacht.jpg
and compare to 
http://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Koenigsallee_okt2004.jpg/300px-
Koenigsallee_okt2004.jpg

Or on drawings: 
Fulres: 
http://upload.wikimedia.org/wikipedia/commons/c/ce/Schwarzplan_Tausendfuessler.jpg
thumb: 
http://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Schwarzplan_Tausendfuessler.jpg/200px-
Schwarzplan_Tausendfuessler.jpg


b) More q (quality) for thumgs
there are often very disturbing artefacts on the thumbnails

have a look at the Tomatoe-Images
original:
http://upload.wikimedia.org/wikipedia/commons/d/d2/Tomatoes_plain_and_sliced.jpg

thumb:
http://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Tomatoes_plain_and_sliced.jpg/250px-
Tomatoes_plain_and_sliced.jpg

-jha- 
Comment 9 Rainer Knäpper 2006-12-06 23:54:29 UTC
(In reply to comment #3)
> interesting, can anyone provide with a gallery of examples? :)

I've made an example here:

http://de.wikipedia.org/wiki/Benutzer:Smial/thumbtest

Comments are welcome

smial
Comment 10 Rainer Knäpper 2006-12-17 20:45:36 UTC
(In reply to comment #9)
> (In reply to comment #3)
> > interesting, can anyone provide with a gallery of examples? :)

Please visit
http://www.smial.prima.de/bilderwerkstatt/thumbtest/wikimedia_thumbtest.html
Six examples for different values for the "convert" command.
Comments or questions welcome here:
http://de.wikipedia.org/wiki/Benutzer_Diskussion:Smial/thumbtest
In short: 
convert "input file" -thumbnail %sizex -sharpen 0x0.8 "output file" 
should be a useful compromise for either small thumbs down to 120px or previews
at least up to 800x600px.
smial


Comment 11 Raimond Spekking 2007-04-27 16:22:18 UTC
Fixed with r21411 by Tim Starling. Thanks a lot!
Comment 12 Ryan Kaldari 2010-08-31 18:14:15 UTC
See also Bug 24857 (sharpening affected by ImageMagick update).

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


Navigation
Links