-
Notifications
You must be signed in to change notification settings - Fork 286
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
Error reading TIFF image: "tiff directory length is too large" #15
Comments
It's a multi-page tiff and Exiv2 does not support that. I don't think the error message is very helpful. There's an open issue to work on this. I created a script using some of libtiff utilities to cut the multipage tiff into single page files, modify the metadata and recombine them. Messy. Let me know if that "fix" is useful to you and I'll "point" you to the notes concerning this. |
But I still have a doubt. How is it possible that this piece of code:
Was working on the version 0.25 and now in 0.26 it throws an exception in the readMetadata() function. Is it a new check introduced between 0.25 and 0.26 ? |
Yes. I added a two new Errors a few weeks ago. Error 55 and 56. Somebody was doing some “fuzzing” on our code and found ways to get us to crash. I can’t remember if theres something different between v0.25 and v0.26 concerning this. |
I've remembered the change between v0.25 and v0.26 about this. image->readMetadata() in v0.26 calls image->printStructure(kpsRecursive) and that's where this "too big" thing is detected. In v0.25, I think we recover metadata and write some warnings to errout. In v0.26, we write more warnings to errout and recover the metadata. The current master throws these new errors. We don't support multi-page tiff. We may have been recovering some metadata, however it's unlikely to be complete. Multi-page tiff is on the list for v0.27 http://dev.exiv2.org/news/3 However, I decided to do user support and mentoring for Exiv2 in 2017. If I do all the development and support, Exiv2 becomes a full-time job. More contributors are needed to work on this stuff. |
I have this error when trying to read an EXIF image I could perfectly read with the version 0.25:
I attach the image here so you can analyse the issue. This will block me to update the Exiv2 version in my software
The text was updated successfully, but these errors were encountered: