This is a link to an image containing php code injection in the comment section http://nullcandy.com/demo/kittens/kitten.jpg
identify -verbose kitten.jpg shows the php code there.
I can remove it by using -strip or by setting the comment to an empty string, for example as
Code: Select all
convert kitten.jpg -set comment "" kitten_new.png
I was wondering if we could get some way to remove all meta data, leaving the profiles? Perhaps this exists, but I am unaware of how to do that. Or a way to remove the EXIF and IPTC data.
One suggestion would be either arguments for -strip that allow one to choose to strip either 1)metadata or 2) metadata and profiles. I know we have +profile "*" to remove profiles. Or perhaps a -define for -strip. Or a new function to just strip meta data. Or a new function to just strip EXIF and IPTC data.
It would be even better if the stripping was done before reading the image as in the new features to strip profiles (-define profile:skip=icc)
I am open to alternates means and to suggestions.