You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by JPee <pe...@softwareforen.de> on 2010/11/25 13:43:04 UTC
Filesize of Images
Hello community,
we are using FOP for rendering some pdf files from data. The pdf includes
some images, which can be very big (up to 5mb). So the outcoming pdf with 3
images is about 15+ mb. Inside the pdf the images are shown in a lower
solution.
Is there a way that the imagesize is also scaled down dependant on
imagesolution?
To prevent big pdfs our editors must customize the images at the moment. Is
this step really necessary?
Thanks
JPee
--
View this message in context: http://old.nabble.com/Filesize-of-Images-tp30304887p30304887.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Filesize of Images
Posted by JPee <pe...@softwareforen.de>.
Thank you for the answers,
which helped me in finding a solution. Our system has an option to size the
images before
the FOP processor runs over the fo-file. I have to use this approach then.
Greetings
JPE
Jeremias Maerki-2 wrote:
>
> FOP does not do any resampling of images for PDF or PostScript output.
> Images are always embedded as is, i.e. in their original size.
>
> You could work around that by embedding the image inside a small SVG
> wrapper. But you need to apply a dummy filter to force Batik to do the
> resampling. Something like:
>
> <svg:filter id="MyFilter" filterUnits="objectBoundingBox" x="0%"
> y="0%" width="100%" height="100%">
> <svg:feColorMatrix type="hueRotate" in="SourceGraphic"
> values="0"/>
> </svg:filter>
>
> No guarantees on the quality of such an approach.
>
> On 25.11.2010 14:36:42 Peter Hancock wrote:
>> On Thu, Nov 25, 2010 at 12:43 PM, JPee <pe...@softwareforen.de> wrote:
>> Hi JPee,
>>
>> Have you tried adjusting the default resoulation settings in your
>> fop.xconf file (assuming you are using one-
>> http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-available)?
>> Have a look at the source-resolution/target-resolution settings
>> defined in
>> http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-elements
>>
>> I am not sure that any resizing can be done based on image resolution
>> but setting the size and target-resolution will alter the file size.
>>
>> Pete
>>
>> >
>> > Hello community,
>> >
>> > we are using FOP for rendering some pdf files from data. The pdf
>> includes
>> > some images, which can be very big (up to 5mb). So the outcoming pdf
>> with 3
>> > images is about 15+ mb. Inside the pdf the images are shown in a lower
>> > solution.
>> >
>> > Is there a way that the imagesize is also scaled down dependant on
>> > imagesolution?
>> >
>> >
>> > To prevent big pdfs our editors must customize the images at the
>> moment. Is
>> > this step really necessary?
>> >
>> > Thanks
>> > JPee
>> > --
>> > View this message in context:
>> http://old.nabble.com/Filesize-of-Images-tp30304887p30304887.html
>> > Sent from the FOP - Users mailing list archive at Nabble.com.
>> >
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
-----
Johannes Perlet
working for http://www.softwareforen.de softwareforen
--
View this message in context: http://old.nabble.com/Filesize-of-Images-tp30304887p30357191.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Filesize of Images
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
FOP does not do any resampling of images for PDF or PostScript output.
Images are always embedded as is, i.e. in their original size.
You could work around that by embedding the image inside a small SVG
wrapper. But you need to apply a dummy filter to force Batik to do the
resampling. Something like:
<svg:filter id="MyFilter" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
<svg:feColorMatrix type="hueRotate" in="SourceGraphic" values="0"/>
</svg:filter>
No guarantees on the quality of such an approach.
On 25.11.2010 14:36:42 Peter Hancock wrote:
> On Thu, Nov 25, 2010 at 12:43 PM, JPee <pe...@softwareforen.de> wrote:
> Hi JPee,
>
> Have you tried adjusting the default resoulation settings in your
> fop.xconf file (assuming you are using one-
> http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-available)?
> Have a look at the source-resolution/target-resolution settings
> defined in http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-elements
>
> I am not sure that any resizing can be done based on image resolution
> but setting the size and target-resolution will alter the file size.
>
> Pete
>
> >
> > Hello community,
> >
> > we are using FOP for rendering some pdf files from data. The pdf includes
> > some images, which can be very big (up to 5mb). So the outcoming pdf with 3
> > images is about 15+ mb. Inside the pdf the images are shown in a lower
> > solution.
> >
> > Is there a way that the imagesize is also scaled down dependant on
> > imagesolution?
> >
> >
> > To prevent big pdfs our editors must customize the images at the moment. Is
> > this step really necessary?
> >
> > Thanks
> > JPee
> > --
> > View this message in context: http://old.nabble.com/Filesize-of-Images-tp30304887p30304887.html
> > Sent from the FOP - Users mailing list archive at Nabble.com.
> >
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Filesize of Images
Posted by Peter Hancock <pe...@gmail.com>.
On Thu, Nov 25, 2010 at 12:43 PM, JPee <pe...@softwareforen.de> wrote:
Hi JPee,
Have you tried adjusting the default resoulation settings in your
fop.xconf file (assuming you are using one-
http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-available)?
Have a look at the source-resolution/target-resolution settings
defined in http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-elements
I am not sure that any resizing can be done based on image resolution
but setting the size and target-resolution will alter the file size.
Pete
>
> Hello community,
>
> we are using FOP for rendering some pdf files from data. The pdf includes
> some images, which can be very big (up to 5mb). So the outcoming pdf with 3
> images is about 15+ mb. Inside the pdf the images are shown in a lower
> solution.
>
> Is there a way that the imagesize is also scaled down dependant on
> imagesolution?
>
>
> To prevent big pdfs our editors must customize the images at the moment. Is
> this step really necessary?
>
> Thanks
> JPee
> --
> View this message in context: http://old.nabble.com/Filesize-of-Images-tp30304887p30304887.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org