ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: myth5656 on September 17, 2010, 12:49:55 PM

Title: delete all except colorprofile
Post by: myth5656 on September 17, 2010, 12:49:55 PM
Hello guys,

When using -all= option all data will be deleted, also the colorprofile. Is there a way to exclude the profile? (i mean the pfofile like Adobe sRGB). I want to avoid that an extra file need to be written, where the information is stored...

I tried to use --icc_profile:all, but there are is also some information stored which is broken, so I want to remove it, that PhotoShop does not complain about broken data when opening the image.

Cheers.
Title: Re: delete all except colorprofile
Post by: Phil Harvey on September 17, 2010, 01:02:23 PM
I'm not sure what you want.  I would have suggested -all= --icc_profile:all, but you said: "there are is also some information stored which should be removed" -- what exactly do you mean by that?  Also, what file type are we dealing with here?  JPEG?

- Phil
Title: Re: delete all except colorprofile
Post by: myth5656 on September 17, 2010, 01:07:03 PM
Sorry I updated my post. It is an jpeg, and when opening the original  image with PhotoShop it sais that some data is broken. I used --icc_profile:all and still get the message. So I want to try to remove all except the color profile. 

Thank for the fast reply.
Title: Re: delete all except colorprofile
Post by: Phil Harvey on September 17, 2010, 01:27:45 PM
Generally, the technique to fix format errors is to rebuild the metadata (a la FAQ number 20 (https://exiftool.org/faq.html#Q20)).  This means deleting it all then copying some back again (as opposed to deleting all but some metadata as with my previous command).

The following command will do this:

exiftool -all= -tagsfromfile @ -icc_profile FILE

This should work for JPEG images.

- Phil
Title: Re: delete all except colorprofile
Post by: Phil Harvey on September 17, 2010, 01:33:26 PM
But thinking about this a bit more, both commands should have the same effect since the ICC profile is stored in a separate JPEG segment (and both commands should remove all other segments).  So perhaps the metadata problem is in the ICC profile itself.  If this is the case, I can not help.  Does photoshop complain if you just do -icc_profile=?

- Phil
Title: Re: delete all except colorprofile
Post by: myth5656 on September 20, 2010, 08:47:39 AM
Quote from: Phil Harvey on September 17, 2010, 01:33:26 PM
So perhaps the metadata problem is in the ICC profile itself.  If this is the case, I can not help.  Does photoshop complain if you just do -icc_profile=?
I checked it again, and you are right. The metadata itself was the problem. thanks for you help!

best wishes,
myth5656