FOP does not implicitly assume that the pixel size is 72 dpi. FOP uses the pixel size (resolution) specified in the image. Since you are using JPEG and the resolution may be specified in the EXIF segment make sure you use trunk, not 1.1. If the image has no resolution (or the resolution is in the EXIF segment and you are using 1.1) then FOP defaults to 72dpi. You can change that specifying a different value in the <source-resolution /> element in the conf file.
On Tue, Jun 17, 2014 at 9:46 AM, Dridi Seifeddine <sdr...@iptech-group.com> wrote: > Hello, > > > > >> Is that what you were trying to achieve? > > > > No. I want to leave the image as it is and prevent FOP from scaling up or > down. Using this: > > <fo:external-graphic src="300dpi.jpg" width=”1919px” height=”1272px” > content-width="scale-to-fit" content-height="scale-to-fit"/> > > > > FOP implicitly assumes that the image’s DPI is 72, so when calculating the > mpt size we get (1919000, 1272000), and the image is rendered with no > scaling applied. > > > > My question is: Is there any way to override the image’s DPI in FOP using > the config? > > > > Thanks > > > > Seifeddine > > > > > > >