Re: AFP images
2013/5/17 Luis Bernardo This is a known issue (at least, I am familiar with it). I assume you are using jai_imageio.jar. The behavior is due to a bug in JAI (see http://www.java.net/node/702556) Is there some known workaround? I was not aware of the issue you point out with RGB TIFFs and deflate compression. Can you provide example images with flate and LZW compression? The material is available at the following address: https://docs.google.com/file/d/0Bz0c5jBY0nL5alNNQUFrVF9DeEk/edit?usp=sharingpli=1 Thank you
Re: AFP images
Thank you for an excellent set of test cases. I am afraid I know of no workaround but I will investigate. On 5/20/13 10:11 AM, Luca Bellonda wrote: 2013/5/17 Luis Bernardo This is a known issue (at least, I am familiar with it). I assume you are using jai_imageio.jar. The behavior is due to a bug in JAI (see http://www.java.net/node/702556) Is there some known workaround? I was not aware of the issue you point out with RGB TIFFs and deflate compression. Can you provide example images with flate and LZW compression? The material is available at the following address: https://docs.google.com/file/d/0Bz0c5jBY0nL5alNNQUFrVF9DeEk/edit?usp=sharingpli=1 Thank you - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: AFP images
This is a known issue (at least, I am familiar with it). I assume you are using jai_imageio.jar. The behavior is due to a bug in JAI (see http://www.java.net/node/702556) that causes the images to be treated as RGB + Alpha. The reason you do not see the problem when producing PDF is due to the fact that FOP uses a native image loader if the output is PDF (i.e., it does not use JAI). I was not aware of the issue you point out with RGB TIFFs and deflate compression. Can you provide example images with flate and LZW compression? On 5/17/13 3:52 PM, Luca Bellonda wrote: Hi to all, I am facing problems using images with FOP with afp renderer. Specifically, a JPEG or TIFF with CMYK colorspace ends in wrong colors, even if the cmyk=true attribute is added to the configuration file. When using a TIFF (RGB) with deflate compression type, the picture is mostly black, using LZW compression is OK. Tested with 1.1 and the nightly build of FOP. Enclosed here the configuration file: ?xml version=1.0? fop version=1.0 base./base source-resolution72/source-resolution target-resolution72/target-resolution default-page-settings height=11in width=8.26in/ renderers renderer mime=application/x-afp renderer-resolution240/renderer-resolution images mode=color cmyk=true / /renderer /renderers /fop Thanks
Re: afp images
In this case, the JPEG is never actually used since you map the URI to a page segment. You've used s1islogo which is a colored demo page segment bundled with IBM's AFP Workbench. This is what will be used in the AFP file. So if that page segment appears in blackwhite I assume that the conversion to backwhite happens in the viewer/printer, i.e. after FOP has generated the AFP file. Have you check another AFP viewer? HTH On 23.04.2010 13:28:34 afp images wrote: Dear All I am new to AFP and i am unable to work with color images i have used image mode=color in xconf file and in the xsl file i am specifing that in simple-page-master as afp:include-page-segment id=dsdasd name=s1islogo src=C:\FOP\images\combo_big.jpg/ and inside the block container my code is as fo:block-container position=absolute top=5.50in left=.86in right=.45in fo:block xsl:element name=fo:external-graphic xsl:attribute name=srcC:\FOP\images\combo_big.jpg/xsl:attribute /xsl:element/fo:block /fo:block-container now the problem is i am able to view b+w image but not color images.plz help me out how to over come this issue.my image is of 30kb file. Thanks in advance Regards Sekhar. -- View this message in context: http://old.nabble.com/afp-images-tp28340117p28340117.html Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org