Jellby / PrincePDF

Prince PDF plugin for calibre
5 stars 1 forks source link

Images are too small #3

Closed ghost closed 6 years ago

ghost commented 6 years ago

Prince conversion gets images too small, as you can see from this screenshot:

prince_too_small

Instead, stock PDF conversion scales the images much better

stock_ok

This is a serious problem because some badly tailored ebooks put text into images which are unreadable if they are too small. Here is an example:

Prince (unreadable): passage_a_princeu

Stock PDF conversion (more readable): passage_a_stock

Unless I am missing some Prince option that manages this

Jellby commented 6 years ago

Prince should be honoring any CSS applied to the images or using their default resolution. You can try overriding the images resolution with http://www.princexml.com/doc/properties/prince-image-resolution/ or http://www.princexml.com/doc/command-line/#cmd-raster, or add a custom stylesheet that targets the trouble images and sets e.g. width:100%. If that doesn't work... try running Prince manually: if it has the same problem it's a Prince bug, not the plugin's.

ghost commented 6 years ago

Yeah setting prince-image-resolution solved the issue, thanks!

Jellby commented 6 years ago

You can also add a --css-dpi command-line argument to your settings or to the specific conversion.