Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wkhtmltoimage rendering colored noise for transparent PNGs

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.

enter image description here

like image 394
Bornfree Avatar asked May 20 '15 15:05

Bornfree


1 Answers

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)

like image 78
Eugene Avatar answered Nov 08 '22 14:11

Eugene