[argyllcms] Re: Warning: gamut mapping is non monotonic - may be not very smooth

  • From: Ben Goren <ben@xxxxxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Thu, 24 May 2012 08:04:10 -0700

On 2012-05-24, at 7:36 AM, Graeme Gill wrote:

> No problem if you are using a source gamut that is derived from the actual 
> images
> gamut.

Good to know I'm not doing anything too weird.

Would you mind checking me? Below is the script I generally use for profile 
conversion, with variations for different intents.

Thanks,

b&

#!/usr/bin/perl -w

use strict;

my $inprofile = $ARGV[0];
my $outprofile = $ARGV[1];
my $intiff = $ARGV[2];
my $outtiff = $ARGV[3];

my $gam = $intiff; $gam =~ s/\.tif*$/.gam/;
my $linkprofile = $intiff; $linkprofile =~ s/\.tif*$/.icm/;

my $argyllbin = '/Users/ben/Documents/Profiles/argyll/bin/';

`${argyllbin}tiffgamut -v -p j \"${inprofile}\" \"${intiff}\"`;

`${argyllbin}collink -v -q h -G \"${gam}\" -i p \"${inprofile}\" 
\"${outprofile}\" \"${linkprofile}\"`;

`${argyllbin}cctiff -e \"${outprofile}" \"${linkprofile}\" \"${intiff}\" 
\"${outtiff}\"`;

Other related posts: