xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Egan <patrick.e...@greshamticket.com>
Subject Re: CMYK from Batik
Date Tue, 24 Jan 2006 15:14:50 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Thomas,<br>
<br>
Essentially what I am trying to do is to create some output from Batik
that can be used to create an offset lithography printing plate.<br>
The image is really simple just black and red text with an embedded
black and white png. Using PrintTranscoder I print to a PDF printer
driver.<br>
These pdfs are always in the rgb colour space. When loaded into the
imagesetting software RGB PDFs do not separate cleanly into CMYK
process colours.<br>
RGB to CMYK conversion software may be the solution. <br>
I will look into
what you said in your reply but my gut reaction is that CMYK JPEG is
not the way to go.<br>
<br>
Thanks for the fast reponse. <br>
Patrick<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:thomas.deweese@kodak.com">thomas.deweese@kodak.com</a>
wrote:
<blockquote
 cite="midOFBDC46C4B.1809B4F8-ON85257100.003B2279-85257100.003BBD20@knotes.kodak.com"
 type="cite">
  <pre wrap="">Hi all,

Jeremias Maerki <a class="moz-txt-link-rfc2396E" href="mailto:dev@jeremias-maerki.ch">&lt;dev@jeremias-maerki.ch&gt;</a>
wrote on 01/24/2006 05:32:44 AM:

  </pre>
  <blockquote type="cite">
    <pre wrap="">AFAIK, none of the bitmap transcoders support the creation of a CMYK
bitmap at the moment.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
   This is correct, however if you were to check out the code in the
"How to load an SVG resource into a java.awt.Image" thread.  You would
have essentially everything you need to construct get a CMYK BufferedImage
from Batik (you will have to use the 'ColorModel' constructor for the
BufferedImage, use the 'createCompatibleWritableRaster' to get an
appropriate raster).

   The one word of caution I will give is that my experience with
Java2D is that problems start to crop up once you get "off the beaten 
path" and rendering to a CMYK image is almost certainly off the beat
path.  Also I'm a little curious why a CMYK JPEG is any better than
an RGB (well YCbCr) unless you have support for specifying CMYK 
colors.  Which the above will _not_ give you.

  </pre>
  <blockquote type="cite">
    <pre wrap="">On 23.01.2006 17:03:39 Patrick Egan wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Thanks for your answer Jeremias,

Can anyone tell me how to create a CMYK JPEG with the JPEGTranscoder.
I believe that this involves the use of  &lt;color-profile&gt; tag with a 
reference to an .icm file, but an example of both java and suitable 
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->svg 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">source would help greatly.

Thanks,
Patrick

Jeremias Maerki wrote:

      </pre>
      <blockquote type="cite">
        <pre wrap="">FRF = Frequently requested feature :-)

No, the PDF output currently doesn't support CMYK. Only for CMYK 
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->JPEGs
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">with an ICC profile the CMYK information can be preserved, but
that's
not what you're asking for. Furthermore, SVG is not really oriented
towards CMYK. I can't talk for Batik, only for FOP (Batik uses FOP 
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->code
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">for PDF output), but we currently can't specify colors with an
ICC
profile which is the only possible route to work with CMYK colors. 
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->And
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">it may even be non-standard as far as I know.

Given the amount of feature requests in the past I would have thought
that someone finally sits down and starts implementing support for 
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->CMYK.
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">But I guess we'll have to wait a little longer for that.

On 09.01.2006 18:18:22 Patrick Egan wrote:


        </pre>
        <blockquote type="cite">
          <pre wrap="">Hello, 

I may be asking for the moon on a stick but is there any way to get 
          </pre>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->CMYK 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">colour output, preferably in pdf format from Batik ?  I can get
pdf 
output using PrintTranscoder and pdf printer driver (eg.PDF 
          </pre>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->reDirect) 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">but the pdfs are always in RGB and require a further conversion
to 
          </pre>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->CMYK 
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">before they can be used to make printing plates.

Thanks,
Patrick
          </pre>
        </blockquote>
      </blockquote>
    </blockquote>
    <pre wrap="">

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:batik-users-unsubscribe@xmlgraphics.apache.org">batik-users-unsubscribe@xmlgraphics.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:batik-users-help@xmlgraphics.apache.org">batik-users-help@xmlgraphics.apache.org</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->

---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:batik-users-unsubscribe@xmlgraphics.apache.org">batik-users-unsubscribe@xmlgraphics.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:batik-users-help@xmlgraphics.apache.org">batik-users-help@xmlgraphics.apache.org</a>


  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 11 (filtered)">
<title> </title>
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>
<div class="Section1">
<table class="MsoNormalTable" style="width: 453pt;" border="0"
 cellpadding="0" cellspacing="0" width="604">
  <tbody>
    <tr>
      <td style="padding: 0cm;">
      <table class="MsoNormalTable" style="width: 450pt;" align="right"
 border="0" cellpadding="0" cellspacing="0" width="600">
        <tbody>
          <tr>
            <td style="padding: 0cm;">
            <table class="MsoNormalTable"
 style="border: 1pt solid rgb(102, 102, 102); background: white none repeat scroll 0%; width:
450pt; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy:
initial;"
 border="1" cellpadding="0" cellspacing="0" width="600">
              <tbody>
                <tr style="height: 33.7pt;">
                  <td
 style="border: medium none ; padding: 0.75pt; background: rgb(213, 25, 12) none repeat scroll
