Re: TIFF CMYK image with AFP

2014-12-11 Thread Christian Pestel
Hi Luis,

If this can help you, I attach an AFP file that shows the content of a TIFF LZW 
in IOCA.
 

Christian Pestel

christian.pes...@orange.fr


From: Luis Bernardo 
Sent: Wednesday, December 10, 2014 7:54 PM
To: fop-users@xmlgraphics.apache.org 
Subject: [?? Probable Spam] Re: TIFF CMYK image with AFP


The IOCA spec certainly allows that. I think that when a lot of the AFP code 
was written there were lingering doubts about the LZW patent and that may be 
the reason compression is not done. I will need to take a look.

On 12/10/14, 4:07 PM, Christian Pestel wrote:

  Hi Luis,

  If the CMYK TIFFs image file is compressed (LZW), Fop decompress the data 
during image loading and convert datas in AFP IOCA resource with these IFD 
parameters
  - Image Encoding Parameter: Compression algorithm: No Compression
  - Image Encoding Parameter: Recording algorithm: RIDIC

  Do you think that it’s possible to compress again AFP data image ?
  and set IFD parameters to
  - Image Encoding Parameter: Compression algorithm: TIFF LZW
  - Image Encoding Parameter: Recording algorithm: RIDIC

   

  Christian Pestel

  christian.pes...@orange.fr


  From: Christian Pestel 
  Sent: Monday, December 01, 2014 6:00 PM
  To: fop-users@xmlgraphics.apache.org 
  Subject: Re: TIFF CMYK image with AFP

  Yes ! It’s work very well !  

  I look forward to your patch

  Thanks a lot, Luis.
   

  Christian Pestel

  christian.pes...@orange.fr


  From: Luis Bernardo 
  Sent: Monday, December 01, 2014 5:31 PM
  To: fop-users@xmlgraphics.apache.org 
  Subject: Re: TIFF CMYK image with AFP

  I see. I do have a patch for this, something that I fixed a while ago and 
never got around to commit (see attachment and check it is OK). I will try to 
have it applied tomorrow.

  On Mon, Dec 1, 2014 at 4:05 PM, Christian Pestel christian.pes...@orange.fr 
wrote:

  Hi Luis,

  I join image, fo and afp files
  I use Fop Trunk version 

  Fop.config :

  renderer mime=application/x-afp
  renderer-resolution300/renderer-resolution
  images mode=color cmyk=true native=false fs45=true 
   jpeg allow-embedding=false bitmap-encoding-quality=1.0/ 
  /images




  Christian Pestel

  christian.pes...@orange.fr


  From: Luis Bernardo 
  Sent: Monday, December 01, 2014 3:48 PM
  To: fop-users@xmlgraphics.apache.org 
  Subject: Re: TIFF CMYK image with AFP

  Can you provide the tiff image and fop.xconf you use?

  On Mon, Dec 1, 2014 at 10:56 AM, Christian Pestel 
christian.pes...@orange.fr wrote:
  Hi,

  TIFF image with CMYK color space is not well rendered in AFP.
  I think that the native TIFF codec don’t implement that :

  xmlgraphics\image\codec\tiff\TIFFImage.java
  public TIFFImage(SeekableStream stream, TIFFDecodeParam param, int directory)
  ...
  default: // Other including CMYK, CIE L*a*b*, unknown.
 if (sampleSize % 8 == 0) {
 imageType = TYPE_GENERIC;
 }
  ...

  Is it possible to use a different codec that would cover this type of image 
like TwelveMonkeys imageio-tiff codec ?


  Thanks,


  Christian Pestel
  christian.pes...@orange.fr


  -
  To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
  For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





  -
  To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
  For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



--

  -
  To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
  For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



S1LOGEDR.afp
Description: application/afp

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Re: TIFF CMYK image with AFP

2014-12-10 Thread Christian Pestel
Hi Luis,

If the CMYK TIFFs image file is compressed (LZW), Fop decompress the data 
during image loading and convert datas in AFP IOCA resource with these IFD 
parameters
- Image Encoding Parameter: Compression algorithm: No Compression
- Image Encoding Parameter: Recording algorithm: RIDIC

Do you think that it’s possible to compress again AFP data image ?
and set IFD parameters to
- Image Encoding Parameter: Compression algorithm: TIFF LZW
- Image Encoding Parameter: Recording algorithm: RIDIC

 

