afp images
Dear All I am new to AFP and i am unable to work with color images i have used in xconf file and in the xsl file i am specifing that in simple-page-master as and inside the block container my code is as C:\FOP\images\combo_big.jpg 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. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
AFP images
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: . 72 72 240 Thanks
Re: afp images
Hi Sekhar, The xml you have provided is not xsl fo (looks like a style sheet). Could you provide the actual fo you have used - you can strip out unrelated stuff and we can replace the image with something local. Cheers, Pete On Fri, Apr 23, 2010 at 12:28 PM, afp images wrote: > > Dear All > I am new to AFP and i am unable to work with color images > i have used in xconf file and in the xsl file i am > specifing that in simple-page-master as > src="C:\FOP\images\combo_big.jpg"/> and inside the block container my code > is as > right=".45in"> > > > name="src">C:\FOP\images\combo_big.jpg > > > 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. > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > >
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 black&white I assume that the conversion to back&white 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 in xconf file and in the xsl file i am > specifing that in simple-page-master as > src="C:\FOP\images\combo_big.jpg"/> and inside the block container my code > is as > right=".45in"> > > > name="src">C:\FOP\images\combo_big.jpg > > > 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
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: . 72 72 240 Thanks
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=sharing&pli=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=sharing&pli=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
Thank you for your answer. I am investigating. 2013/6/14 Luis Bernardo > > A follow-up... > > I have been investigating the JPEG with CMYK issue and I found a solution. > I have not looked at the other issues yet. >