Skip to content

Show available previews in the metadata summary - #9537

Open
wilx wants to merge 1 commit into
Exiv2:mainfrom
wilx:fix-dng-preview-summary
Open

wilx wants to merge 1 commit into
Exiv2:mainfrom
wilx:fix-dng-preview-summary

Conversation

@wilx

@wilx wilx commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Show a separate Preview line in the default metadata summary when a conventional Exif thumbnail is absent or empty. For the DNG in #3041, the summary now includes:

Thumbnail       : None
Preview         : image/tiff, 4032x3024 pixels, 2155590 Bytes

Reuse the existing preview API and keep otherwise readable summaries available when optional preview loading fails. Add generated regressions for both TIFF byte orders, multiple previews, empty thumbnails and malformed ranges, plus CLI documentation.

Validated on Linux: full serial debug CTest (8/8 groups), eight CLI regressions in debug, no-XMP and ASan/UBSan builds, and 40 focused unit tests in debug and ASan/UBSan. Original metadata and extracted preview bytes match the baseline. Sanitizer checks exclude optional web/curl support.

Fixes #3041.

AI assistance: developed with OpenAI Codex.

@wilx
wilx force-pushed the fix-dng-preview-summary branch from 3b42182 to 6ad16bc Compare November 4, 2026 22:37
Report the first available preview separately when an Exif thumbnail has no
payload. Keep the remaining summary available if optional preview loading
fails.

Fixes Exiv2#3041.
@wilx
wilx force-pushed the fix-dng-preview-summary branch from 6ad16bc to 0fc09af Compare November 22, 2026 15:24
@mergify

mergify Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metadata from the iPhone 16 Pro Max DNG file w/ JPEG XL primary image and JPEG preview image

1 participant