Christian Pestel

christian.pes...@orange.fr


From: Christian Pestel 
Sent: Monday, December 01, 2014 6:00 PM
To: fop-users@xmlgraphics.apache.org 
Subject: Re: TIFF CMYK image with AFP

Yes ! It’s work very well !  

I look forward to your patch

Thanks a lot, Luis.
 

Christian Pestel

christian.pes...@orange.fr


From: Luis Bernardo 
Sent: Monday, December 01, 2014 5:31 PM
To: fop-users@xmlgraphics.apache.org 
Subject: Re: TIFF CMYK image with AFP

I see. I do have a patch for this, something that I fixed a while ago and never 
got around to commit (see attachment and check it is OK). I will try to have it 
applied tomorrow.

On Mon, Dec 1, 2014 at 4:05 PM, Christian Pestel christian.pes...@orange.fr 
wrote:

Hi Luis,

I join image, fo and afp files
I use Fop Trunk version 

Fop.config :

renderer mime=application/x-afp
renderer-resolution300/renderer-resolution
images mode=color cmyk=true native=false fs45=true 
 jpeg allow-embedding=false bitmap-encoding-quality=1.0/ 
/images




Christian Pestel

christian.pes...@orange.fr


From: Luis Bernardo 
Sent: Monday, December 01, 2014 3:48 PM
To: fop-users@xmlgraphics.apache.org 
Subject: Re: TIFF CMYK image with AFP

Can you provide the tiff image and fop.xconf you use?

On Mon, Dec 1, 2014 at 10:56 AM, Christian Pestel christian.pes...@orange.fr 
wrote:
Hi,

TIFF image with CMYK color space is not well rendered in AFP.
I think that the native TIFF codec don’t implement that :

xmlgraphics\image\codec\tiff\TIFFImage.java
public TIFFImage(SeekableStream stream, TIFFDecodeParam param, int directory)
...
default: // Other including CMYK, CIE L*a*b*, unknown.
   if (sampleSize % 8 == 0) {
   imageType = TYPE_GENERIC;
   }
...

Is it possible to use a different codec that would cover this type of image 
like TwelveMonkeys imageio-tiff codec ?


Thanks,


Christian Pestel
christian.pes...@orange.fr


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org






-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Re: TIFF CMYK image with AFP

2014-12-10 Thread Luis Bernardo


The IOCA spec certainly allows that. I think that when a lot of the AFP 
code was written there were lingering doubts about the LZW patent and 
that may be the reason compression is not done. I will need to take a look.


On 12/10/14, 4:07 PM, Christian Pestel wrote:

Hi Luis,
If the CMYK TIFFs image file is compressed (LZW), Fop decompress the 
data during image loading and convert datas in AFP IOCA resource with 
these IFD parameters

- Image Encoding Parameter: Compression algorithm: No Compression
- Image Encoding Parameter: Recording algorithm: RIDIC
Do you think that it’s possible to compress again AFP data image ?
and set IFD parameters to
- Image Encoding Parameter: Compression algorithm: TIFF LZW
- Image Encoding Parameter: Recording algorithm: RIDIC

**

Christian Pestel

christian.pes...@orange.fr mailto:cpes...@bdoc.com

*From:* Christian Pestel mailto:christian.pes...@orange.fr
*Sent:* Monday, December 01, 2014 6:00 PM
*To:* fop-users@xmlgraphics.apache.org 
mailto:fop-users@xmlgraphics.apache.org

*Subject:* Re: TIFF CMYK image with AFP
Yes ! It’s work very well ! Sourire
I look forward to your patch
Thanks a lot, Luis.

**

Christian Pestel

christian.pes...@orange.fr mailto:cpes...@bdoc.com

*From:* Luis Bernardo mailto:lmpmberna...@gmail.com
*Sent:* Monday, December 01, 2014 5:31 PM
*To:* fop-users@xmlgraphics.apache.org 
mailto:fop-users@xmlgraphics.apache.org

*Subject:* Re: TIFF CMYK image with AFP
I see. I do have a patch for this, something that I fixed a while ago 
and never got around to commit (see attachment and check it is OK). I 
will try to have it applied tomorrow.
On Mon, Dec 1, 2014 at 4:05 PM, Christian Pestel 
christian.pes...@orange.fr mailto:christian.pes...@orange.fr wrote:

