DEV Community

Discussion on: Images not showing up using PDFKit and WkHTMLtoPDF

Collapse
 
marcusatlocalhost profile image
Marcus

I came to the same conclusion when I tried to load images with weird url encoding or query strings (google filestorage) or images that needed to be accessed with auth headers.
Downloading the file to the server and base64 encode it was the way to go.

Has anybody successfully used the --image-quality switch in wkhtmltopdf?

Collapse
 
marcusatlocalhost profile image
Marcus

I finally found out, that in my specific case, images were missing dpi information and wkhtmltopdf seems to just skipped those and didn't optimize them: github.com/wkhtmltopdf/wkhtmltopdf...