Skip to content

Bug: Flash tag decoded as 'None' instead of 'Off, Did not fire' #37

Description

@rpuneet

Problem

Flash EXIF tag is decoded as None when it should be Off, Did not fire (or similar descriptive text).

Comparison

imx exiftool
None Off, Did not fire

File

testdata/jpeg/4k_landscape_sunset.jpg

Root Cause

The Flash tag (0x9209) is a bitmask with multiple fields:

  • Bit 0: Flash fired (0 = No, 1 = Yes)
  • Bits 1-2: Return light (0-3)
  • Bits 3-4: Mode (0 = Unknown, 1 = On, 2 = Off, 3 = Auto)
  • Bit 5: Function present (0 = Yes, 1 = No)
  • Bit 6: Red-eye mode (0 = No, 1 = Yes)

For value 0x10 (16): Bits 3-4 = 10 (binary) = 2 = Off mode
Should decode to "Off, Did not fire"

Fix

Update Flash enum decoder to properly interpret the bitmask and generate descriptive string.

Priority

Low - Minor display difference

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions