metadata-extractor icon indicating copy to clipboard operation
metadata-extractor copied to clipboard

Support to read metadata from JPEG2000 files

Open albfernandez opened this issue 3 years ago • 4 comments

Please add support to read metadata from JPEG2000 files.

Sample image relax.jp2 relax.zip attached (downloaded from https://www.fnordware.com/j2k/jp2samples.html)

Sample code:

File file = new File("relax.jp2");
try (InputStream is = new FileInputStream(file)) {
    Metadata metadata = ImageMetadataReader.readMetadata(is, file.length());
}

Stack trace

com.drew.imaging.ImageProcessingException: File format could not be determined
	at com.drew.imaging.ImageMetadataReader.readMetadata(ImageMetadataReader.java:185)
	at com.drew.imaging.ImageMetadataReader.readMetadata(ImageMetadataReader.java:124)

albfernandez avatar Dec 15 '21 08:12 albfernandez

May I be assigned to this issue to implement this feature?

Hsstone1 avatar Jan 25 '22 21:01 Hsstone1

@Hsstone1 thank you for volunteering. There is no need to be assigned before you start working on the feature, though it's a good idea to declare you intention to avoid duplication of effort. In this case I believe you are in the clear.

Reach out here if you have any questions.

drewnoakes avatar Jan 31 '22 00:01 drewnoakes

Once you have completed your analysis, if you'd like to share your thinking then we can validate your approach. This may save you some time overall.

drewnoakes avatar Jan 31 '22 00:01 drewnoakes

@drewnoakes : Thanks for your work on this great library!

Is there any news regarding the support of JPG2000 files? Thank you.

benocms avatar May 24 '23 16:05 benocms

No news. It will likely require someone who needs this support to implement it.

drewnoakes avatar May 24 '23 17:05 drewnoakes