Image files can carry comments, camera fields, color profiles, and format-specific chunks that should not always travel with a public upload or client handoff. ImageMagick can write a cleaned copy from the terminal so the original remains available until the stripped output is checked.
In ImageMagick 7, the magick command reads the source file, applies operators in order, and writes a separate output file when the final argument is a new filename. The -strip operator removes profiles, comments, and common metadata chunks, while -auto-orient applies any EXIF orientation before that metadata is removed.
Metadata removal can change more than privacy fields. Stripping an ICC profile removes embedded color-management data, and JPEG output is rewritten during the operation, so keep the source image until the cleaned file has been visually checked and the required metadata fields are absent.
$ magick identify -format "comment=%c\n" photo.jpg comment=Catalog handoff sample
Use magick identify -verbose photo.jpg when the review needs the full metadata and profile report instead of one field.
$ magick photo.jpg -auto-orient -strip photo-clean.jpg
Keep -auto-orient before -strip for camera photos that rely on an EXIF orientation tag. If the image has no orientation tag, the operator does not change its orientation.
Do not overwrite the only source copy until the cleaned image has been checked. Stripping profiles can affect color-managed workflows, especially when a specific ICC profile is required.
$ magick identify -format "comment=%c\n" photo-clean.jpg comment=
A blank value after comment= means ImageMagick did not find a comment field in the cleaned output.
$ magick identify photo-clean.jpg photo-clean.jpg JPEG 1200x800 1200x800+0+0 8-bit sRGB 43443B 0.000u 0:00.000
Keep the original file only as long as it is needed for rollback, color review, or archive policy.