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
<[email protected] <mailto:[email protected]>> 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
[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
<[email protected] <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]