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

J2K in HEIF #357

Open
palemieux opened this issue Apr 12, 2023 · 2 comments
Open

J2K in HEIF #357

palemieux opened this issue Apr 12, 2023 · 2 comments

Comments

@palemieux
Copy link

It looks like Jasper supports HEIC,

How difficult would be it be to add support for J2K in HEIF, which is specified in Rec. ITU-T T.815 | ISO/IEC 15444-16? Any particular obstacles?

@dukesook, who has been working on an implementation, has made sample files available at https://github.com/dukesook/enoji

@mdadams
Copy link
Collaborator

mdadams commented Apr 12, 2023

JasPer does not officially support HEIC at present. I added some partial support for HEIC for experimentation purposes, but it is disabled by default (via the CMake option JAS_ENABLE_HEIC_CODEC). The HEIC support in JasPer is not native. So, whether the HEIC support in JasPer can handle J2K would depend on the HEIC library that JasPer uses for this support. If the HEIC library is sufficiently flexible, this might be possible, but I reallly don't know. I am not familiar with the technical details of HEIF/HEIC. So, it would not be feasible for me to add native support for this format to JasPer though.

jubalh added a commit to jubalh/gentoo that referenced this issue Apr 13, 2023
jubalh added a commit to jubalh/gentoo that referenced this issue Apr 13, 2023
gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Apr 13, 2023
@Jamaika1
Copy link
Contributor

Jamaika1 commented Jan 28, 2024

I don't know if it is necessary to add jpeg2000 to heif.
No decoders.
Nothing is known about jpegxs in heif.

heifenc_avx.exe image.jpg --verbose --jpeg2000 -L -q 100 -e openjpeg --no-alpha --matrix_coefficients=0 --full_range_flag=1 -o image3.heif

heifenc_avx.exe image.jpg --verbose --htj2k -L -q 100 -e openjph --no-alpha --matrix_coefficients=0 --full_range_flag=1 -o image4.heif

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

No branches or pull requests

3 participants