mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
A TIFF export with --tiff-layers reported "EXIF not supported; it will be dropped" even though the file kept the tags. export_layered puts EXIF into the Photoshop image resources as 1058, which the TIFF writer emits as tag 34377 and the importer reads back, so reopening the file restored the original tags. ExportResult.warnings is documented as notes about what an export will lose, so the message was an incorrect loss report for an export that loses nothing. The TIFF codec has no EXIF directory, so the second copy handed to it in meta.exif was never written; it only existed to make the codec warn. That copy is gone, and with it the false warning. The flat-TIFF path still hands the codec the tags, still drops them, and still says so. The test is the issue's own claim checked in both directions: a layered export reports no EXIF loss AND the Artist tag survives the round trip, so the missing warning reflects a real absence of loss rather than a silenced one; a flat export is the control and keeps warning. It fails on the exact reported message before this change.