Hi Luis,
I join image, fo and afp files
I use Fop Trunk version
Fop.config :
renderer mime=application/x-afp
renderer-resolution300/renderer-resolution
images mode=color cmyk=true native=false fs45=true 
 jpeg allow-embedding=false bitmap-encoding-quality=1.0/
/images

**

Christian Pestel

christian.pes...@orange.fr mailto:cpes...@bdoc.com

*From:* Luis Bernardo mailto:lmpmberna...@gmail.com
*Sent:* Monday, December 01, 2014 3:48 PM
*To:* fop-users@xmlgraphics.apache.org 
mailto:fop-users@xmlgraphics.apache.org

*Subject:* Re: TIFF CMYK image with AFP
Can you provide the tiff image and fop.xconf you use?
On Mon, Dec 1, 2014 at 10:56 AM, Christian Pestel 
christian.pes...@orange.fr mailto:christian.pes...@orange.fr wrote:

Hi,

TIFF image with CMYK color space is not well rendered in AFP.
I think that the native TIFF codec don’t implement that :

xmlgraphics\image\codec\tiff\TIFFImage.java
public TIFFImage(SeekableStream stream, TIFFDecodeParam param, int 
directory)

...
default: // Other including CMYK, CIE L*a*b*, unknown.
   if (sampleSize % 8 == 0) {
   imageType = TYPE_GENERIC;
   }
...

Is it possible to use a different codec that would cover this type of 
image like TwelveMonkeys imageio-tiff codec ?



Thanks,


Christian Pestel
christian.pes...@orange.fr mailto:christian.pes...@orange.fr


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org 
mailto:fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org 
mailto:fop-users-h...@xmlgraphics.apache.org




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org 
mailto:fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org 
mailto:fop-users-h...@xmlgraphics.apache.org




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




Re: TIFF CMYK image with AFP

2014-12-02 Thread Luis Bernardo
Try with trunk now. For your image you will also need the jai_imageio.jar
for the colors to be right.

On Mon, Dec 1, 2014 at 5:00 PM, Christian Pestel christian.pes...@orange.fr
 wrote:

   Yes ! It’s work very well !  [image: Sourire]

  I look forward to your patch

 Thanks a lot, Luis.



 Christian Pestel

 christian.pes...@orange.fr cpes...@bdoc.com

  *From:* Luis Bernardo lmpmberna...@gmail.com
 *Sent:* Monday, December 01, 2014 5:31 PM
 *To:* fop-users@xmlgraphics.apache.org
 *Subject:* Re: TIFF CMYK image with AFP

  I see. I do have a patch for this, something that I fixed a while ago
 and never got around to commit (see attachment and check it is OK). I will
 try to have it applied tomorrow.

 On Mon, Dec 1, 2014 at 4:05 PM, Christian Pestel 
 christian.pes...@orange.fr wrote:
   Hi Luis,

 I join image, fo and afp files
 I use Fop Trunk version

 Fop.config :

 renderer mime=application/x-afp
 renderer-resolution300/renderer-resolution
 images mode=color cmyk=true native=false fs45=true 
  jpeg allow-embedding=false bitmap-encoding-quality=1.0/
 /images





 Christian Pestel

 christian.pes...@orange.fr cpes...@bdoc.com

  *From:* Luis Bernardo lmpmberna...@gmail.com
 *Sent:* Monday, December 01, 2014 3:48 PM
 *To:* fop-users@xmlgraphics.apache.org
 *Subject:* Re: TIFF CMYK image with AFP

   Can you provide the tiff image and fop.xconf you use?

 On Mon, Dec 1, 2014 at 10:56 AM, Christian Pestel 
 christian.pes...@orange.fr wrote:
 Hi,

 TIFF image with CMYK color space is not well rendered in AFP.
 I think that the native TIFF codec don’t implement that :

 xmlgraphics\image\codec\tiff\TIFFImage.java
 public TIFFImage(SeekableStream stream, TIFFDecodeParam param, int
 directory)
 ...
 default: // Other including CMYK, CIE L*a*b*, unknown.
