wicked_pdf
wicked_pdf copied to clipboard
Image blurring in PDF
wicked_pdf seems to be blurring my image... any ideas why? I am specifying the absolute height and width of the image, so it doesn't seem to be that the size is being distorted.
in HTML
in PDF
You may want to try disabling smart-shrink (disable_smart_shrinking: true
) if you've got it enabled. That's been a source of weird display issues for me.
Otherwise, I've had issues like this with some older versions of wkhtmltopdf
. What version are you using?
@millie Did the above suggestions help?
@unixmonkey unfortunately not.
I am using a recent version of wkhtmltopdf, so I don't think that's the culprit. I tried both disabling and not disabling smart-shrink, and that didn't work.
@millie @unixmonkey Have anyone found a solution for that ?
You could also try messing with the zoom
and dpi
options, and maybe making the paper size much larger than the HTML size, to prevent shrinkage, and see if that helps.
I just ran a google search for wkhtmltopdf blurry
and came up with a number of dead end reports, some seem to be font-specific.
I ended up solving it with zoom and dpi as @unixmonkey suggests.