ITADN

--exiftool flag strips Canon MakerNotes during export causing wrong lens identification

#2130Openzokgit 创建于 2026-04-05
Z
zokgitcommented
Hello everyone, I have searched existing open and closed issues and did not find a report matching this issue. Apologies if I missed anything... - Description When exporting photos from Apple Photos using osxphotos with the --exiftool flag, all Canon MakerNotes tags are stripped from the exported files. This causes downstream applications that rely on ExifTool's Composite Lens ID (such as Immich) to fall back to a numeric lookup table which can return incorrect lens information. - Evidence Running exiftool on an original Canon EOS R6 Mark II file exported directly from Apple Photos (Unmodified Original) shows a lot of of [Canon] MakerNotes tags including the critical RF Lens Type tag: [Canon] RF Lens Type : Canon RF 24-105mm F4L IS USM ← correct [Composite] Lens ID : Canon RF 24-105mm F4L IS USM ← correct The same file exported via osxphotos --exiftool shows zero [Canon] MakerNotes tags:: [XMP-aux] Lens : Canon RF24-105mm F4 L IS USM ← correct [Composite] Lens ID : Canon RF 24-105mm F4-7.1 IS STM ← WRONG! Without RF Lens Type, ExifTool falls back to numeric lookup table for lens ID 61182 which incorrectly resolves to Canon RF 24-105mm F4-7.1 IS STM instead of Canon RF 24-105mm F4 L IS USM on ExifTool production version 13.50. - Environment - osxphotos version: 0.75.6 - macOS: 26.4 (Tahoe) - Camera: Canon EOS R6 Mark II - ExifTool version: 13.50 - Python: 3.11.5 - Export command used osxphotos export ~/Desktop/ImmichImport \ --exiftool \ --touch-file \ --skip-original-if-edited \ --edited-suffix "" \ --update \ --verbose - Expected behaviour Canon MakerNotes should be preserved in exported files so that ExifTool can correctly identify Canon RF lenses using the RF Lens Type tag. - Actual behaviour All [Canon] MakerNotes tags are stripped during export, leaving only standard EXIF and XMP fields. - References This issue was investigated in collaboration with Phil Harvey (ExifTool author) on the ExifTool forum. ExifTool FAQ 8 is relevant — MakerNotes may not be copied correctly unless handled explicitly: https://exiftool.org/faq.html#Q8 Related Immich issues: https://github.com/immich-app/immich/issues/27030 https://github.com/immich-app/immich/issues/27479
13 条评论