Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Reply
 
Thread Tools Search this Thread
Old 12-14-2008, 08:58 AM   #1
caritas
Enthusiast
caritas doesn't littercaritas doesn't litter
 
Posts: 26
Karma: 161
Join Date: Feb 2008
Device: Sony PRS505
HTML to image and CHM to images and CHM to LRF

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
Attached Thumbnails
Click image for larger version

Name:	mb.png
Views:	495
Size:	554.7 KB
ID:	19195  
Attached Files
File Type: gz html2img-xulrunner.tar.gz (11.0 KB, 459 views)
File Type: gz mb_html.tar.gz (57.2 KB, 410 views)
File Type: gz gj.conf.gz (189 Bytes, 366 views)
File Type: gz pi_0.9pre.tar.gz (686.3 KB, 382 views)

Last edited by caritas; 12-14-2008 at 09:01 AM.
caritas is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobipocket Creator/Reader HTML CHM tuxianer Software 6 03-21-2010 10:21 AM
CHM to Html joedevon Workshop 10 07-11-2009 08:24 PM
CHM to single html file...suggestions? drogo Workshop 2 11-25-2008 01:35 PM
Anyone else want chm to lrf converter? buster Sony Reader 10 02-09-2008 06:07 PM
Converting CHM to Html Tahras Rastah Workshop 0 01-16-2008 06:11 PM


All times are GMT -4. The time now is 09:34 AM.


MobileRead.com is a privately owned, operated and funded community.