My goal is to render text into an image. I'd like the layout and size to be static and the font size to adjust to how much text is to be rendered. My tool of choice is wkhtmltoimage 0.12.5, the idea being that this way I can make use of the many css styling options. I am on a Mac btw.
Here is my Test.html
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="flowtype.js"></script>
</head>
<body>
<div>Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test </div>
<script type="text/javascript">
$('body').flowtype();
</script>
</body>
</html>
Flowtype: http://simplefocus.com/flowtype/
That works in the browser, but not when rendering through wkhtmltoimage.
My commandline call is
wkhtmltoimage --width 300 --height 100 Test.html Test.png
The text appears ridiculously small. Something wrong with the window size?
I'd also be happy to use wkhtmltopdf and render to a pdf, but I couldn't get it to work there either.
Ideas?