- Issue created by @Zigazou
- last update
over 1 year ago 1 pass
Before converting a PDF to JPG/PNG, ImageMagick must render it.
The rendering, by default, is done at 72 DPI. While this is acceptable for a thumbnail, this can lead to a poor quality preview (even with quality set at 100%).
The attached patch allows to globally specify the resolution used for rendering (aka the "-density" parameter of ImageMagick). It defaults to 72 DPI in order to have no impact on existing configurations and can be set up to 1200 DPI (300 DPI works very well).
A "Resolution used for rendering" field is added to the admin/config/media/pdfpreview page.
An integer field named "density" is added to the schema.
Active
2.0
Code