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

Any plans for .heic or .jxl #19

Open
Ndolam opened this issue Feb 3, 2024 · 7 comments
Open

Any plans for .heic or .jxl #19

Ndolam opened this issue Feb 3, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@Ndolam
Copy link

Ndolam commented Feb 3, 2024

Not exactly an issue, but I wasn't sure where else to ask.

Are there any plans to add support for HEIC or JPEG XL image formats any time in the "near" future?

Thanks.

@mdadams
Copy link
Contributor

mdadams commented Feb 7, 2024

Code contributions are welcome.

I cannot speak for others, but I have no time to add new features.

@mdadams mdadams added the enhancement New feature or request label Feb 7, 2024
@Ndolam
Copy link
Author

Ndolam commented Feb 7, 2024

Michael, thanks for getting back. I understand time constriants, but I still had hope. :-)

Being familiar with the internals of neither xv nor jasper I have no idea how major an effort that is.

@mdadams
Copy link
Contributor

mdadams commented Feb 7, 2024

I'm not intimately familiar with the code either. I am not the original author. I mainly contributed some bug fixes and helped migrate to a CMake-based build.

@tanabi
Copy link
Contributor

tanabi commented Feb 7, 2024

Adding image types to xv isn't too bad. I recently added support for webp ... this could be used as a 'template' for adding more formats.

7e21eeb

That said ... webp is something I had an active interest in, and I've never encountered these other formats, so its probably not something I'd jump on implementing personally :D That also said, if these formats became common enough that I encounter them on the regular, I'll probably add the support if someone hasn't beaten me to it.

@Ndolam
Copy link
Author

Ndolam commented Feb 7, 2024

Tanabi,

thanks for that change set template, it could be quite useful should someone feel sufficiently motivated.

My interest in .heic is because the iPeople are now told by their corporate overlords that .heic is the correct picture format to use (and always has been, for that matter). And occasionally some of these people send me pictures. https://github.com/strukturag/libheif provides a library and programs to encode and decode such images.

Jxl (https://github.com/libjxl/libjxl) is something I've come across recently. It is a royalty-free format that, among other things, can losslessly shrink regular JPEGs down (that is, you can recode such images back as JPEGs and get exactly the same JPEG you started with). I (and I suspect others) would use JXL to shrink down ordinary JPEGs if/when image handling programs (such as xv) start supporting it. In some quick tests, I've found that the images from my phone can be losslessly shrunk down to about 76% of their original size, which is easily enough compression to make the recoding worthwhile. But currently the only way I have to look at .jxl images is to convert them back to JPEGs, which works but is a clumsy procedure.

@Sembiance
Copy link

By the way, on page 108 of the xv PDF manual there are detailed instructions on how to add a new file format to xv: https://github.com/jasper-software/xv/blob/main/src/docs/manuals/xvdocs.pdf

@Ndolam
Copy link
Author

Ndolam commented Feb 17, 2024

Sembiance, thanks for pointing that out, I hadn't seen that. Very useful information to know

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

No branches or pull requests

4 participants