How to strip everything except color profile (jpeg)?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vertigo72

How to strip everything except color profile (jpeg)?

Post by vertigo72 »

What's the right way to remove EXIF, comments and other similar stuff from a JPEG, while keeping the color profile?

Is the option " +profile exif " sufficient for this purpose or there are more options to add?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to strip everything except color profile (jpeg)?

Post by Bonzo »

Try -strip
vertigo72

Re: How to strip everything except color profile (jpeg)?

Post by vertigo72 »

-strip removes everything, including color profiles
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to strip everything except color profile (jpeg)?

Post by anthony »

I have not tried this but it may work.

You can save profiles to files. So I suggest you read the image, save the color profile data, then in a new command strip all profiles and read in the color profile again.

See IM Examples, Common File Formats, Image Profiles
http://www.imagemagick.org/Usage/formats/#profiles
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply