I am creating a wordcloud by http://timdream.org/wordcloud2.js
After converting the rendered html to png with wkhtmltoimage, the image losts its word rotations
Browser : MozillaFirefox and IE
The same things works fine on google chrome
HTML before conversion
Image after conversion
Try using -webkit-transform: rotate(2deg)
along with -webkit-backface-visibility: hidden
as per this answer
The problem here is the html is generated by external js and every css is inline. So it is not possible to modify css attributes or add new attributes.
Also webkit prefix works for chrome and the problem is in firefox.
So file an issue with the external JS library or modify it yourself.
Most helpful comment
Try using
-webkit-transform: rotate(2deg)
along with-webkit-backface-visibility: hidden
as per this answer