Remove photo metadata
strip_image_metadataRemove EXIF, GPS, and other metadata from images to protect privacy. Creates a lossless copy without re-encoding, leaving the original file untouched.
Instructions
Write a copy of a JPG, PNG or WebP photo with EXIF (including GPS location), XMP, IPTC and comments removed. Lossless: the image data is not re-encoded. The original file is left untouched and an existing file is never overwritten; returns the new path and what was removed. HEIC is rejected with an error. Use inspect_image_metadata first to see what is there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the image. | |
| output | No | Where to write the cleaned copy. Defaults to <name>-clean.<ext> beside the input. Existing files are never overwritten. | |
| keep_color_profile | No | Keep the ICC colour profile so colours look the same. Default true. |