Page 1 of 1

Stripping (or "not preserving") ICC profile

Posted: Mon May 05, 2014 7:10 pm
by Spriggana
Right now there is an optioon in the Output section to preserve (or not) image metadata.
As I recently discovered ICC profile is preserved even when the option in question is disabled.
The image in question must have had profiles fo every printer and monitor ever made or something like that, because after conversion I got an image 90 by 125 pixels taking about 250 kilobytes, which is a bit extreme, if you ask me.
So, is it possible to bundle the profiles under metadata and preserve it or not depending on the metadata option, or add a separate option to deal with them?

Re: Stripping (or "not preserving") ICC profile

Posted: Tue May 06, 2014 8:07 am
by xnview
you open the file, and save it?

Re: Stripping (or "not preserving") ICC profile

Posted: Thu May 08, 2014 4:43 pm
by Spriggana
If I open the file in XnView and then save the ICC profile is removed. But if I convert the file with XnConvert (usually after resize) the profile stays while every other metadata is removed.

Re: Stripping (or "not preserving") ICC profile

Posted: Mon May 12, 2014 7:16 am
by xnview
'preserve color profile' is checked?

Re: Stripping (or "not preserving") ICC profile

Posted: Mon May 12, 2014 7:59 am
by Spriggana
xnview wrote:'preserve color profile' is checked?
No. This is the simplest script I use which should strip all the metadata and profiles and save the file as an jpg with modified filename:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><XnView_script version="1.0" name="jpg">
    <Output folder="" filename="{Filename}_{DstWidth}" case="1" format="JPEG">
        <Options overwrite="1" orgDate="false" keepMeta="false" keepICC="false" keepFolder="false" delOrg="false" multipage="false" allPages="false" openExplorer="false" clearItems="false"/>
        <JPEG quality="95" progressive="true" optimizeHuffman="true" rebuildThumb="true" orgQuality="false" DCTMethod="0" subSampling="0" smoothFactor="0"/>
    </Output>
</XnView_script>
Try to test it on this file: http://blackpublishing.pl/uploads/book/ ... arenka.jpg

Re: Stripping (or "not preserving") ICC profile

Posted: Wed May 14, 2014 1:10 pm
by xnview
See Issue 352 for current status and details.