Repository navigation
Conversation
wilx
force-pushed
the
fix-xmp-device-settings
branch
from
November 1, 2026 09:11
e866a5e to
4c550c0
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9532 +/- ##
==========================================
+ Coverage 65.28% 65.93% +0.65%
==========================================
Files 117 120 +3
Lines 21859 22228 +369
Branches 10806 10996 +190
==========================================
+ Hits 14270 14657 +387
+ Misses 5324 5250 -74
- Partials 2265 2321 +56 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
wilx
marked this pull request as draft
November 1, 2026 10:49
wilx
force-pushed
the
fix-xmp-device-settings
branch
from
November 1, 2026 18:29
6d6366c to
f7af955
Compare
wilx
force-pushed
the
fix-xmp-device-settings
branch
from
November 1, 2026 18:36
f7af955 to
919ca44
Compare
wilx
marked this pull request as ready for review
November 1, 2026 18:48
wilx
force-pushed
the
fix-xmp-device-settings
branch
from
November 4, 2026 22:19
919ca44 to
ea8b3cd
Compare
Map DeviceSettings as structured XMP, retaining TIFF byte order, dimensions, ordered UCS-2 settings, empty entries and unmapped fields. Validate text and preserve explicit XMP edits over unchanged reconstructed native values. Add conversion, roundtrip and synthetic sidecar regression tests. Fixes Exiv2#3292.
Create new CLI sidecars in memory and transfer their completed packets only after successful conversion and encoding. Keep immediate filesystem creation unchanged and document the existing in-memory API sequence for applications. Report encoding failures and use ordinary BasicIo::transfer for existing sidecars. Physical I/O failures retain the existing transfer semantics. Add regressions derived from Exiv2#9551, covering invalid native text, valid UTF-8, existing and missing destinations, retries, stdout, raw and empty packets.
wilx
force-pushed
the
fix-xmp-device-settings
branch
from
November 22, 2026 15:24
ea8b3cd to
fdf3b28
Compare
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3292. Addresses the encoding-failure data loss reported in #9551.
DeviceSettingDescriptionwas exported as scalar text although XMP represents it as a struct. Add bidirectional conversion that preserves dimensions, ordered UCS-2 settings, TIFF byte order, empty entries, and unmapped fields. Preserve explicit XMP edits over unchanged reconstructed native values.Report XMP encoding failures to callers and make the CLI return failure. New CLI sidecars are encoded in memory before creating the destination; existing sidecars finish encoding before
BasicIo::transfer()writes any bytes. Failed encoding therefore preserves an existing sidecar or leaves a new one absent. Regression tests cover the malformed UserComment, Model, and Copyright values from #9551, alongside valid UTF-8 copyright text.ImageFactory::create(type, path)retains its immediate-overwrite contract. Applications that create filesystem sidecars before encoding must adopt the documented sequence:create(ImageType::xmp), set metadata,writeMetadata(), then transfersidecar->io()toFileIo(path). This uses existing APIs. Physical I/O failures can still leave partial output.Validation:
AI assistance: implementation and tests developed with Codex.