Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve EXIF handling #4002

Open
Open
@DDoS

Description

@DDoS

Bug report

Describe the bug
EXIF Byte field is always formatted as a display string. For example the EXIF tag "exif-ifd3-GPSAltitudeRef" outputs "Sea level (Sea level, Byte, 1 components, 1 bytes)". For consistency with other types, I would've expected "0 (Sea level, Byte, 1 components, 1 bytes)", where the number comes first, and the display name is in the parentheses. I'm not sure if this intentional, but it makes parsing byte tags a lot more complicated.

To Reproduce
Steps to reproduce the behavior:

  1. Use an image with GPS EXIF data (like an iPhone photo)
  2. Read the field "exif-ifd3-GPSAltitudeRef"

Expected behavior
"0 (Sea level, Byte, 1 components, 1 bytes)"

Actual behavior
"Sea level (Sea level, Byte, 1 components, 1 bytes)"

Environment

  • OS: macOS 12.7.5
  • Vips: 8.15.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions