If you're building a pipeline that converts user-uploaded images to WebP for performance, you may be silently dropping legacy IPTC-IIM metadata. Here's why the distinction between IPTC-IIM and IPTC Photo Metadata in XMP matters, and what to do about it.

The Metadata Container Problem

Image metadata isn't a single standard — it involves multiple representations (EXIF, legacy IPTC-IIM, XMP) stored in format-specific containers. When you convert between formats, you need to map metadata from one container structure to another.

The mapping isn't always 1:1.

How each format stores metadata:

  • JPEG: EXIF in APP1, legacy IPTC-IIM in APP13, XMP in APP1. Full support for all three representations.
  • PNG: EXIF via eXIf chunk (standardized 2017), XMP via iTXt chunks. Legacy IPTC-IIM support is implementation-dependent.
  • WebP: EXIF and XMP stored in dedicated RIFF chunks. No standard container for legacy IPTC-IIM exists in the WebP spec. IPTC Photo Metadata properties represented in XMP may be carried in the XMP chunk.
  • HEIC: EXIF and XMP in the ISOBMFF container. Rich metadata support from iPhones.
  • TIFF: Full support for EXIF, legacy IPTC-IIM, and XMP. Commonly used in print/professional workflows.

The WebP Legacy IPTC-IIM Problem

WebP's RIFF-based container defines chunks for EXIF and XMP but has no equivalent for legacy IPTC-IIM. This means:

  • Copyright notices stored exclusively as legacy IPTC-IIM → cannot be written as IIM to WebP
  • IPTC-IIM keywords and captions → cannot be stored as IIM
  • Creator and credit fields in IIM representation → cannot be stored as IIM

However, this does not mean all IPTC-related information is automatically lost. The modern IPTC Photo Metadata Standard (IPTC Core and IPTC Extension) uses XMP as its technical representation. Fields like Copyright Notice, Creator, and Keywords have both legacy IIM and XMP representations. If a converter maps these properties into XMP, they may be carried in WebP's XMP chunk.

The risk is when a workflow stores rights information only in legacy IPTC-IIM and converts to WebP without mapping equivalent fields into XMP — that rights metadata will be lost. Verify the resulting XMP metadata and, where relevant, use supported page-level structured licensing metadata as well.

What Can Be Preserved in Each Conversion Path

Conversion EXIF Legacy IPTC-IIM XMP Transparency Notes
HEIC → JPG Can be preserved Depends on converter Can be preserved N/A (no alpha) JPG supports all representations
HEIC → WebP Can be preserved No IIM container Can be preserved Preserved IPTC in XMP may survive
JPG → WebP Can be preserved No IIM container Can be preserved N/A IPTC in XMP may survive
JPG → PNG Can be preserved Implementation-dependent Can be preserved N/A PNG legacy IIM support varies
PNG → JPG Can be preserved Implementation-dependent Can be preserved Lost (flattened) Alpha → solid background
PNG → WebP Can be preserved No IIM container Can be preserved Preserved IPTC in XMP may survive
TIFF → JPG Can be preserved Can be preserved Can be preserved Lost Full metadata support
TIFF → WebP Can be preserved No IIM container Can be preserved Preserved IPTC in XMP may survive

Note: "Can be preserved" means the target format supports the representation — actual preservation depends on the converter explicitly transferring the metadata.

Implementation: How Browser-Side Conversion Works

GeoImageTagger's Image Converter uses a split architecture that's worth noting:

  1. Pixel encoding runs entirely in the browser using WebAssembly builds of MozJPEG (for JPG), OxiPNG (for PNG), and libwebp (for WebP). No server round-trip for the conversion itself.
  2. Metadata transfer is handled server-side using ExifTool. The WASM encoders produce a "clean" output blob, and metadata is copied from the original file into the converted output as a separate step.
  3. Verification compares metadata fields before and after, reporting whether all original fields were confirmed present in the output.

This split matters because WASM image encoders don't handle metadata natively — they operate on raw pixel data. If you're building your own conversion pipeline, you need explicit metadata handling. A two-stage encode-then-metadata-transfer workflow is one practical approach.

For HEIC input, the converter uses heic2any for client-side decoding with a server-side fallback for files the browser can't decode.

Practical Considerations

If you need legacy IPTC-IIM preserved as IIM: Output to JPG, not WebP. JPEG's APP13 container handles legacy IIM reliably.

If you're converting for web delivery: WebP is an efficient modern format that supports lossy/lossless encoding and transparency. Compare actual output quality and size for your images. Be aware that legacy IPTC-IIM fields cannot be stored as IIM in WebP, though IPTC properties in XMP representation may survive.

If you're batch processing: The converter handles up to 10 images per session with individual metadata verification for each file.

If privacy matters: The pixel conversion runs in-browser (no upload). When metadata preservation is enabled, server-side processing is used for metadata transfer and verification. Consider whether your images contain GPS data you don't want preserved — if so, use an EXIF remover instead.

Verification

Always verify metadata after conversion, especially when converting to WebP. Open the output in a metadata viewer and check for:

  • GPS coordinates (EXIF)
  • Camera model and settings (EXIF)
  • Copyright and creator fields — check both legacy IIM and XMP representations
  • Description and keywords — XMP versions can survive in WebP; legacy IIM versions cannot

For a deeper dive on the metadata standards themselves, the full guide is at GeoImageTagger's blog.