Coder Social home page Coder Social logo

Comments (4)

clanmills avatar clanmills commented on May 24, 2024

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.

from exiv2.

piponazo avatar piponazo commented on May 24, 2024

But I still have a doubt. How is it possible that this piece of code:

Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(fileName.toUtf8().constData());
image->readMetadata();

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 ?

from exiv2.

clanmills avatar clanmills commented on May 24, 2024

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.

from exiv2.

clanmills avatar clanmills commented on May 24, 2024

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.

from exiv2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.