Remove photo metadata (EXIF)
image_exif_stripRemoves EXIF, GPS, XMP, IPTC, comments, and embedded previews from photos before sharing, cleaning JPEG/PNG losslessly while optionally preserving orientation.
Instructions
Remove EXIF, GPS location, XMP, IPTC, comments, PNG text chunks and embedded previews from a photo before sharing it. JPEG and PNG are cleaned losslessly (image data copied byte for byte, like the website); by default the rotation is kept as a tiny orientation-only EXIF and the ICC colour profile is kept. applyOrientation re-encodes JPEGs with the rotation baked into the pixels. WebP/AVIF/HEIC/TIFF are re-encoded without metadata. Output name -clean.. Web version: https://s3eidat.github.io/exif-cleaner/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | The photo: a local file path (absolute, or relative to the server's --root) or base64 data (raw or a data: URI). | |
| output | No | Where to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set). | |
| keepIcc | No | Keep the ICC colour profile (no personal data; keeps colours right). Default true. | |
| quality | No | JPEG/WebP/AVIF quality when re-encoding is needed. Default 92. | |
| returnBase64 | No | Also return the output as base64 in the result (only for small files). Default false. | |
| keepOrientation | No | Keep only the Orientation tag so the photo still shows the right way up. Default true. | |
| applyOrientation | No | Instead of keeping the Orientation tag, rotate the pixels (re-encodes JPEG at `quality`; PNG is unaffected). Default false. |