Re: TIFF CMYK image with AFP
Hi Luis, If this can help you, I attach an AFP file that shows the content of a TIFF LZW in IOCA. Christian Pestel [email protected] From: Luis Bernardo Sent: Wednesday, December 10, 2014 7:54 PM To: [email protected] 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 [email protected] From: Christian Pestel Sent: Monday, December 01, 2014 6:00 PM To: [email protected] 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 [email protected] From: Luis Bernardo Sent: Monday, December 01, 2014 5:31 PM To: [email protected] 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 wrote: Hi Luis, I join image, fo and afp files I use Fop Trunk version Fop.config : 300 Christian Pestel [email protected] From: Luis Bernardo Sent: Monday, December 01, 2014 3:48 PM To: [email protected] 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 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 [email protected] - 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] -- - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] S1LOGEDR.afp Description: application/afp - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
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 [email protected] <mailto:[email protected]> *From:* Christian Pestel <mailto:[email protected]> *Sent:* Monday, December 01, 2014 6:00 PM *To:* [email protected] <mailto:[email protected]> *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 [email protected] <mailto:[email protected]> *From:* Luis Bernardo <mailto:[email protected]> *Sent:* Monday, December 01, 2014 5:31 PM *To:* [email protected] <mailto:[email protected]> *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 mailto:[email protected]>> wrote: Hi Luis, I join image, fo and afp files I use Fop Trunk version Fop.config : 300 ** Christian Pestel [email protected] <mailto:[email protected]> *From:* Luis Bernardo <mailto:[email protected]> *Sent:* Monday, December 01, 2014 3:48 PM *To:* [email protected] <mailto:[email protected]> *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 mailto:[email protected]>> 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 [email protected] <mailto:[email protected]> - To unsubscribe, e-mail: [email protected] <mailto:[email protected]> For additional commands, e-mail: [email protected] <mailto:[email protected]> - To unsubscribe, e-mail: [email protected] <mailto:[email protected]> For additional commands, e-mail: [email protected] <mailto:[email protected]> - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: TIFF CMYK image with AFP
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 [email protected] From: Christian Pestel Sent: Monday, December 01, 2014 6:00 PM To: [email protected] 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 [email protected] From: Luis Bernardo Sent: Monday, December 01, 2014 5:31 PM To: [email protected] 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 wrote: Hi Luis, I join image, fo and afp files I use Fop Trunk version Fop.config : 300 Christian Pestel [email protected] From: Luis Bernardo Sent: Monday, December 01, 2014 3:48 PM To: [email protected] 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 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 [email protected] - 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] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: TIFF CMYK image with AFP
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 wrote: > Yes ! It’s work very well ! [image: Sourire] > > I look forward to your patch > > Thanks a lot, Luis. > > > > Christian Pestel > > [email protected] > > *From:* Luis Bernardo > *Sent:* Monday, December 01, 2014 5:31 PM > *To:* [email protected] > *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 < > [email protected]> wrote: > Hi Luis, > > I join image, fo and afp files > I use Fop Trunk version > > Fop.config : > > > 300 > > > > > > > > > Christian Pestel > > [email protected] > > *From:* Luis Bernardo > *Sent:* Monday, December 01, 2014 3:48 PM > *To:* [email protected] > *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 < > [email protected]> 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 > [email protected] > > > - > 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] > > > -- > > - > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
Re: TIFF CMYK image with AFP
Yes ! It’s work very well ! I look forward to your patch Thanks a lot, Luis. Christian Pestel [email protected] From: Luis Bernardo Sent: Monday, December 01, 2014 5:31 PM To: [email protected] 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 wrote: Hi Luis, I join image, fo and afp files I use Fop Trunk version Fop.config : 300 Christian Pestel [email protected] From: Luis Bernardo Sent: Monday, December 01, 2014 3:48 PM To: [email protected] 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 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 [email protected] - 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] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
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 < [email protected]> 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 > [email protected] > > > - > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
