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

Fix rendering of fnumber in EXIF data #86

Merged
merged 1 commit into from
Aug 12, 2024

Commits on Aug 10, 2024

  1. Fix rendering of fnumber

    FNumber is represented as a imagemeta.rat[uint32], which contains a numerator and a denominator. If used directly in a template this results in fractional apertures (e.g. 5.6) in their rational form (e.g. 28/5) rather than as a float with one sig fig. 
    
    This commit updates the EXIF rendering logic, casting the rational to a float64, and then rendering it with at most 1 sig fig
    ramatevish authored Aug 10, 2024
    Configuration menu
    Copy the full SHA
    dd610ac View commit details
    Browse the repository at this point in the history