I'm trying to render a HTML page as a PNG with transparency enabled.
This is the command that generates the images:
/usr/local/bin/wkhtmltoimage-amd64 --transparent --crop-h 300 --crop-w 210 temporary.html image.png
I have also tried enabling the format parameter.
/usr/local/bin/wkhtmltoimage-amd64 --transparent --format png --crop-h 300 --crop-w 210 temporary.html image.png
But the images are always showing colored noise like this. I am using the latest binaries from http://wkhtmltopdf.org/downloads.html.
Have you tried to increase the size of the image? I had such problem too with 100px images, but when I made width 500px I got no noise.
(Yes, I know that this is not a complete solution but perhaps it will help someone)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With