HTML + css into jpeg
lazarus / 39-Graphics
----------------------------------------------------------------------
EganSolo ยท 2015-04-22 20:34
My apologies if this has been asked before. I've spent two hours
looking for this to no avail:
Context: I need to create a Kindle version for a novel. The titles of
the chapters are set in a specific font. Not all Kindle devises are
able to load that font and reproduce them with the right fidelity. One
approach is to turn the chapters into images and load these instead.
I've worked out the details of how to replace the title with the image
and regenerate the mobi file (kindle format) what I am still missing
is the ability to turn an html with a css into a jpeg. I am thinking
of reproducing the html title using low level graphic methods drawn on
a canvas. But before I go down this path, I wanted to know if someone
else has solved for this problem before.
Thanks for any feedback you may have on this.