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 <per...@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-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to