Page 1 of 1

Please, strip away copyrighted ICC profiles

Posted: Mon May 12, 2014 2:42 am
by taffit
While searching for embedded non-free ICC profiles:

Code: Select all

	find . -regextype posix-extended -iregex '.*\.(jpg|png)' \
		-exec sh -c 'identify -verbose "$0" \
		| grep -i copyright && echo "$0"' {} \;
The following four files showed up:

flash16.png, flash32.png, somelight16.png and somelight32.png, inside skin/classic/noscript from chrome/noscript.jar.

The proposed alternative is to simply remove the embedded non-free and anyway useless ICC profiles:

Code: Select all

	exiftool -icc_profile"-<=" $files
It removes the 3144 B binary ICC profile from each file, making them a lot smaller in the process.

Thanks in advance for considering.

Re: Please, strip away copyrighted ICC profiles

Posted: Mon May 12, 2014 9:16 am
by Giorgio Maone
Done, thanks.

Re: Please, strip away copyrighted ICC profiles

Posted: Mon May 12, 2014 2:37 pm
by boardhead
taffit wrote:While searching for embedded non-free ICC profiles:

Code: Select all

	exiftool -icc_profile"-<=" $files
The correct exiftool command is:

Code: Select all

exiftool -icc_profile= $files
The "-<=" operator is for conditionally deleting a tag if it matches the value in a specified file. I'm not sure why your command even worked with this operator.

- Phil

Re: Please, strip away copyrighted ICC profiles

Posted: Mon May 12, 2014 2:56 pm
by Giorgio Maone
boardhead wrote: The "-<=" operator is for conditionally deleting a tag if it matches the value in a specified file. I'm not sure why your command even worked with this operator.
It apparently worked for me, i.e. it stipped about 3KB away from those files while keeping them usable (I didn't check what data went away exactly, though).