Skip to content

Wider color gamut support聽#9496

Closed as duplicate
Closed as duplicate

Description

@codingjoe

Hi there 馃憢,

Thanks again for making AVIF support happen in Python. Much appreciated by the Django community.

It'd be great to take this a step further and to widen the color gamut. If I understand it correctly, the current implementation is limited to RGB 8-bit.

Meanwhile, most codecs support color spaces like BT2020 with both 10- and 12-bit depth. And mobile devices and modern laptops can even display higher bitrate images via their browsers.

I am aware that this is much to ask for, and my limited skills don't allow me to contribute this myself. But maybe we can get the ball rolling by mapping out the mountain of work this probably is.

Cheers!
Joe

Activity

  1. radarhere commented on Mar 29, 2026

    @radarhere
    Member

    When you say 'support', do you mean read and convert to RGB 8-bit? From my limited search for BT2020 AVIF images, they seem to render ok. If you have an image that demonstrates otherwise, please let me know.

    If you mean read and keep the 10 or 12 bit depth in the images for later use, then you're talking about #1888

  2. codingjoe commented on Mar 29, 2026

    @codingjoe
    Author

    There are issues with embedded ICC profiles, see codingjoe/django-pictures#264

    But this issue was foremost about maintaining 10- or 12-bit color depth, duplicate to #1888
    Somehow I didn't find the issue when doing my research, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions