summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-22 15:49:39 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-22 15:49:39 +0200
commit615ab5513e79c4abc5bbe5c993587785b6a1738b (patch)
tree8630776536cec5ff775293fca49316f1c907d144 /target
parent3db384424bd7398ffbb7a355cab8f15f3add009f (diff)
New upstream version 1.9.2+repackupstream/1.9.2+repack
Diffstat (limited to 'target')
-rw-r--r--target/targen.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/target/targen.c b/target/targen.c
index 74bbe96..96cda6c 100644
--- a/target/targen.c
+++ b/target/targen.c
@@ -725,9 +725,19 @@ double xpow /* Extra device power, default = none */
/* Get details of conversion (Arguments may be NULL if info not needed) */
s->luo->spaces(s->luo, &ins, NULL, &outs, NULL, NULL, NULL, NULL, NULL, NULL);
+//printf("~1 xmask = 0x%x, ins = %s\n",xmask,icm2str(icmColorSpaceSignature, ins));
if (icx_colorant_comb_match_icc(xmask, ins) == 0) {
- s->luo->del(s->luo);
- error("ICC profile doesn't match device!");
+
+ /* Should really see if ICC profile has ColorantTable tag, */
+ /* and match them against targen specs. For now, */
+ /* simply make sure the channel counts match and issue */
+ /* a warning. */
+ if (icx_noofinks(xmask) != icmCSSig2nchan(ins)) {
+ s->luo->del(s->luo);
+ error("ICC profile doesn't match device!");
+ } else {
+ warning("Profile '%s' no. channels match, but colorant types have not been checked",profName);
+ }
}
/* Grab any device calibration curves */