Keep AI image metadata for Merchant Center

Check whether the JPEG at your feed URL still contains the IPTC Digital Source Type after export.

Asset preparation3 min read

A generated image looks the same after export, but the JPEG at your feed URL has lost its provenance tag. Google requires metadata identifying generated images and asks you to preserve embedded Digital Source Type information. This applies to images supplied through image_link, additional_image_link and lifestyle_image_link. Google’s AI-generated image requirements

Compare the original, export and downloaded file

Get the original from the tool or the person who created it. Keep a separate copy of the file you exported, then download the image from the exact URL in your product feed, following redirects. In ExifTool, check all three files at once:

Shell
exiftool -G1 -s -XMP-iptcExt:DigitalSourceType original.jpg export.jpg downloaded.jpg

In IPTC’s robot JPEG, the value ends in trainedAlgorithmicMedia. A JPEG re-export with Pillow 13.0.0 at quality 85 omitted the field. Passing the original XMP packet explicitly yielded the same decoded pixels as that export and preserved the field. The example isolates a metadata loss you cannot see in a preview. IPTC guidance on Digital Source Type · Pillow’s JPEG export options

Check a public feed image in your browser

Open Get IPTC Photo Metadata, paste the direct public image URL from the feed into Image URL, and select Get Photo Metadata of Web Image. In the result for IPTC’s sample JPEG, find Digital Source Type {XMP}. Its value ends in trainedAlgorithmicMedia. The viewer shows populated fields by default. If the row is missing for your feed URL, download that exact file and check it locally with the command above.

To reproduce the loss, save the sample as original.jpg. Run this with Python and Pillow 13.0.0:

Python
from PIL import Image

with Image.open("original.jpg") as photo:
    photo.save("stripped.jpg", quality=85)
    photo.save("retained.jpg", quality=85, xmp=photo.info["xmp"])

Run exiftool -T -FileName -XMP-iptcExt:DigitalSourceType stripped.jpg retained.jpg. The stripped file prints a dash for the missing field. The retained file prints the URI ending in trainedAlgorithmicMedia. When repairing your own export, use the XMP from that same photo’s source file.

Fix the step where you lose the field

  • If the export loses it, redo the export with metadata preservation enabled. Check the result before uploading.
  • If the export has it but the downloaded file does not, check the hosting or image transformation that serves that URL. Point the feed to the verified derivative, then check that Merchant Center fetched the replacement.
  • If the original has no tag, check how the image was made before assigning a value. IPTC uses trainedAlgorithmicMedia for content generated by a trained model. A composite can have a different value. A blank field alone cannot establish the source.

After replacing the file, download it from the submitted URL and check the tag again. In Merchant Center, check the item’s image processing status and thumbnail. The metadata reading applies to the file you downloaded.

Image tools
All guides
Keep AI image metadata for Merchant Center | Formatry Media — Formatry