summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2014-04-29 15:21:42 +0200
committerMarti Maria <info@littlecms.com>2014-04-29 15:21:42 +0200
commit4da87038b44b446a53dbe56f5fe4dccd6f864666 (patch)
tree0aacec84fdc57c986f4edac325d06d80f0de6951
parent1948a466f43e5ccd4b3e2f47e3e3d337c9400ed9 (diff)
downloadlcms2-4da87038b44b446a53dbe56f5fe4dccd6f864666.tar.gz
Some contributed files
-rw-r--r--AUTHORS1
-rw-r--r--testbed/testcms2.c37
-rwxr-xr-xtestbed/testcms2.h2
-rw-r--r--utils/common/vprf.c6
-rw-r--r--utils/jpgicc/jpgicc.1109
-rw-r--r--utils/linkicc/linkicc.1111
-rw-r--r--utils/psicc/psicc.134
-rw-r--r--utils/tificc/tificc.1111
-rw-r--r--utils/transicc/transicc.166
9 files changed, 302 insertions, 175 deletions
diff --git a/AUTHORS b/AUTHORS
index 7342aad..9c79281 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -34,6 +34,7 @@ Leonhard Gruenschloss (Google)
Patrick Noffke
Christopher James Halse Rogers
John Hein
+Thomas Weber (Debian)
Special Thanks
--------------
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index 64dd396..24bcc83 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -52,9 +52,13 @@ static cmsInt32Number SimultaneousErrors;
#define cmsmin(a, b) (((a) < (b)) ? (a) : (b))
// Die, a fatal unexpected error is detected!
-void Die(const char* Reason)
+void Die(const char* Reason, ...)
{
- printf("\n\nArrrgggg!!: %s!\n\n", Reason);
+ va_list args;
+ va_start(args, Reason);
+ vsprintf(ReasonToFailBuffer, Reason, args);
+ va_end(args);
+ printf("\n%s\n", ReasonToFailBuffer);
fflush(stdout);
exit(1);
}
@@ -768,7 +772,7 @@ cmsInt32Number CheckEndianess(void)
#endif
if (!IsOk) {
- Fail("\nOOOPPSS! You have CMS_USE_BIG_ENDIAN toggle misconfigured!\n\n"
+ Die("\nOOOPPSS! You have CMS_USE_BIG_ENDIAN toggle misconfigured!\n\n"
"Please, edit lcms2.h and %s the CMS_USE_BIG_ENDIAN toggle.\n", BigEndian? "uncomment" : "comment");
return 0;
}
@@ -785,7 +789,7 @@ cmsInt32Number CheckQuickFloor(void)
(_cmsQuickFloor(-1.234) != -2) ||
(_cmsQuickFloor(-32767.1) != -32768)) {
- Fail("\nOOOPPSS! _cmsQuickFloor() does not work as expected in your machine!\n\n"
+ Die("\nOOOPPSS! _cmsQuickFloor() does not work as expected in your machine!\n\n"
"Please, edit lcms2.h and uncomment the CMS_DONT_USE_FAST_FLOOR toggle.\n");
return 0;
@@ -804,7 +808,7 @@ cmsInt32Number CheckQuickFloorWord(void)
if (_cmsQuickFloorWord((cmsFloat64Number) i + 0.1234) != i) {
- Fail("\nOOOPPSS! _cmsQuickFloorWord() does not work as expected in your machine!\n\n"
+ Die("\nOOOPPSS! _cmsQuickFloorWord() does not work as expected in your machine!\n\n"
"Please, edit lcms2.h and uncomment the CMS_DONT_USE_FAST_FLOOR toggle.\n");
return 0;
}
@@ -6171,17 +6175,17 @@ cmsInt32Number Chack_sRGB_Float(void)
MaxErr = 0;
// Xform 1 goes from 8 bits to XYZ,
- rc = CheckOneRGB_f(xform1, 1, 1, 1, 0.0002926, 0.00030352, 0.00025037, 0.0001);
- rc &= CheckOneRGB_f(xform1, 127, 127, 127, 0.2046329, 0.212230, 0.175069, 0.0001);
- rc &= CheckOneRGB_f(xform1, 12, 13, 15, 0.0038364, 0.0039928, 0.00385212, 0.0001);
- rc &= CheckOneRGB_f(xform1, 128, 0, 0, 0.0940846, 0.0480030, 0.00300543, 0.0001);
- rc &= CheckOneRGB_f(xform1, 190, 25, 210, 0.3203491, 0.1605240, 0.46817115, 0.0001);
+ rc = CheckOneRGB_f(xform1, 1, 1, 1, 0.0002927, 0.0003035, 0.000250, 0.0001);
+ rc &= CheckOneRGB_f(xform1, 127, 127, 127, 0.2046329, 0.212230, 0.175069, 0.0001);
+ rc &= CheckOneRGB_f(xform1, 12, 13, 15, 0.0038364, 0.0039928, 0.003853, 0.0001);
+ rc &= CheckOneRGB_f(xform1, 128, 0, 0, 0.0941240, 0.0480256, 0.003005, 0.0001);
+ rc &= CheckOneRGB_f(xform1, 190, 25, 210, 0.3204592, 0.1605926, 0.468213, 0.0001);
// Xform 2 goes from 8 bits to Lab, we allow 0.01 error max
- rc &= CheckOneRGB_f(xform2, 1, 1, 1, 0.2741748, 0, 0, 0.01);
- rc &= CheckOneRGB_f(xform2, 127, 127, 127, 53.192776, 0, 0, 0.01);
- rc &= CheckOneRGB_f(xform2, 190, 25, 210, 47.043171, 74.564576, -56.89373, 0.01);
- rc &= CheckOneRGB_f(xform2, 128, 0, 0, 26.158100, 48.474477, 39.425916, 0.01);
+ rc &= CheckOneRGB_f(xform2, 1, 1, 1, 0.2741748, 0, 0, 0.01);
+ rc &= CheckOneRGB_f(xform2, 127, 127, 127, 53.192776, 0, 0, 0.01);
+ rc &= CheckOneRGB_f(xform2, 190, 25, 210, 47.052136, 74.565610, -56.883274, 0.01);
+ rc &= CheckOneRGB_f(xform2, 128, 0, 0, 26.164701, 48.478171, 39.4384713, 0.01);
cmsDeleteTransform(xform1);
cmsDeleteTransform(xform2);
@@ -8123,7 +8127,6 @@ void PrintSupportedIntents(void)
// ---------------------------------------------------------------------------------------
-
#ifdef LCMS_FAST_EXTENSIONS
void* cmsFast8Bitextensions(void);
#endif
@@ -8359,7 +8362,7 @@ int main(int argc, char* argv[])
if (DoPluginTests)
{
-#ifndef CMS_CONTEXT_IN_LEGACY_MODE
+
Check("Context memory handling", CheckAllocContext);
Check("Simple context functionality", CheckSimpleContext);
Check("Alarm codes context", CheckAlarmColorsContext);
@@ -8374,7 +8377,7 @@ int main(int argc, char* argv[])
Check("Rendering intent plugin", CheckIntentPlugin);
Check("Full transform plugin", CheckTransformPlugin);
Check("Mutex plugin", CheckMutexPlugin);
-#endif
+
}
diff --git a/testbed/testcms2.h b/testbed/testcms2.h
index a1a69fe..fd079e8 100755
--- a/testbed/testcms2.h
+++ b/testbed/testcms2.h
@@ -51,7 +51,7 @@ void* PluginMemHandler(void);
cmsContext WatchDogContext(void* usr);
void ResetFatalError(void);
-void Die(const char* Reason);
+void Die(const char* Reason, ...);
void Dot(void);
void Fail(const char* frm, ...);
void SubTest(const char* frm, ...);
diff --git a/utils/common/vprf.c b/utils/common/vprf.c
index cec81b8..bec26f6 100644
--- a/utils/common/vprf.c
+++ b/utils/common/vprf.c
@@ -156,7 +156,7 @@ void PrintInfo(cmsHPROFILE h, cmsInfoType Info)
len = cmsGetProfileInfoASCII(h, Info, "en", "US", NULL, 0);
if (len == 0) return;
- text = malloc(len * sizeof(char));
+ text = (char*) malloc(len * sizeof(char));
if (text == NULL) return;
cmsGetProfileInfoASCII(h, Info, "en", "US", text, len);
@@ -180,7 +180,7 @@ void PrintColorantTable(cmsHPROFILE hInput, cmsTagSignature Sig, const char* Tit
printf("%s:\n", Title);
- list = cmsReadTag(hInput, Sig);
+ list = (cmsNAMEDCOLORLIST*) cmsReadTag(hInput, Sig);
if (list == NULL) {
printf("(Unavailable)\n");
return;
@@ -329,5 +329,3 @@ int ChanCountFromPixelType(int ColorChannels)
return -1;
}
}
-
-
diff --git a/utils/jpgicc/jpgicc.1 b/utils/jpgicc/jpgicc.1
index 19a3669..44795a3 100644
--- a/utils/jpgicc/jpgicc.1
+++ b/utils/jpgicc/jpgicc.1
@@ -1,79 +1,122 @@
.\"Shiju P. Nair September 30, 2004
-.TH JPEGICC 1 "September 30, 2004"
+.\"Thomas Weber <tweber@debian.org> April 23, 2014
+.TH JPGICC 1 "September 30, 2004"
.SH NAME
-jpegicc - little cms ICC profile applier for JPEG.
+jpgicc - little cms ICC profile applier for JPEG.
.SH SYNOPSIS
-.B jpegicc
+.B jpgicc
.RI [ options ] " input.jpg output.jpg"
.SH DESCRIPTION
lcms is a standalone CMM engine, which deals with the color management.
It implements a fast transformation between ICC profiles.
-.B jpegicc
-is little cms ICC profile applier for JPEG.
+.B jpgicc
+is a little cms ICC profile applier for JPEG.
.SH OPTIONS
.TP
-.B \-b
+.B \-b
Black point compensation.
-.TP
-.B \-c <0,1,2,3>
-Precalculates transform. (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1]
+.TP
+.BI \-c\ NUM
+Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1].
+.TP
+.BI \-d\ NUM
+Observer adaptation state (abs.col. only), (0..1.0, float value) [defaults to 0.0].
+.TP
+.B \-e
+Embed destination profile.
.TP
.B \-g
Marks out-of-gamut colors on softproof.
.TP
-.B \-h <0,1,2>
-Show summary of options and examples.
+.BI \-h\ NUM
+Show summary of options and examples (0=help, 1=Examples, 2=Built-in profiles, 3=Contact information)
.TP
.BI \-i\ profile
Input profile (defaults to sRGB).
.TP
-.B \-m <0,1,2,3>
-SoftProof intent.
+.BI \-l\ link
+TODO: explain this option.
+.TP
+.BI \-m\ NUM
+SoftProof intent (0,1,2,3) [defaults to 0].
.TP
.B \-n
Ignore embedded profile.
.TP
-.BI \-p\ profile
-Soft proof profile
-.TP
.BI \-o\ profile
-.p
Output profile (defaults to sRGB).
.TP
-.B \-q <0..100>
-Output JPEG quality.
+.BI \-p\ profile
+Soft proof profile.
+.TP
+.BI \-q\ NUM
+Output JPEG quality, (0..100) [defaults to 75].
.TP
-.B \-t <0,1,2,3>
-Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute).
+.BI \-s\ newprofile
+Save embedded profile as \fInewprofile\fR.
+.TP
+.BI \-t\ NUM
+Rendering intent
+.nf
+.RS
+0=Perceptual [default]
+1=Relative colorimetric
+2=Saturation
+3=Absolute colorimetric
+10=Perceptual preserving black ink
+11=Relative colorimetric preserving black ink
+12=Saturation preserving black ink
+13=Perceptual preserving black plane
+14=Relative colorimetric preserving black plane
+15=Saturation preserving black plane
+.RE
+.fi
.TP
.B \-v
Verbose.
+.TP
+.BI \-!\ NUM,NUM,NUM
+Out-of-gamut marker channel values (r,g,b) [defaults: 128,128,128].
+.SH BUILT-IN PROFILES
+.nf
+ *Lab2 -- D50-based v2 CIEL*a*b
+ *Lab4 -- D50-based v4 CIEL*a*b
+ *Lab -- D50-based v4 CIEL*a*b
+ *XYZ -- CIE XYZ (PCS)
+ *sRGB -- sRGB color space
+ *Gray22 - Monochrome of Gamma 2.2
+ *Gray30 - Monochrome of Gamma 3.0
+ *null - Monochrome black for all input
+ *Lin2222- CMYK linearization of gamma 2.2 on each channel
+.fi
.SH EXAMPLES
.nf
To color correct from scanner to sRGB:
- jpegicc -iscanner.icm in.jpg out.jpg
-
+ jpgicc -iscanner.icm in.jpg out.jpg
+
To convert from monitor1 to monitor2:
- jpegicc -imon1.icm -omon2.icm in.jpg out.jpg
+ jpgicc -imon1.icm -omon2.icm in.jpg out.jpg
To make a CMYK separation:
- jpegicc -oprinter.icm inrgb.jpg outcmyk.jpg
+ jpgicc -oprinter.icm inrgb.jpg outcmyk.jpg
To recover sRGB from a CMYK separation:
- jpegicc -iprinter.icm incmyk.jpg outrgb.jpg
+ jpgicc -iprinter.icm incmyk.jpg outrgb.jpg
+
+To convert from CIELab ITU/Fax JPEG to sRGB
+ jpgicc -iitufax.icm in.jpg out.jpg
To convert from CIELab ITU/Fax JPEG to sRGB
- jpegicc -iitufax.icm in.jpg out.jpg
-.fi
+ jpgicc in.jpg out.jpg
+.fi
.SH NOTES
For suggestions, comments, bug reports etc. send mail to
info@littlecms.com.
.SH SEE ALSO
-.BR tifficc (1),
-.BR icc2ps (1),
-.BR icclink (1),
-.BR icctrans (1),
-.BR wtpt (1)
+.BR linkicc (1),
+.BR psicc (1),
+.BR tificc (1),
+.BR transicc (1)
.SH AUTHOR
This manual page was written by Shiju p. Nair <shiju.p@gmail.com>,
for the Debian project.
diff --git a/utils/linkicc/linkicc.1 b/utils/linkicc/linkicc.1
index 7d78db2..56f73bb 100644
--- a/utils/linkicc/linkicc.1
+++ b/utils/linkicc/linkicc.1
@@ -1,90 +1,123 @@
.\"Shiju P. Nair September 30, 2004
-.TH ICCLINK 1 "September 30, 2004"
+.\"Thomas Weber <tweber@debian.org> April 23, 2014
+.TH LINKICC 1 "September 30, 2004"
.SH NAME
-icclink - little cms device link generator.
+linkicc - little cms device link generator.
.SH SYNOPSIS
-.B icclink
-.RI [ options ] " <profiles>"
+.B linkicc
+.RI [ options ] " profiles"
.SH DESCRIPTION
lcms is a standalone CMM engine, which deals with the color management.
It implements a fast transformation between ICC profiles.
-.B icclink
-is little cms device link generator.
+.B linkicc
+is a little cms device link generator.
.P
Links two or more profiles into a single devicelink profile.
Colorspaces must be paired except Lab/XYZ, that can be interchanged.
.SH OPTIONS
.TP
-.B \-8
-Creates 8-bit devicelink.
+.BR \-a\ NUM
+Observer adaptation state (abs.col. only), (0..1.0, float value) [defaults to 1.0].
.TP
-.B \-b
+.B \-b
Black point compensation.
.TP
-.B \-c <0,1,2,3>
-Precision (0=LowRes, 1=Normal, 2=Hi-res). [defaults to 1]
+.BI \-c\ precision
+Precision (0=LowRes, 1=Normal, 2=Hi-res) [defaults to 1].
.TP
.BI \-d\ description
Description text (quotes can be used).
.TP
-.B \-h <0,1,2,3>
-Show summary of options and examples.
+.BI \-h\ NUM
+Show summary of options and examples (0=help, 1=Built-in profiles, 2=Examples, 3=Contact information)
+.TP
+.BI \-k\ inklimit
+Ink-limiting in % (CMYK only), (0..400.0, float value) [default 400.0].
.TP
-.BI \-i\ profile
-Input profile (defaults to sRGB).
+.B \-l
+Use linearization curves (may affect accuracy).
.TP
-.B -k <0..400>
-Ink-limiting in % (CMYK only)
+.BI \-n\ gridpoints
+Alternate way to set precision, number of CLUT points.
.TP
.BI \-o\ profile
-Output devicelink profile. [defaults to 'devicelink.icm']
+Output devicelink profile [defaults to 'devicelink.icm'].
+.TP
+.BI \-r\ profileversion
+Profile version. (CAUTION: may change the profile implementation), (2.0..4.3, float value) [defaults to 4.3].
+.TP
+.BI \-t\ NUM
+Rendering intent
+.nf
+.RS
+0=Perceptual [default]
+1=Relative colorimetric
+2=Saturation
+3=Absolute colorimetric
+10=Perceptual preserving black ink
+11=Relative colorimetric preserving black ink
+12=Saturation preserving black ink
+13=Perceptual preserving black plane
+14=Relative colorimetric preserving black plane
+15=Saturation preserving black plane
+.RE
+.fi
.TP
-.B \-t <0,1,2,3>
-Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute).
+.BI \-v\ verbosity
+Verbosity level, (0=None, 1=Normal, 2=High, 3=Very High) [defaults to 0].
.TP
-.B \-x
+.B \-x
Creatively, guess deviceclass of resulting profile.
.TP
+.BI \-y\ copyright
+Copyright notice (quotes can be used) ["No copyright, use freely"].
+.TP
+.B \-8
+Creates 8-bit devicelink.
+.SH BUILT-IN PROFILES
.nf
-Built-in profiles:
- *Lab -- D50-based CIEL*a*b (PCS)
- *XYZ -- CIE XYZ (PCS)
- *sRGB -- sRGB color space
- *Gray22- Monochrome of Gamma 2.2
+ *Lab2 -- D50-based v2 CIEL*a*b
+ *Lab4 -- D50-based v4 CIEL*a*b
+ *Lab -- D50-based v4 CIEL*a*b
+ *XYZ -- CIE XYZ (PCS)
+ *sRGB -- sRGB color space
+ *Gray22 - Monochrome of Gamma 2.2
+ *Gray30 - Monochrome of Gamma 3.0
+ *null - Monochrome black for all input
*Lin2222- CMYK linearization of gamma 2.2 on each channel
-.fi
+.fi
.SH EXAMPLES
.nf
To create 'devicelink.icm' from a.icc to b.icc:
- icclink a.icc b.icc
+ linkicc a.icc b.icc
To create 'out.icc' from sRGB to cmyk.icc:
- icclink -o out.icc *sRGB cmyk.icc
+ linkicc -o out.icc *sRGB cmyk.icc
To create a sRGB input profile working in Lab:
- icclink -x -o sRGBLab.icc *sRGB *Lab
+ linkicc -x -o sRGBLab.icc *sRGB *Lab
To create a XYZ -> sRGB output profile:
- icclink -x -o sRGBLab.icc *XYZ *sRGB
+ linkicc -x -o sRGBLab.icc *XYZ *sRGB
To create a abstract profile doing softproof for cmyk.icc:
- icclink -t1 -x -o softproof.icc *Lab cmyk.icc cmyk.icc *Lab
+ linkicc -t1 -x -o softproof.icc *Lab cmyk.icc cmyk.icc *Lab
To create a 'grayer' sRGB input profile:
- icclink -x -o grayer.icc *sRGB gray.icc gray.icc *Lab
+ linkicc -x -o grayer.icc *sRGB gray.icc gray.icc *Lab
To embed ink limiting into a cmyk output profile:
- icclink -x -o cmyklimited.icc -k 250 cmyk.icc *Lab
+ linkicc -x -o cmyklimited.icc -k 250 cmyk.icc *Lab
+
.fi
.SH NOTES
For suggestions, comments, bug reports etc. send mail to
info@littlecms.com.
.SH SEE ALSO
-.BR jpegicc (1),
-.BR tifficc (1),
-.BR icc2ps (1),
-.BR icctrans (1),
-.BR wtpt (1)
+.BR jpgicc (1),
+.BR psicc (1),
+.BR tificc (1),
+.BR transicc (1)
.SH AUTHOR
This manual page was written by Shiju p. Nair <shiju.p@gmail.com>,
for the Debian project.
diff --git a/utils/psicc/psicc.1 b/utils/psicc/psicc.1
index 9296553..19868b5 100644
--- a/utils/psicc/psicc.1
+++ b/utils/psicc/psicc.1
@@ -1,41 +1,47 @@
.\"Shiju P. Nair September 30, 2004
-.TH ICC2PS 1 "September 30, 2004"
+.\"Thomas Weber <tweber@debian.org> April 23, 2014
+.TH PSICC 1 "September 30, 2004"
.SH NAME
-icc2ps - little cms PostScript converter.
+psicc - little cms PostScript converter.
.SH SYNOPSIS
-.B icc2ps
+.B psicc
.RI [ options ]
.SH DESCRIPTION
lcms is a standalone CMM engine, which deals with the color management.
It implements a fast transformation between ICC profiles.
-.B icc2ps
-is little cms PostScript converter.
+.B psicc
+is a little cms PostScript converter.
.SH OPTIONS
.TP
-.B \-b
+.B \-b
Black point compensation (CRD only).
.TP
+.BI \-c\ precision
+Precision (0=LowRes, 1=Normal, 2=Hi-res) (CRD only) [defaults to 1].
+.TP
.BI \-i\ profile
Input profile: Generates Color Space Array (CSA).
.TP
+.BI \-n\ gridpoints
+Alternate way to set precision, number of CLUT points (CRD only).
+.TP
.BI \-o\ profile
.p
Output profile: Generates Color Rendering Dictionary(CRD).
.TP
-.B \-t <0,1,2,3>
-Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute).
+.BI \-t\ intent
+Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute) [defaults to 0].
.TP
-.B \-u
+.B \-u
Do NOT generate resource name on CRD.
.SH NOTES
For suggestions, comments, bug reports etc. send mail to
info@littlecms.com.
.SH SEE ALSO
-.BR jpegicc (1),
-.BR tifficc (1),
-.BR icclink (1),
-.BR icctrans (1),
-.BR wtpt (1)
+.BR jpgicc (1),
+.BR linkicc (1),
+.BR tificc (1),
+.BR transicc (1)
.SH AUTHOR
This manual page was written by Shiju p. Nair <shiju.p@gmail.com>,
for the Debian project.
diff --git a/utils/tificc/tificc.1 b/utils/tificc/tificc.1
index d03c1df..9af0d86 100644
--- a/utils/tificc/tificc.1
+++ b/utils/tificc/tificc.1
@@ -1,25 +1,29 @@
.\"Shiju P. Nair September 30, 2004
-.TH TIFFICC 1 "October 23, 2004"
-.SH NAME
-tifficc - little cms ICC profile applier for TIFF.
+.\"Thomas Weber <tweber@debian.org> April 23, 2014
+.TH TIFICC 1 "October 23, 2004"
+.SH NAME
+tificc - little cms ICC profile applier for TIFF.
.SH SYNOPSIS
-.B tifficc
+.B tificc
.RI [ options ] " input.tif output.tif"
.SH DESCRIPTION
lcms is a standalone CMM engine, which deals with the color management.
It implements a fast transformation between ICC profiles.
-.B tifficc
-is little cms ICC profile applier for TIFF.
+.B tificc
+is a little cms ICC profile applier for TIFF.
.SH OPTIONS
.TP
.B \-a
Handle channels > 4 as alpha.
.TP
-.B \-b
+.B \-b
Black point compensation.
.TP
-.B \-c <0,1,2,3>
-Precalculates transform. (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1]
+.BI \-c\ NUM
+Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1].
+.TP
+.BI \-d\ NUM
+Observer adaptation state (abs.col. only), (0..1.0, float value) [defaults to 0.0].
.TP
.B \-e
Embed destination profile.
@@ -27,74 +31,87 @@ Embed destination profile.
.B \-g
Marks out-of-gamut colors on softproof.
.TP
-.B \-h <0,1,2>
-Show summary of options and examples.
+.BI \-h\ NUM
+Show summary of options and examples (0=help, 1=Examples, 2=Built-in profiles, 3=Contact information)
.TP
.BI \-i\ profile
Input profile (defaults to sRGB).
.TP
-.B -k <0..400>
-Ink-limiting in % (CMYK only).
+.BI \-k\ inklimit
+Ink-limiting in % (CMYK only), (0..400.0, float value) [default 400.0].
.TP
.BI \-l\ profile
Transform by device-link profile.
.TP
-.B \-m <0,1,2,3>
-SoftProof intent.
+.B \-m TODO: check if values outside 0..3 are possible
+SoftProof intent [defaults to 0].
.TP
.B \-n
Ignore embedded profile on input.
.TP
-.BI \-p\ profile
-Soft proof profile.
-.TP
.BI \-o\ profile
-.p
Output profile (defaults to sRGB).
.TP
-.BI \-s\ profile
-Save embedded profile as <new profile>
+.BI \-p\ profile
+Soft proof profile.
+.TP
+.BI \-s\ newprofile
+Save embedded profile as \fInewprofile\fR.
.TP
-.B \-t <0,1,2,3>
-Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute).
+.BI \-t\ NUM
+Rendering intent
+.nf
+.RS
+0=Perceptual [default]
+1=Relative colorimetric
+2=Saturation
+3=Absolute colorimetric
+10=Perceptual preserving black ink
+11=Relative colorimetric preserving black ink
+12=Saturation preserving black ink
+13=Perceptual preserving black plane
+14=Relative colorimetric preserving black plane
+15=Saturation preserving black plane
+.RE
+.fi
.TP
.B \-v
Verbose.
.TP
-.B \-w
-Wide output (generates 16 bps tiff).
-.TP
-You can also use following builtins
-*Lab - CIE Lab D50 based
-*XYZ - XYZ
-*adobe1998RBB - AdobeRGB
-*colormatchrgb - ColorMatch RGB
-*applergb - Apple RGB
+.BI \-w\ NUM
+Output depth (8, 16 or 32). Use 32 for floating-point.
+.SH BUILT-IN PROFILES
+.nf
+ *Lab2 -- D50-based v2 CIEL*a*b
+ *Lab4 -- D50-based v4 CIEL*a*b
+ *Lab -- D50-based v4 CIEL*a*b
+ *XYZ -- CIE XYZ (PCS)
+ *sRGB -- sRGB color space
+ *Gray22 - Monochrome of Gamma 2.2
+ *Gray30 - Monochrome of Gamma 3.0
+ *null - Monochrome black for all input
+ *Lin2222- CMYK linearization of gamma 2.2 on each channel
+.fi
.SH EXAMPLES
.nf
To color correct from scanner to sRGB:
- tifficc -iscanner.icm in.tif out.tif
-
+ tificc -iscanner.icm in.tif out.tif
To convert from monitor1 to monitor2:
- tifficc -imon1.icm -omon2.icm in.tif out.tif
-
+ tificc -imon1.icm -omon2.icm in.tif out.tif
To make a CMYK separation:
- tifficc -oprinter.icm inrgb.tif outcmyk.tif
-
+ tificc -oprinter.icm inrgb.tif outcmyk.tif
To recover sRGB from a CMYK separation:
- tifficc -iprinter.icm incmyk.tif outrgb.tif
-
+ tificc -iprinter.icm incmyk.tif outrgb.tif
To convert from CIELab TIFF to sRGB
- tifficc -iTiffLab8Spac.icm in.tif out.tif
-.fi
+ tificc -i*Lab in.tif out.tif
+.fi
.SH NOTES
For suggestions, comments, bug reports etc. send mail to info@littlecms.com.
.SH SEE ALSO
-.BR jpegicc (1),
-.BR icc2ps (1),
-.BR icclink (1),
-.BR icctrans (1),
-.BR wtpt (1)
+.BR jpgicc (1),
+.BR linkicc (1),
+.BR psicc (1),
+.BR transicc (1)
.SH AUTHOR
This manual page was originally written by Shiju p. Nair <shiju.p@gmail.com>,
for the Debian project. Modified by Marti Maria to reflect further changes.
diff --git a/utils/transicc/transicc.1 b/utils/transicc/transicc.1
index eb52ac9..4a34c79 100644
--- a/utils/transicc/transicc.1
+++ b/utils/transicc/transicc.1
@@ -1,25 +1,32 @@
.\"Shiju P. Nair September 30, 2004
+.\"Thomas Weber <tweber@debian.org> April 23, 2014
.TH TRANSICC 1 "MAY 30, 2011"
.SH NAME
-icctrans - little cms ColorSpace conversion calculator.
+transicc - little cms ColorSpace conversion calculator.
.SH SYNOPSIS
-.B icctrans
-.RI [ options ]
+.B transicc
+.RI [ options ]\ [ CGATSINPUT ]\ [ CGATSOUTPUT ]
.SH DESCRIPTION
lcms is a standalone CMM engine, which deals with the color management.
It implements a fast transformation between ICC profiles.
-.B icctrans
-is lcms ColorSpace conversion calculator.
+.B transicc
+is a lcms ColorSpace conversion calculator.
.SH OPTIONS
.TP
-.B \-%
-use percent % of ink.
-.TP
-.B \-b
+.B \-b
Black point compensation.
.TP
-.B \-c <0,1,2,3>
-Precalculates transform. (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1]
+.BI \-c\ NUM
+Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1].
+.TP
+.BI \-d\ NUM
+Observer adaptation state (abs.col. only), (0..1.0, float value) [defaults to 0.0].
+.TP
+.B \-e
+Encoded representation of numbers is not float (Option \fB\-w\fR=use 16 bits, Option \fB\-x\fR=hexadecimal).
+.TP
+.B \-g
+Marks out-of-gamut colors on softproof.
.TP
.BI \-i\ profile
Input profile (defaults to sRGB).
@@ -27,6 +34,9 @@ Input profile (defaults to sRGB).
.B \-l
Transform by device-link profile.
.TP
+.BI \-m\ NUM
+SoftProof intent (0,1,2,3) [defaults to 0].
+.TP
.B \-n
Terse output, intended for pipe usage.
.TP
@@ -34,11 +44,28 @@ Terse output, intended for pipe usage.
.p
Output profile (defaults to sRGB).
.TP
-.B \-t <0,1,2,3>
-Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute).
+.B \-q
+Quantize CGATS to 8 bits.
+.TP
+.BI \-t\ NUM
+Rendering intent
+.nf
+.RS
+0=Perceptual [default]
+1=Relative colorimetric
+2=Saturation
+3=Absolute colorimetric
+10=Perceptual preserving black ink
+11=Relative colorimetric preserving black ink
+12=Saturation preserving black ink
+13=Perceptual preserving black plane
+14=Relative colorimetric preserving black plane
+15=Saturation preserving black plane
+.RE
+.fi
.TP
-.B \-v
-Verbose.
+.BI \-v\ verbosity
+Verbosity level, (0=None, 1=Normal, 2=High, 3=Very High) [defaults to 1].
.TP
.B \-w
Use 16 bits.
@@ -51,11 +78,10 @@ You can use '*Lab' and '*xyz' as built-in profiles.
For suggestions, comments, bug reports etc. send mail to
info@littlecms.com.
.SH SEE ALSO
-.BR jpegicc (1),
-.BR tifficc (1),
-.BR icc2ps (1),
-.BR icclink (1),
-.BR wtpt (1)
+.BR jpgicc (1),
+.BR linkicc (1),
+.BR psicc (1),
+.BR tificc (1)
.SH AUTHOR
This manual page was written by Shiju p. Nair <shiju.p@gmail.com>,
for the Debian project.