0%; width: 100%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy:
initial; height: 33.7pt;"
 width="100%">
                  <table class="MsoNormalTable" style="width: 100%;"
 border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tbody>
                      <tr style="height: 17pt;">
                        <td
 style="padding: 0.75pt 0.75pt 0.75pt 3.75pt; width: 100%; height: 17pt;"
 valign="top" width="100%">
                        <p class="MsoNormal"><span
 style="font-family: Verdana; color: white;"></span><span
 style="font-size: 14pt; font-family: Verdana; color: white; font-style: italic;">SML
                        <span
 style="font-size: 10pt; font-family: Verdana; color: white; font-style: normal;">GRESHAM</span></span></p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  </td>
                  <td
 style="border: medium none ; padding: 0.75pt; background: rgb(213, 25, 12) none repeat scroll
0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy:
initial; height: 33.7pt;">
                  <p class="MsoNormal"><span style="font-size: 1pt;">&nbsp;</span></p>
                  </td>
                </tr>
                <tr>
                  <td colspan="2"
 style="border: medium none ; padding: 0.75pt;">
                  <table class="MsoNormalTable" style="width: 100%;"
 align="right" border="0" cellpadding="0" width="100%">
                    <tbody>
                      <tr
 style="page-break-inside: avoid; height: 73.7pt;">
                        <td
 style="padding: 0.75pt 0.75pt 3pt 3pt; height: 73.7pt;" valign="top">
                        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Verdana; color: gray;">Patrick
Egan<br>
IT</span></p>
                        </td>
                        <td
 style="padding: 0.75pt 3pt 3pt 0.75pt; width: 100.5pt; height: 73.7pt;"
 valign="top" width="134">
                        <p class="MsoNormal" style="text-align: right;"
 align="right"><b><span
 style="font-size: 8pt; font-family: Verdana; color: gray;">&nbsp;</span></b></p>
                        <p class="MsoNormal" style="text-align: right;"
 align="right"><span
 style="font-size: 8pt; font-family: Verdana; color: gray;">&nbsp;</span></p>
                        <p class="MsoNormal" style="text-align: right;"
 align="right"><span
 style="font-size: 8pt; font-family: Verdana; color: gray;">&nbsp;</span></p>
                        <p class="MsoNormal" style="text-align: right;"
 align="right"><span
 style="font-size: 8pt; font-family: Verdana; color: gray;">&nbsp;</span></p>
                        <p class="MsoNormal" style="text-align: right;"
 align="right"><span
 style="font-size: 8pt; font-family: Verdana; color: gray;">&nbsp;</span></p>
                        <p class="MsoNormal" style="text-align: right;"
 align="right"><span style="font-size: 12pt;">&nbsp;</span></p>
                        </td>
                        <td
 style="padding: 0cm; width: 117.75pt; height: 73.7pt;" valign="top"
 width="157">
                        <p class="MsoNormal"><b><span
 style="font-size: 8pt; font-family: Verdana; color: gray;">SML Gresham</span></b><span
 style="font-size: 8pt; font-family: Verdana; color: gray;"><br>
Unit 2<br>
RiverSide Industrial Estate<br>
Market Harborough<br>
Leicestershire<br>
LE16 7PT </span></p>
                        </td>
                      </tr>
                      <tr style="height: 0.75pt;">
                        <td
 style="padding: 0.75pt 0.75pt 3pt 3pt; height: 0.75pt;" valign="bottom">
                        <p class="MsoNormal"><span
 style="font-size: 8pt; font-family: Verdana; color: gray;"><a
 href="mailto:patrick.egan@sml.com">patrick.egan@sml.com</a><br>
                        <a href="mailto:pegan@greshamticket.com">pegan@greshamticket.com</a></span></p>
                        </td>
                        <td colspan="2"
 style="padding: 0.75pt 3pt 3pt 0.75pt; height: 0.75pt;" valign="bottom">
                        <table class="MsoNormalTable" align="left"
 border="0" cellpadding="0" cellspacing="0">
                          <tbody>
                            <tr>
                              <td style="padding: 0.75pt;" nowrap="nowrap">
                              <p class="MsoNormal"
 style="text-align: right;" align="right"><span
 style="font-size: 8pt; font-family: Verdana; color: gray;">tel: <br>
fax: </span></p>
                              </td>
                              <td
 style="padding: 0.75pt 0.75pt 0.75pt 3pt;" nowrap="nowrap">
                              <p class="MsoNormal"
 style="text-align: right;" align="right"><span
 style="font-size: 8pt; font-family: Verdana; color: gray;">+44 (0)1858
439430<br>
+44 (0)1858 439435 </span></p>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  </td>
                </tr>
              </tbody>
            </table>
            </td>
            <td style="padding: 0cm;">
            <p class="MsoNormal"><span style="font-size: 12pt;">&nbsp;</span></p>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
<p class="MsoNormal"><span lang="EN-GB">&nbsp;</span></p>
</div>
</div>

<BR>
Important - This e-mail and the information that it contains may be<BR>
confidential, legally privileged and protected by law.  Access by the<BR>
intended recipient only is authorised.  Any liability (in negligence or<BR>
otherwise) arising from any third party acting, or refraining from acting,<BR>
on any information contained in this e-mail is hereby excluded.  If you are<BR>
not the intended recipient, please notify the sender immediately and do not<BR>
disclose the contents to any other person, use it for any purpose, or store<BR>
or copy the information in any medium.  Copyright in this e-mail and<BR>
attachments created by us belongs to the author and<BR>
also asserts the right to be identified as such and object to any misuse.<BR>
</body>
</html>


---------------------------------------------------------------------
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