Referring to this link
How to remove exif from a JPG without losing image quality?
I thought of doing
convert ~/Desktop/check.jpg profile.icm
convert ~/Desktop/check.jpg -strip -profile profile.icm output.jpg
When I did this, it is showing the error as
convert: UnableToTransformColorspace `/home/local/ZOHOCORP/valli-4204/Desktop/check.jpg' @ warning/profile.c/LCMSExceptionHandler/428.
convert: ColorspaceColorProfileMismatch `icc' @ error/profile.c/ProfileImage/831.
How to solve this?