if (sampleSize % 8 == 0) {
imageType = TYPE_GENERIC;
}
 ...

 Is it possible to use a different codec that would cover this type of
 image like TwelveMonkeys imageio-tiff codec ?


 Thanks,


 Christian Pestel
 christian.pes...@orange.fr


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


 --

 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




Re: TIFF CMYK image with AFP

2014-12-01 Thread Luis Bernardo
Can you provide the tiff image and fop.xconf you use?

On Mon, Dec 1, 2014 at 10:56 AM, Christian Pestel 
christian.pes...@orange.fr wrote:

 Hi,

 TIFF image with CMYK color space is not well rendered in AFP.
 I think that the native TIFF codec don’t implement that :

 xmlgraphics\image\codec\tiff\TIFFImage.java
 public TIFFImage(SeekableStream stream, TIFFDecodeParam param, int
 directory)
 ...
 default: // Other including CMYK, CIE L*a*b*, unknown.
if (sampleSize % 8 == 0) {
imageType = TYPE_GENERIC;
}
 ...

 Is it possible to use a different codec that would cover this type of
 image like TwelveMonkeys imageio-tiff codec ?


 Thanks,


 Christian Pestel
 christian.pes...@orange.fr


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




Re: TIFF CMYK image with AFP

2014-12-01 Thread Christian Pestel
Yes ! It’s work very well !  

I look forward to your patch

Thanks a lot, Luis.
 

Christian Pestel

christian.pes...@orange.fr


From: Luis Bernardo 
Sent: Monday, December 01, 2014 5:31 PM
To: fop-users@xmlgraphics.apache.org 
Subject: Re: TIFF CMYK image with AFP

I see. I do have a patch for this, something that I fixed a while ago and never 
got around to commit (see attachment and check it is OK). I will try to have it 
applied tomorrow.

On Mon, Dec 1, 2014 at 4:05 PM, Christian Pestel christian.pes...@orange.fr 
wrote:

Hi Luis,

I join image, fo and afp files
I use Fop Trunk version 

Fop.config :

renderer mime=application/x-afp
renderer-resolution300/renderer-resolution
images mode=color cmyk=true native=false fs45=true 
 jpeg allow-embedding=false bitmap-encoding-quality=1.0/ 
/images




Christian Pestel

christian.pes...@orange.fr


From: Luis Bernardo 
Sent: Monday, December 01, 2014 3:48 PM
To: fop-users@xmlgraphics.apache.org 
Subject: Re: TIFF CMYK image with AFP

Can you provide the tiff image and fop.xconf you use?

On Mon, Dec 1, 2014 at 10:56 AM, Christian Pestel christian.pes...@orange.fr 
wrote:
Hi,

TIFF image with CMYK color space is not well rendered in AFP.
I think that the native TIFF codec don’t implement that :

xmlgraphics\image\codec\tiff\TIFFImage.java
public TIFFImage(SeekableStream stream, TIFFDecodeParam param, int directory)
...
default: // Other including CMYK, CIE L*a*b*, unknown.
   if (sampleSize % 8 == 0) {
   imageType = TYPE_GENERIC;
   }
...

Is it possible to use a different codec that would cover this type of image 
like TwelveMonkeys imageio-tiff codec ?


Thanks,


Christian Pestel
christian.pes...@orange.fr


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org





-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org






-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Re: Tiff cmyk

2007-01-10 Thread Jeremias Maerki
CMYK TIFF is currently only supported if the image itself is encoded as
a DCT image (with is the same compression JPEG uses). Otherwise, FOP
will process the image data wrongly, thinking it is RGB data. I suggest
you convert your images into a CMYK JPEG images. That is probably the
easiest work-around until one of us has time to do the image package
redesign.

On 10.01.2007 21:39:54 Kris Wolff wrote:
 Hi all,
 
 i searched the list a few hours by now, trying to get help on my tif  
 problem and i can now import a tif saved in rgb color.
 But for print i need a cmyk tiff.
 The Problem is, that the cmyk is renderd with batik, why? for rgb fop  
 takes teh right jimi...
 The result from the cmyk is just a black image!
 
 does anybody has imported a cmyk succsessfully?
 
 Please help! i am running mad!
 ven.


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiff cmyk

2007-01-10 Thread Kris Wolff

Hi Jeremias,

