Forum Bugs

Minimum image resolution in prince?

nateabbott
I'm seeing some very weird behavior in one of my documents. Basically I've created a set of identical images, except that I've reduced the pixel dimensions of the photos so that they will exactly fill a page of my pdf at a given image resolution. I'm setting the resolution of each image via prince-image-resolution within the <img> tag on each photo. This works perfectly for all images greater than 95dpi. So for example, my page size is 10"x13", then a photo that is 1000x1300 pixels set with prince-image-resolution will exactly fill the pdf page, which is what one would expect and is what is happening. I've tested this progressively from 100dpi through 250dpi and it works perfectly.

However, when you set the image resolution below 95 (i.e. same page size in inches as before, with an image that's 750x975, with prince-image-resolution set at 75dpi), the image does not expand to fill the whole page. It's as if the prince-image-resolution is getting over-ridden by something and setting it at 95dpi.

Does this make sense? I can email a test file that demonstrates this...I'm using Prince 7.0. Thanks!
mikeday
Not sure what's happening here, a test file would be helpful if you could email it to me (mikeday@yeslogic.com).
nateabbott
Thanks, just shot you an email.
mikeday
The issue is that DPI values used with the prince-image-resolution property must be integers, and will be ignored if they contain a decimal point.
nateabbott
Thanks -- works perfectly!