Stripping (or "not preserving") ICC profile

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: XnTriq, helmut, xnview

Spriggana
Posts: 15
Joined: Sun Feb 12, 2012 12:29 am

Stripping (or "not preserving") ICC profile

Post 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?
User avatar
xnview
Author of XnView
Posts: 39325
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

you open the file, and save it?
Pierre.
Spriggana
Posts: 15
Joined: Sun Feb 12, 2012 12:29 am

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

Post 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.
User avatar
xnview
Author of XnView
Posts: 39325
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

'preserve color profile' is checked?
Pierre.
Spriggana
Posts: 15
Joined: Sun Feb 12, 2012 12:29 am

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

Post 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
User avatar
xnview
Author of XnView
Posts: 39325
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

See Issue 352 for current status and details.
Pierre.