Bug 228934 - Gamma error in picture scaling
Summary: Gamma error in picture scaling
Status: REPORTED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: http://www.ericbrasseur.org/gamma.html
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-28 18:43 UTC by hoea
Modified: 2020-04-05 05:06 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hoea 2010-02-28 18:43:40 UTC
Version:            (using KDE 4.4.0)
OS:                Linux
Installed from:    Gentoo Packages

Having some pictures which gave strange previews i searched the net and found:
http://www.4p8.com/eric.brasseur/gamma.html

I downloaded the photograph of His Holiness the Dalai Lama. The preview of this picture shows as grey rectangle (tested in konqueror and dolphin).
Comment 1 Michael Pyne 2010-03-01 00:55:05 UTC
Please do note that the example is contrived to fail on algorithms that do not do perfect gamma correction internally (which is much slower). I personally would argue that having slower image scaling to be accurate to a given gamma would most of the time be a negative effect, especially in the context of a web browser.

However it is true that most images are handled in a color space using gamma so mis-rendering of images is possible if not gamma-corrected in the colorspace used by the image. From what I understand if the image does not provide the gamma used (or otherwise define it) a good default choice is gamma = 2.2.
Comment 2 Christoph Feck 2017-11-15 23:03:56 UTC
Updated link: http://www.ericbrasseur.org/gamma.html