• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Photoshop Gamut warning vs ColorThink
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Photoshop Gamut warning vs ColorThink


  • Subject: Re: Photoshop Gamut warning vs ColorThink
  • From: "dpascale" <email@hidden>
  • Date: Sun, 24 Feb 2008 15:58:32 -0500

Klauss,

Found the solution to using AWK on Windows, so that I can filter the xicclu response from Argyll.
Using command lines scripts with AWK and quotes will often not work on Windows. The solution is to place the script command in a separate file, loaded with the -f AWK option.


Getting back to your example of obtaining only the colors which exceed 5 DeltaE:

The Mac way (on a single line):

xicclu -fif -ia -l330 -a /your/profile.icc < /your/colors.txt | awk
'{if($5=="deltaE") {sub(/]/,"",$6); if((0.0+$6) > 5.0) print last ": "
$0 "]"; else next} else last=$0}' > output.txt


The Windows way (on a single line):

xicclu -fif -ia -l330 -a /your/profile.icc < /your/colors.txt | awk95 -f awkfile.txt > output.txt

Parameters definition:

/your/profile.icc
is the path of the ICC profile you want to test against
you can use
profile.icc
if the profile is in the same folder as xicclu

/your/colors.txt
is the path of the color list you want to test
you can use
colors.txt
if the file is in the same folder as xicclu

awkfile.txt
This is a text file with the following content (note that there is NO single quote at the beginning and end, and no return):
(I placed the awkfile in the same folder as xicclu)


{if($5=="deltaE") {sub(/]/,"",$6); if((0.0+$6) > 5.0) print last ": " $0 "]"; else next} else last=$0}

To download  awk-95 for Windows (for those interested):
http://cm.bell-labs.com/cm/cs/who/bwk/awk95.exe

AWK-over!

Danny Pascale
email@hidden


----- Original Message ----- From: "Klaus Karcher" <email@hidden>
To: "colorsync-users" <email@hidden>
Sent: Sunday, February 24, 2008 3:33 PM
Subject: Re: Photoshop Gamut warning vs ColorThink



dpascale wrote:
I hope no animals were harmed while developing this formula!

ROFL!

I dowloaded three versions of AWK interpreters for Windows, but none wants to work so far with the example your provide.

well ... that's awk(ward) :~[

I will post the solution if I find it (Anybody familiar with AWK on Windows?).

wrong list. See <groups.google.com/group/comp.lang.awk/>

Klaus


_______________________________________________ Do not post admin requests to the list. They will be ignored. Colorsync-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Colorsync-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Photoshop Gamut warning vs ColorThink (From: email@hidden)
 >Re: Photoshop Gamut warning vs ColorThink (From: "dpascale" <email@hidden>)
 >Re: Photoshop Gamut warning vs ColorThink (From: Graeme Gill <email@hidden>)
 >Re: Photoshop Gamut warning vs ColorThink (From: "dpascale" <email@hidden>)
 >Re: Photoshop Gamut warning vs ColorThink (From: Klaus Karcher <email@hidden>)
 >Re: Photoshop Gamut warning vs ColorThink (From: "dpascale" <email@hidden>)
 >Re: Photoshop Gamut warning vs ColorThink (From: Klaus Karcher <email@hidden>)

  • Prev by Date: Re: Photoshop Gamut warning vs ColorThink
  • Next by Date: Re: Photoshop Gamut warning vs ColorThink
  • Previous by thread: Re: Photoshop Gamut warning vs ColorThink
  • Next by thread: Re: Photoshop Gamut warning vs ColorThink
  • Index(es):
    • Date
    • Thread