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

Support JP2 files #28

Open
ovanderzee opened this issue May 13, 2020 · 6 comments
Open

Support JP2 files #28

ovanderzee opened this issue May 13, 2020 · 6 comments

Comments

@ovanderzee
Copy link

Did you consider support for JP2 files? These are web-useable in Safari and are popular for scientific purposes.

@MikeKovarik
Copy link
Owner

Hello. I don't even know that this format exists, let alone how it works. So unfortunately I don't plan on supporting it any time soon. But I'm open to PR and I'd be happy to provide guidance if you'd like to implement it. For now I'm only planning to implement PNG and WebP.

@ovanderzee
Copy link
Author

JPEG2000 a lossless flavor of JPEG. Since you already support that, i thought it might be easy.

@MikeKovarik
Copy link
Owner

Oh, yeah jpeg200 rings a bell. I just didn't realize the connection with Jp2. Do you have some files that you could upload here for me to work with? I can take a look at that.

@ovanderzee
Copy link
Author

jp2-examples.zip

@MikeKovarik
Copy link
Owner

Thank you. from the quick look I could tell that the file structure is ISOBMFF based, the same structure used in HEIC which exifr already supports. There are some ICC data (rTRC, bTRC, gXYZ and others) and then there's some XMP matching the png's that you provided.
image
So adding support for jp2 is certainly possible. Unfortunately I can't promise it yet. There are other projects that I need to work on besides exifr.

@deoxilix
Copy link

deoxilix commented Apr 5, 2021

Hello. I don't even know that this format exists, let alone how it works. So unfortunately I don't plan on supporting it any time soon. But I'm open to PR and I'd be happy to provide guidance if you'd like to implement it. For now I'm only planning to implement PNG and WebP.

Hi @MikeKovarik,
by when can we expect WebP support?

Thanks.

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

No branches or pull requests

3 participants