[argyllcms] Re: Kick-start with collink

  • From: Ben Goren <ben@xxxxxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Wed, 16 Jul 2014 07:38:03 -0700

On Jul 16, 2014, at 7:15 AM, Robert@xxxxxxxxxxxxxxxxxx wrote:

> I would very much appreciate it if someone could give me a bit of a hand
> doing a conversion of an image to destination using collink and cctif.

I've had great luck with this short Perl script:

#!/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}\" 

That does perceptual rendering, which is what one generally wants in practice 
outside of proofing scenarios and variations on that theme. But you can, of 
course, change the "-i p" to anything you like.



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Other related posts: