| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>icclu</title> |
| 5 | <meta http-equiv="content-type" content="text/html; |
| 6 | charset=windows-1252"> |
| 7 | <meta name="author" content="Graeme Gill"> |
| 8 | </head> |
| 9 | <body> |
| 10 | <h2><b>icclib/icclu</b></h2> |
| 11 | <h3>Summary</h3> |
| 12 | Lookup individual color values through any ICC profile table, either |
| 13 | interactively, or as a batch.<br> |
| 14 | <h3>Usage summary<br> |
| 15 | </h3> |
| 16 | <small><span style="font-family: monospace;">icclu [-v level] [-f |
| 17 | func] [-i intent] [-o order] profile</span><br |
| 18 | style="font-family: monospace;"> |
| 19 | <span style="font-family: monospace;"> -v level |
| 20 | Verbosity level 0 - 2 (default = 1)</span><br |
| 21 | style="font-family: monospace;"> |
| 22 | <span style="font-family: monospace;"> -f </span><i |
| 23 | style="font-family: monospace;">function</i><span |
| 24 | style="font-family: monospace;"> f = forward, b = |
| 25 | backwards, g = gamut, p = preview</span><br style="font-family: |
| 26 | monospace;"> |
| 27 | <span style="font-family: monospace;"> -i </span><i |
| 28 | style="font-family: monospace;">intent</i><span |
| 29 | style="font-family: monospace;"> p = |
| 30 | perceptual, r = relative colorimetric,</span><br |
| 31 | style="font-family: monospace;"> |
| 32 | <span style="font-family: monospace;"> |
| 33 | s |
| 34 | |
| 35 | |
| 36 | |
| 37 | = saturation, a = absolute</span><br style="font-family: |
| 38 | monospace;"> |
| 39 | <span style="font-family: monospace;"> -p </span><i |
| 40 | style="font-family: monospace;">oride</i><span |
| 41 | style="font-family: monospace;"> x |
| 42 | = XYZ_PCS, l = Lab_PCS, y = Yxy,</span><br style="font-family: |
| 43 | monospace;"> |
| 44 | |
| 45 | |
| 46 | |
| 47 | <span style="font-family: monospace;"> -o </span><i |
| 48 | style="font-family: monospace;">order</i><span |
| 49 | style="font-family: monospace;"> n |
| 50 | = normal (priority: lut > matrix > monochrome)</span><br |
| 51 | style="font-family: monospace;"> |
| 52 | <span style="font-family: monospace;"> |
| 53 | r |
| 54 | |
| 55 | |
| 56 | |
| 57 | = reverse (priority: monochrome > matrix > lut)</span><br |
| 58 | style="font-family: monospace;"> |
| 59 | |
| 60 | <span style="font-family: monospace;"> -s</span><span |
| 61 | style="font-style: italic; font-family: monospace;"> scale</span><span |
| 62 | style="font-family: monospace;"> |
| 63 | Scale device range 0.0 - scale rather than 0.0 - 1.0<br> |
| 64 | -T |
| 65 | |
| 66 | |
| 67 | Trace each step of conversions<br> |
| 68 | </span></small> <br> |
| 69 | The colors to be translated should be fed into standard input,<br> |
| 70 | one input color per line, white space separated.<br> |
| 71 | A line starting with a # will be ignored.<br> |
| 72 | A line not starting with a number will terminate the program.<br> |
| 73 | <h3></h3> |
| 74 | <h3>Flags and Parameters</h3> |
| 75 | The <b>-v</b> parameter sets the level of verbosity. Default is |
| 76 | level 1, which repeats each input value, the colorspaces of input |
| 77 | and output, the type of conversion algorithm used, and if the result |
| 78 | was clipped. Level 2 adds prints extra information about the profile |
| 79 | before doing the conversions. Level 0 turns off all verbosity, just |
| 80 | outputting the results of each conversion. Use the latter to capture |
| 81 | batch output ready for further processing.<br> |
| 82 | <br> |
| 83 | The <b>-f</b> flag selects which type of table or conversion is to |
| 84 | be used.<br> |
| 85 | <br> |
| 86 | The <b>-i</b> flag selects the intent for a lut based profile.<br> |
| 87 | <br> |
| 88 | Normally the native PCS (Profile Connection Space) of a device or |
| 89 | abstract profile is used, but the <b>-p</b> flag<br> |
| 90 | allows this to be overridden, and XYZ, L*a*b* or Yxy space to be |
| 91 | used.<br> |
| 92 | <br> |
| 93 | A profile is allowed to contain more than the minimum number of |
| 94 | elements or table needed to<br> |
| 95 | describe a certain transform, and may contain redundant |
| 96 | descriptions. By default, lut based<br> |
| 97 | table information will be used first if present, followed by |
| 98 | matrix/shaper information, and<br> |
| 99 | only using monochrome information if it is all that is present. <b>-o |
| 100 | |
| 101 | |
| 102 | |
| 103 | r</b> reverses this order. <br> |
| 104 | <br> |
| 105 | Usually device values are processed and displayed using a normalized |
| 106 | value range between 0.0 and 1.0<br> |
| 107 | Sometimes other systems scale them to some other range (such as 100 |
| 108 | or 255) due to an underlying<br> |
| 109 | binary representation. The <span style="font-weight: bold;">-s</span> |
| 110 | flag lets you input and display such data in its normal range. For |
| 111 | instance,<br> |
| 112 | if your device values have a range between 0 and 255, use <span |
| 113 | style="font-weight: bold;">-s 255.<br> |
| 114 | <br> |
| 115 | </span>The <b>-T</b> flag shows a detailed trace of the internal |
| 116 | color conversions for each color.<span style="font-weight: bold;"><br> |
| 117 | </span> |
| 118 | <h3>Usage Details and Discussion</h3> |
| 119 | Typical usage for an output profile might be:<br> |
| 120 | <br> |
| 121 | icclu -ff -ip profile.icm<br> |
| 122 | <br> |
| 123 | Normally the program is interactive, allowing the user to type in |
| 124 | input color values, each number separated by a space, and the |
| 125 | resulting output color being looked up and displayed after pressing |
| 126 | return. To batch process a group of color values, prepare a text |
| 127 | file containing each input value on a separate line, and use the |
| 128 | input indirection facilities of your command line shell to redirect |
| 129 | this input file into the standard input of icclu. The output can be |
| 130 | captured to a file by redirecting standard output to a file. In most |
| 131 | shells this would be done something like this:<br> |
| 132 | <br> |
| 133 | icclu -ff -ip profile.icm < inputvalues.txt |
| 134 | > outputvalues.txt<br> |
| 135 | <br> |
| 136 | <br> |
| 137 | <br> |
| 138 | <br> |
| 139 | <br> |
| 140 | </body> |
| 141 | </html> |