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?
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...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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?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...