Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wkhtmltoimage CSS3 gradient rendering in Snapshots

I am using wkhtmltoimage to render a snapshot for my website which contains a background gradient but it doesn't show up in the generated snapshot.

I tried using on Ubuntu and Windows but am not able to find the error.

I even tried using the simplest command without any parameters.

wkhtmltoimage.exe <website_link> <image_name>

My original page looks same in all major browsers Here is the screen printenter image description here

And here is the one generated by wkhtmltoimage enter image description here

I am not sure what exactly is the problem. I tried looking at their existing issues as well but couldn't find anything.

like image 387
Kshitiz Avatar asked Oct 05 '22 14:10

Kshitiz


1 Answers

As as 0.12.2.1 of wkhtmltopdf the gradient css - either old or new doesn't work.

like image 169
Interlated Avatar answered Oct 10 '22 14:10

Interlated