![]() |
HTML to image and CHM to images and CHM to LRF
5 Attachment(s)
Convert HTML to image with mozilla rendering engine.
The best rendering application of HTML is web browser such as FireFox(Mozilla), but full function web browser is too large for some devices such as ebook reader. One of the solution is to pre-render HTML on PC with web browser and send the resulting image to devices. Only Linux is supported now! Usage: xulrunner --app html2img-xulrunner/application.ini [-zoom <zoom factor>] [-width <width>] <input html url> <output png file> mb_html.tar.gz and mb.png is example html and result. CHM can be converted to images with a python script chmtoimg.py attached with the post. chmtoimg.py <chm file> A new version of pi can be used to convert from resulting images to LRF file or a set of appropriate images. gzip -d gj.conf.gz, edit gj.conf, change input to generated imgs of previous step cd <pi directory> . env.sh pi_format.py gj.conf |
| All times are GMT -4. The time now is 11:15 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.