Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding JPEG-XL Support #48

Closed
ItsSharples opened this issue Feb 11, 2024 · 2 comments · Fixed by #51
Closed

Adding JPEG-XL Support #48

ItsSharples opened this issue Feb 11, 2024 · 2 comments · Fixed by #51

Comments

@ItsSharples
Copy link

From https://github.com/ImageMagick/jpeg-xl/blob/main/doc/format_overview.md

JPEG-XL Either starts with
0xFF0A for a Raw JPEG-XL Codestream
0x0000000C 4A584C20 0D0A870A for a ISOBMFF-based container

Checking the files at https://jpegxl.info/art/2021-04_jon.html, I can confirm that 0xFF0A is used for Raw Codestreams

@NebularNerd
Copy link
Contributor

I've added a PR to handle these, one small quirk/annoyance is that the raw FF0A header is tiny (I know they want to keep file size down), however, this will lead to confidence issues against .qrp files if the next byte in a raw stream is 00

["ff0a00", 0, ".qrp", "", "QuickReport Report"],

@cdgriffith
Copy link
Owner

Thank you for the info @ItsSharples and PR for it @NebularNerd! Added in https://github.com/cdgriffith/puremagic/releases/tag/1.21

Unfortunately low confidence is just a fact of life with files like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants