MikeKovarik / exifr

📷 The fastest and most versatile JS EXIF reading library.
https://mutiny.cz/exifr/
MIT License
1.06k stars 70 forks source link

Support JP2 files #28

Open ovanderzee opened 4 years ago

ovanderzee commented 4 years ago

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

MikeKovarik commented 4 years ago

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 commented 4 years ago

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

MikeKovarik commented 4 years ago

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 commented 4 years ago

jp2-examples.zip

MikeKovarik commented 4 years ago

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 commented 3 years ago

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.