Giter Site home page Giter Site logo

Comments (4)

jefftucker1952 avatar jefftucker1952 commented on June 3, 2024

I can add that Windows File Explorer Properties displays it as -0.3 step, as expected. If I take ColibriP2's image and "change" the value in something like EXIF Pilot, just re-entering the same value, metadata-extractor no longer chokes on it, and shows -0.3 EV. Not sure what's buried in the original that's throwing it for a loop.

from metadata-extractor.

drewnoakes avatar drewnoakes commented on June 3, 2024

Exif stores rational numbers as two signed integers. In your original image, the denominator must be negative.

We could have the Rational toString method normalise the signs.

from metadata-extractor.

drewnoakes avatar drewnoakes commented on June 3, 2024

Also discussed in https://jalbum.net/forum/thread.jspa?messageID=364782&tstart=0

from metadata-extractor.

drewnoakes avatar drewnoakes commented on June 3, 2024

Note that in general, a nicer presentation of Rational values can be obtained via Rational.toSimpleString. That's not the default, however, as it can lose some information relative to toString, and it has a longer running time (https://en.wikipedia.org/wiki/Euclidean_algorithm).

In the original issue, JAlbum could sniff for instances of Rational values and call toSimpleString, which will handle the above case and others (such as converting 0/100 to 0, 7/21 to 1/3, and 1/5 to 0.2 etc.).

from metadata-extractor.

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.