A JPEG can carry the right caption and the wrong one

A JPEG can carry the right caption and the wrong one

The photo editor signed off on “Three swatches line the slate board.” The Word caption list has that sentence. Open the delivered JPEG in an application that reads its older caption field first and it says two swatches on a white table. Both applications opened the right file. You can reproduce this with the photo-desk sample and its Word handover. It contains two original illustrations. The pixels in the before and corrected swatch pictures are identical, so comparing a contact sheet cannot reveal this change.

照片编辑批准了“三块色样排列在石板上”这一说明。Word 说明列表中包含该句子。如果用优先读取旧说明字段的应用程序打开交付的 JPEG 文件,它会显示“白色桌子上的两块色样”。两个应用程序打开的都是同一个正确的文件。你可以使用照片库样本及其 Word 交接文件来重现此情况。它包含两张原始插图。修改前后的色样图片像素完全相同,因此通过对比联络表无法发现这种变化。

Read each source separately Unzip the sample. With ExifTool installed, run this in the kit directory: exiftool -a -G1 -s -charset IPTC=UTF8 \ -XMP-dc:Description -IPTC:Caption-Abstract -IFD0:ImageDescription \ -IPTC:Headline before/002-cards.jpg The XMP description contains the approved slate-board caption. The IPTC caption and the EXIF ImageDescription still contain the older white-table caption. The separate headline reads “Palette study.” The group names matter here. A generic “description” field in a photo app can hide the disagreement. Run the same command on corrected/002-cards.jpg. You should see the three captions agree and the headline stay the same. Dropping all metadata would also drop the approved caption. If your publishing pipeline strips it when resizing, check the exported JPEG that will actually be delivered.

分别读取每个源文件。解压样本。在安装 ExifTool 后,在工具包目录中运行以下命令:exiftool -a -G1 -s -charset IPTC=UTF8 \ -XMP-dc:Description -IPTC:Caption-Abstract -IFD0:ImageDescription \ -IPTC:Headline before/002-cards.jpg。XMP 描述中包含已批准的“石板”说明。IPTC 说明和 EXIF 图像描述中仍然包含旧的“白色桌子”说明。单独的标题显示为“调色板研究”。这里的组名很重要。照片应用程序中的通用“描述”字段可能会掩盖这种不一致。对 corrected/002-cards.jpg 运行相同的命令。你应该会看到三个说明达成一致,且标题保持不变。删除所有元数据也会导致已批准的说明丢失。如果你的发布流程在调整大小时会剔除元数据,请检查实际交付的导出 JPEG 文件。

Compare the Word document with the files The caption document has one row per filename. Open it in Word or LibreOffice Writer. Keep 001-mugs.jpg distinct from 001-MUGS.jpg, especially if someone created the handover on a case-insensitive drive. The kit includes a local Python 3 script that reads the Word table and invokes ExifTool on the JPEGs: python3 check_captions.py caption-list.docx before > review.csv python3 check_captions.py caption-list.docx corrected > fixed.csv Open the CSV in Sheets or Calc. The mug caption keeps the accent in “café.” The other row flags the XMP/IIM disagreement and retains the Word caption and the three embedded values in separate columns. The first command exits 1 to flag a delivery for review. The second exits 0. For your own delivery, use the checker locally with a copy of the approved filename/caption table. It cannot tell whether a caption accurately describes the photograph. That decision belongs to the editor.

将 Word 文档与文件进行对比。说明文档中每个文件名占一行。在 Word 或 LibreOffice Writer 中打开它。请区分 001-mugs.jpg 和 001-MUGS.jpg,特别是如果有人在不区分大小写的驱动器上创建了交接文件的话。该工具包包含一个本地 Python 3 脚本,用于读取 Word 表格并对 JPEG 文件调用 ExifTool:python3 check_captions.py caption-list.docx before > review.csv,python3 check_captions.py caption-list.docx corrected > fixed.csv。在 Sheets 或 Calc 中打开 CSV 文件。咖啡杯的说明保留了“café”中的重音符号。另一行标记了 XMP/IIM 的不一致,并在单独的列中保留了 Word 说明和三个嵌入值。第一个命令退出代码为 1,表示标记交付物以供审查。第二个命令退出代码为 0。对于你自己的交付工作,请在本地使用已批准的文件名/说明表副本运行检查器。它无法判断说明是否准确描述了照片。该决定权属于编辑。