Question

I have a Rails app which uses wkhtmltoimage to render an image. The font used in the image is Lucida Grande, included via inline data-uris. On my local Mac everything works just fine, but on the remote server (Ubuntu 12.10) the font just looks weird. Both are using wkhtmltoimage 0.10.0 rc2.

The left one is generated on my Mac, the right one on the Ubuntu server.

Mac enter image description here

Any ideas whats going on?

Was it helpful?

Solution

Unfortunately I haven't found a solution for this problem. But today I was lucky enough to find a workaround! :)

After reading Thomas Fuchs' Embedding Canvas and SVG charts in emails I went the radical way and completely replaced wkhtmltoimage with PhantomJS. I also used his gist to install some dependencies. And here are the results:

wkhtmltoimage local & remote:

enter image description here enter image description here

PhantomJS local & remote:

enter image description here enter image description here

Though there are still small differences, PhantomJS does its job quite good! So I will use this for now, and close this question :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top