now i am running into an error, that terminates the rendering:
javax.xml.transform.TransformerException: java.lang.RuntimeException:  
TIFFImage16
at org.apache.xalan.templates.ElemLiteralResult.execute 
(ElemLiteralResult.java:725)
at  
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates 
(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemLiteralResult.execute 
(ElemLiteralResult.java:710)
at  
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates 
(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemLiteralResult.execute 
(ElemLiteralResult.java:710)
at  
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates 
(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemLiteralResult.execute 
(ElemLiteralResult.java:710)
at  
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates 
(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemLiteralResult.execute 
(ElemLiteralResult.java:710)
at  
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes 
(ElemApplyTemplates.java:425)
at org.apache.xalan.templates.ElemApplyTemplates.execute 
(ElemApplyTemplates.java:216)
at  
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates 
(TransformerImpl.java:2339)
at  
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode 
(TransformerImpl.java:2160)
at org.apache.xalan.transformer.TransformerImpl.transformNode 
(TransformerImpl.java:1213)
at org.apache.xalan.transformer.TransformerImpl.transform 
(TransformerImpl.java:668)
at org.apache.xalan.transformer.TransformerImpl.transform 
(TransformerImpl.java:1129)
at org.apache.xalan.transformer.TransformerImpl.transform 
(TransformerImpl.java:1107)


I saved the tif with Photoshop CS 2 as JPEG Compression, best  
Quality.   the image is CMYK/8Bit.

I don't know if this is a following error, or an other mistake of mine.

thank you in advanced,
ven


On Jan 10, 2007, at 10:06 PM, Jeremias Maerki wrote:

CMYK TIFF is currently only supported if the image itself is  
encoded as

a DCT image (with is the same compression JPEG uses). Otherwise, FOP
will process the image data wrongly, thinking it is RGB data. I  
suggest

you convert your images into a CMYK JPEG images. That is probably the
easiest work-around until one of us has time to do the image package
redesign.

On 10.01.2007 21:39:54 Kris Wolff wrote:

Hi all,

i searched the list a few hours by now, trying to get help on my tif
problem and i can now import a tif saved in rgb color.
But for print i need a cmyk tiff.
The Problem is, that the cmyk is renderd with batik, why? for rgb fop
takes teh right jimi...
The result from the cmyk is just a black image!

does anybody has imported a cmyk succsessfully?

Please help! i am running mad!
ven.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiff cmyk

2007-01-10 Thread Jeremias Maerki
Hmm, TIFFImage16 is one of those error messages that should actually
be resolved into an understandable error message. Looking at the source
code, it means as much as: I don't support CMYK images with DCT
compression. I that is the TIFF codec in XML Graphics Commons.
Unfortunately, the image adapter for that codec currently seems to
decode the whole image to determine the image size and can therefore
later not use the raw image data. I thought that used to work at some
point. But then the image package really is a mess.

I really have no other option for you than using JPEG instead of TIFF
for now if you absolutely need CMYK support.

On 10.01.2007 23:00:52 Kris Wolff wrote:
 Ok, of course, here is the full error: (long list)

snip/
 java.lang.RuntimeException: TIFFImage16
  at org.apache.xmlgraphics.image.codec.tiff.TIFFImage.init 
 (TIFFImage.java:579)
  at org.apache.fop.image.TIFFImage.decodeImage(TIFFImage.java: 
 72)
  at  
 org.apache.fop.image.XmlGraphicsCommonsImage.loadDimensions 
 (XmlGraphicsCommonsImage.java:78)
  at org.apache.fop.image.AbstractFopImage.load 
 (AbstractFopImage.java:160)
  at org.apache.fop.fo.flow.ExternalGraphic.bind 
 (ExternalGraphic.java:73)
snip/


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiff cmyk

2007-01-10 Thread Kris Wolff

Hi Jeremias,

i try to follow you in the code... hm, lost at some point.  I  
definetly need cmyk, so i start to begin looking for some jai  
examples rendering tiff2jpeg without loosing the color theme. All i  
get by now is some ugly image in compleate diferent colors

so i think other api, other site, maybe other list :-)

for understanding you and get deeper into fop-development (i really  
like it, but i am comming from business-logic-applications, short  
from plain numbers on the screen :-) and lots of web-services (lots  
of text and numbers, too) so i see a chance for me getting into image- 
things here, trying to understand what is going wrong in fop. So, you  
say: the image class decompress the image to find out the size and  
than can not process in the next steps because it expected jpeg- 
compression but get raw data, am i right?


ven.

On Jan 10, 2007, at 11:21 PM, Jeremias Maerki wrote:


Hmm, TIFFImage16 is one of those error messages that should actually
be resolved into an understandable error message. Looking at the  
source

code, it means as much as: I don't support CMYK images with DCT
compression. I that is the TIFF codec in XML Graphics Commons.
Unfortunately, the image adapter for that codec currently seems to
decode the whole image to determine the image size and can therefore
later not use the raw image data. I thought that used to work at some
point. But then the image package really is a mess.

I really have no other option for you than using JPEG instead of TIFF
for now if you absolutely need CMYK support.

On 10.01.2007 23:00:52 Kris Wolff wrote:

Ok, of course, here is the full error: (long list)


snip/

java.lang.RuntimeException: TIFFImage16
 at org.apache.xmlgraphics.image.codec.tiff.TIFFImage.init
(TIFFImage.java:579)
 at org.apache.fop.image.TIFFImage.decodeImage 
(TIFFImage.java:

72)
 at
org.apache.fop.image.XmlGraphicsCommonsImage.loadDimensions
(XmlGraphicsCommonsImage.java:78)
 at org.apache.fop.image.AbstractFopImage.load
(AbstractFopImage.java:160)
 at org.apache.fop.fo.flow.ExternalGraphic.bind
(ExternalGraphic.java:73)

snip/


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiff cmyk

2007-01-10 Thread Jeremias Maerki
I don't have much time right now to explain the current plans but take a
look at:
org.apache.fop.render.pdf.FopPDFImage
org.apache.fop.render.image.TIFFImage
org.apache.fop.render.image.XmlGraphicsCommonsImage (parent of TIFFImage)

Some notes for the upcoming redesign of the image package:
http://wiki.apache.org/xmlgraphics-fop/ImageSupport

But I don't really understand why you can't save your image as a CMYK
TIFF and use that.

On 10.01.2007 23:35:17 Kris Wolff wrote:
 Hi Jeremias,
 
 i try to follow you in the code... hm, lost at some point.  I  
 definetly need cmyk, so i start to begin looking for some jai  
 examples rendering tiff2jpeg without loosing the color theme. All i  
 get by now is some ugly image in compleate diferent colors
 so i think other api, other site, maybe other list :-)
 
 for understanding you and get deeper into fop-development (i really  
 like it, but i am comming from business-logic-applications, short  
 from plain numbers on the screen :-) and lots of web-services (lots  
 of text and numbers, too) so i see a chance for me getting into image- 
 things here, trying to understand what is going wrong in fop. So, you  
 say: the image class decompress the image to find out the size and  
 than can not process in the next steps because it expected jpeg- 
 compression but get raw data, am i right?
 
 ven.
 
 On Jan 10, 2007, at 11:21 PM, Jeremias Maerki wrote:
 
  Hmm, TIFFImage16 is one of those error messages that should actually
  be resolved into an understandable error message. Looking at the  
  source
  code, it means as much as: I don't support CMYK images with DCT
  compression. I that is the TIFF codec in XML Graphics Commons.
  Unfortunately, the image adapter for that codec currently seems to
  decode the whole image to determine the image size and can therefore
  later not use the raw image data. I thought that used to work at some
  point. But then the image package really is a mess.
 
  I really have no other option for you than using JPEG instead of TIFF
  for now if you absolutely need CMYK support.
 
  On 10.01.2007 23:00:52 Kris Wolff wrote:
  Ok, of course, here is the full error: (long list)
 
  snip/
  java.lang.RuntimeException: TIFFImage16
   at org.apache.xmlgraphics.image.codec.tiff.TIFFImage.init
  (TIFFImage.java:579)
   at org.apache.fop.image.TIFFImage.decodeImage 
  (TIFFImage.java:
  72)
   at
  org.apache.fop.image.XmlGraphicsCommonsImage.loadDimensions
  (XmlGraphicsCommonsImage.java:78)
   at org.apache.fop.image.AbstractFopImage.load
  (AbstractFopImage.java:160)
   at org.apache.fop.fo.flow.ExternalGraphic.bind
  (ExternalGraphic.java:73)
  snip/



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]