xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valentina Cupac <valentina.cu...@tp.rs>
Subject Re: Changes in pdf tiff compression configuration has no effect on size of pdf generated
Date Wed, 29 Jan 2014 10:06:31 GMT
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 <lmpmbernardo@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 <valentina@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 <lmpmbernardo@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="image"><value>null</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) -->
>>>         <value>flate</value>
>>>
>>>         <!-- encodes binary data into printable ascii characters
>>> (default off)
>>>              This provides about a 4:5 expansion of data size -->
>>>         <!-- <value>ascii-85</value> -->
>>>
>>>         <!-- encodes binary data with hex representation (default off)
>>>              This filter is not recommended as it doubles the data size
>>> -->
>>>         <!-- <value>ascii-hex</value> -->
>>>       </filterList>
>>>
>>>
>>>  === ATTEMPTED CONFIGURATION ===
>>>
>>>      <renderer mime="application/pdf">
>>>           <filterList> <value>flate</value> </filterList>
<filterList
>>> type="image"> <value>null</value> </filterList>
>>>
>>>
>>>
>>>  Could you let me know if there are any other settings I could try
>>>
>>>
>>>  2014-01-28 Registar Man <szeak33@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-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>>
>>>>
>>>
>>>
>>
>

Mime
View raw message