0

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?

Community
  • 1
  • 1
Gopi
  • 21
  • 4
  • In the referred link, it has been done successfully. Why cant i get that? Moreover I need to work with ImageMagick. using convert -strip I need solution – Gopi Sep 15 '16 at 13:38
  • I know this is an old post but you need to get the ICC profile, strip the image and then add the ICC profile back in after – 99 Problems - Syntax ain't one Nov 23 '18 at 12:45

1 Answers1

0

Try exiftool as follows to remove all EXIF data without losing quality:

exiftool -all= image.jpg

You can achieve the same with jhead too:

jhead -purejpg image.jpg
Mark Setchell
  • 191,897
  • 31
  • 273
  • 432