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-resolution>300</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

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

Reply via email to