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

ItemInfoBox no longer throws exception when no content encoding is present #470

Merged
merged 1 commit into from
May 5, 2020

Conversation

normana10
Copy link
Contributor

Hi Drew,

Very cool library you've made here.

I noticed that there were some silent IOExceptions being thrown when trying to extract metadata from some HEIF images I've taken.

My one comment explains what's happening pretty well. Essentially the ItemInfoBox was reading off the end of the bytes it was given because it was not taking into account that 8 bytes had already been read.

I thought I'd start small, I have another working branch that can actually pull EXIF data from HEIFs which shouldn't be impacted by the directory-per-image refactor mentioned in #445. I'll put that PR in after this one gets merged (First time contributing to open source, long time Java developer)

@drewnoakes
Copy link
Owner

@normana10 thanks for this, the change looks good. Do you have an image that reproduces the exception that I can add to https://github.com/drewnoakes/metadata-extractor-images for regression testing? We don't have many HEIF images.

@normana10
Copy link
Contributor Author

Added PR into metadata-extractor-images: drewnoakes/metadata-extractor-images#33

@drewnoakes drewnoakes merged commit 64b7176 into drewnoakes:master May 5, 2020
@drewnoakes
Copy link
Owner

Thanks again for the test images. Ran some tests and this looks great 👍

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

Successfully merging this pull request may close these issues.

2 participants