xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helder Magalhães <helder.magalh...@gmail.com>
Subject Re: Rasterizing of SVG file with the linked graphics fails if CMYK icc profile is specified
Date Mon, 30 Mar 2009 08:49:01 GMT
Hi Jan,


> I have defined cmyk profile in defs section:
> <svg:color-profile name="cmyk" rendering-intent="perceptual"
> xlink:href="EuropeISOCoatedFOGRA27.icc"/>
>
> If the color of any vector object is specified using "rgb(255, 0, 0)
> icc-color(cmyk, 0, 1, 1, 0)", it works fine (to tell the truth, while colors
> in PDF file are great, in JPEG output they are quite shifted - red has more
> magenta for example).
>
> I've tried to specify color-profile to one linked JPEG file using
> color-profile="cmyk" (similarly to colorProfile.svg in Example files, but
> with CMYK profile), but during rasterizing to JPEG or PDF I am getting error
> Input image and asociated color profile have mismatching number of color
> components: conversion is not possible.

Without deep knowledge on this, according to a tightly related thread
[1] (which provides significant background on this), it sounds like
Batik may not yet support this; a patch [2] may help workaround some
(all?) of these limitations. Maybe Thomas can confirm and add up more
interesting feedback? :-)


> Does it mean that such operation is impossible? Or should I set something
> else?

Also, if you are trying to use SVG for page composition, you may want
to take a look at FOP [3], which appears to support this (at least,
this is hinted from a fixed issue [4] which the related thread [1]
refers). Jeremias can probably provide more information on this. ;-)


> Thanks in advance for any response.
>
> Jan

Hope this helps,
 Helder


[1] http://www.nabble.com/fop---svg---icc-(and-cmyk-color)-td6772954.html
[2] https://issues.apache.org/bugzilla/show_bug.cgi?id=27248
[3] http://xmlgraphics.apache.org/fop/
[4] https://issues.apache.org/bugzilla/show_bug.cgi?id=40729

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message