Skip to content

Add support for uploading JPEG-XL .jxl files #184

@danmanix

Description

@danmanix

Problem statement

I am creating an archival system for artists. I am strongly encouraging the use of JXL files for upload as a means of getting archival quality at low file sizes.

I have managed to get support for this format working, but it took some hoops.

  1. Re-registering JXL with filetype (no idea why, as it is included, but I had to do it anyway).
  2. monkey-patch get_accept_attributes for the file-picker
  3. monkey-patch Image.open
  4. monkey-patch PillowImage init, format_name and mime_type

This is probably a terrible way of getting there.

Proposed solution

Enable this in core Willow, checking for the (current) dependency on pillow_jxl which would likely be many fewer lines of code in implementation.

JXL is hopefully making its way to the web (again), but for now it is useful as an upload format.

Alternative solutions

No response

Additional context

No response

Working on this

Contribute to the discussion to help this move forward. Explain your use cases, discuss possible solutions, research how to adapt existing code, or compatibility concerns.

Once others agree with the proposed changes, anyone can contribute to this. View our contributing guidelines. Add a comment to the issue to explain what approach you are taking.

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