Clipsmith Image Metadata Sanitize
Regenerate one local image with ImageMagick, strip hidden metadata, and scan the result for suspicious metadata keys or values. This skill does not OCR, blur, crop, mosaic, mask, or otherwise redact visible image content.
Execution
cd <clipsmith-repo>/skills/clipsmith-image-metadata-sanitize
npx tsx scripts/run.ts \
--input_image "/path/to/input.jpg" \
--output_image "$HOME/Downloads/sanitized.jpg"
Optional:
--strictexits non-zero when suspicious hidden metadata remains.
Output:
- sanitized image at
--output_image metadata_report.jsonbeside the output image- console diagnostics with before/after size, dimensions, hash, EXIF count, and sensitive metadata scan status
Constraints
- Accept local image paths only.
- Require
magickandexiftoolinPATH. - Never overwrite or delete the source image.
- Treat the scan as hidden-metadata-only. A PASS does not mean visible content is safe to publish.
Success Criteria
- Source image exists.
- Output image is written to a separate path.
- Metadata is stripped during re-encode.
metadata_report.jsonis written.- Sensitive metadata scan reports
PASSorREVIEW_REQUIRED.