I have also scripts without jquery like:
But as I said, no effect on the pdf or the png (because I have tried both wkhtmltoimage and wkhtmltopdf).
Your command uses quotes incorrectly; try this:
About the question
"do you know any way of generate a .png with less size? cause every png I generate weights 9MB"
I had the same problem with large PNG files generated with wkhtmltoimage and managed to fix this with adding the flag
--quality 0, that shrunk the image from 3.5MB to just 38KB. Note that PNG is doing lossless compression so the image quality won't change only will be shrunk in size. Be careful when using
--quality flag when you output to jpg format as this can blur the image is you set it too low.
©2020 All rights reserved.