Skip to content

Gamma-correct chroma subsampling #193

@kornelski

Description

@kornelski

This image (source) should show RULES on an sRGB-ish monitor and/or browser with a good color management.

and if it's resized with appropriate gamma should resize to:

gamma 2.2

However, libjpeg blends pixels in Cr/Cb color space, which has non-linear gamma, and chroma subsampling results in:

bad gamma

It could be better. I've prototyped a very slow and hacky chroma downsampling that generates:

gamma-1 0-or-2 2-red-trianglefilter

so there's definitely a room for improvement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions