Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
If the image is CMYK and you get gray scale output it means the image had no color profile embedded. If you embed one FOP should convert it to RGB unless you have an ImageIO library that can handle CMYK. On Wed, Jan 29, 2014 at 7:06 AM, Valentina valent...@tp.rs wrote: The reason I didn't want compression is as follows: * My external Tiff image (96dpi, Bit-depth: 16, Compression: Uncompressed) wasn't rendering correctly, so I thought a possible reason could be compression * The next possible reason could be something about color profiles, which was the motivation for my other thread So the basic issue is that a grayscale image appears incorrectly in pdf (it appears washed out, lower contrast, more noisy) and I don't know what the cause is, and the above were the potential reasons that came to mind. 2014-01-29 Luis Bernardo lmpmberna...@gmail.com Note that the images use compression internally. If the image loader selected by FOP to process your image is the default ImageIO one (i.e., not a native FOP image loader) the image will be uncompressed. If then you turn off PDF stream compression, then yes, you should end up with a much larger file. Maybe you can explain why you do not want compression? On 1/28/14, 1:10 PM, Valentina Cupac wrote: Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB. The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
My original image is in fact grayscale, but the grayscale original and the rendered grayscale look different, that's the issue. In that case, is it related to CMYK or something else? 2014-01-29 Luis Bernardo lmpmberna...@gmail.com If the image is CMYK and you get gray scale output it means the image had no color profile embedded. If you embed one FOP should convert it to RGB unless you have an ImageIO library that can handle CMYK. On Wed, Jan 29, 2014 at 7:06 AM, Valentina valent...@tp.rs wrote: The reason I didn't want compression is as follows: * My external Tiff image (96dpi, Bit-depth: 16, Compression: Uncompressed) wasn't rendering correctly, so I thought a possible reason could be compression * The next possible reason could be something about color profiles, which was the motivation for my other thread So the basic issue is that a grayscale image appears incorrectly in pdf (it appears washed out, lower contrast, more noisy) and I don't know what the cause is, and the above were the potential reasons that came to mind. 2014-01-29 Luis Bernardo lmpmberna...@gmail.com Note that the images use compression internally. If the image loader selected by FOP to process your image is the default ImageIO one (i.e., not a native FOP image loader) the image will be uncompressed. If then you turn off PDF stream compression, then yes, you should end up with a much larger file. Maybe you can explain why you do not want compression? On 1/28/14, 1:10 PM, Valentina Cupac wrote: Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB. The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Changes in pdf tiff compression configuration has no effect on size of pdf generated
I am using FOP version 1.1. I tried the following configurations, listed below. Let me know if any further information is required. Variant 1 renderer mime=image/tiff !--transparent-page-backgroundtrue/transparent-page-background-- !--compressionNONE/compression-- /renderer Variant 2 renderer mime=image/tiff !--transparent-page-backgroundtrue/transparent-page-background-- compressionNONE/compression /renderer Variant 3 renderer mime=image/tiff !--transparent-page-backgroundtrue/transparent-page-background-- compressionPackBits/compression /renderer Variant 4 renderer mime=image/tiff color-modergba/color-mode !--transparent-page-backgroundtrue/transparent-page-background-- compressionPackBits/compression /renderer Variant 5 renderer mime=image/tiff color-modergba/color-mode !--transparent-page-backgroundtrue/transparent-page-background-- renderingtrue/rendering compressionPackBits/compression /renderer Variant 6 renderer mime=image/tiff color-modergba/color-mode transparent-page-backgroundtrue/transparent-page-background renderingtrue/rendering compressionPackBits/compression /renderer
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Hi! Some more information from how to compress images in PDF can see here: http://xmlgraphics.apache.org/fop/1.1/configuration.html#pdf-renderer Bye, Szeak - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB. The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Yes Registar man is correct ! if your output is pdf, you can't use the renderer/tif I mentioned earlier. However, you can remove the pdf image compression by using something similar to ( according to what your ultimate goal is ) : renderer mime=application/pdf filterList type=image valuenull/value /filterList/renderer /renderers By using it on a example pdf with a simple tif (with LZW comp), the pdf's size went up from 40 kb to more than 600kb.Thanasis Date: Tue, 28 Jan 2014 12:52:12 +0100 From: szea...@gmail.com To: fop-users@xmlgraphics.apache.org Subject: Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated Hi! Some more information from how to compress images in PDF can see here: http://xmlgraphics.apache.org/fop/1.1/configuration.html#pdf-renderer Bye, Szeak - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Ignore my previous message I haven't seen your last email when posted. Thanasis Date: Tue, 28 Jan 2014 14:10:35 +0100 Subject: Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated From: valentina.cu...@tp.rs To: fop-users@xmlgraphics.apache.org Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB.The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList!-- provides compression using zlib flate (default is on) --valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size --!-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Hi! So, I think the FOP working mechanism is: By rendering the output it uncompress and rendering the images into the document. Because of you need to define the PDF settings i sent before for recompresing used images in the pdf. I don't use these settings ever, i just think it working as i wrote above. Bye Szeak - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Note that the images use compression internally. If the image loader selected by FOP to process your image is the default ImageIO one (i.e., not a native FOP image loader) the image will be uncompressed. If then you turn off PDF stream compression, then yes, you should end up with a much larger file. Maybe you can explain why you do not want compression? On 1/28/14, 1:10 PM, Valentina Cupac wrote: Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB. The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com mailto:szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org mailto:fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org mailto:fop-users-h...@xmlgraphics.apache.org
Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
The reason I didn't want compression is as follows: * My external Tiff image (96dpi, Bit-depth: 16, Compression: Uncompressed) wasn't rendering correctly, so I thought a possible reason could be compression * The next possible reason could be something about color profiles, which was the motivation for my other thread So the basic issue is that a grayscale image appears incorrectly in pdf (it appears washed out, lower contrast, more noisy) and I don't know what the cause is, and the above were the potential reasons that came to mind. 2014-01-29 Luis Bernardo lmpmberna...@gmail.com Note that the images use compression internally. If the image loader selected by FOP to process your image is the default ImageIO one (i.e., not a native FOP image loader) the image will be uncompressed. If then you turn off PDF stream compression, then yes, you should end up with a much larger file. Maybe you can explain why you do not want compression? On 1/28/14, 1:10 PM, Valentina Cupac wrote: Thanks! I wasn't exactly sure what should be configured in the pdf rendering settings. (The goal is to have no compression applied to tiff images which are included in pdf output), so I tried some possible changes, listed below. My raw images are about 200KB. The generated pdf file (images - tiff, png + a bit of text) is 3MB. The good thing is that now the images are not compressed (I'm assuming that occurs since the pdf is now larger, the effect comes from here: filterList type=imagevaluenull/value/filterList However, the interesting part is that the pdf file is now much larger than the size of the original images. Is this an expected effect? === Current configuration === renderer mime=application/pdf filterList !-- provides compression using zlib flate (default is on) -- valueflate/value !-- encodes binary data into printable ascii characters (default off) This provides about a 4:5 expansion of data size -- !-- valueascii-85/value -- !-- encodes binary data with hex representation (default off) This filter is not recommended as it doubles the data size -- !-- valueascii-hex/value -- /filterList === ATTEMPTED CONFIGURATION === renderer mime=application/pdf filterList valueflate/value /filterList filterList type=image valuenull/value /filterList Could you let me know if there are any other settings I could try 2014-01-28 Registar Man szea...@gmail.com Hi! The image/tiff renderer configuration settings only works when you generate tiff output not pdf. For PDF rendering settings you must configure in the pdf renderer section. Bye, Csaba - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Hello, Which Fop-version are you using (!.0 1,1 trunk etc)? Can you provide the configuration and xsl-fo file you have been using so far to generate the pdf? Have you tried out this setting http://xmlgraphics.apache.org/fop/1.1/output.html#bitmap ? The more information you provide the easier would be for people to help you out. Thanks, Thanasis Date: Sat, 25 Jan 2014 16:55:22 +0100 Subject: Changes in pdf tiff compression configuration has no effect on size of pdf generated From: valentina.cu...@tp.rs To: fop-users@xmlgraphics.apache.org Hi, I am trying to remove PDF compression of tiff images. I tried to change all the PDF compression settings for generating PDF with tiff images. Changes in configuration file did not have any effect on size of the PDF. What should I do? Thanks,Valentina