GraphInside
By Swobodinhttp://swobodin.fedora-tn.org
A Perl script to integrate graphics into a HTML file. I coded it in order to send a one-full-piece-html document to some friends who don't know how to use compress/uncompress (they are not programmers after all).
Requirements
- Perl (http://perl.org).
- Perl Libraries:
- HTML::TokeParser, Comes with HTML::Parser package (http://search.cpan.org/search?query=HTML%3A%3AParser).
- MIME::Base64 (http://search.cpan.org/search?query=MIME%3A%3ABase64).
Usage
./GraphInside.pl input_file.html output_file.htmlFeatures
- Handles HTML and XHTML documents.
- Recognizes GIF, PNG and JPEG graphics.
- Parses full path image files.
- Compatible with standards (depends on the original document).
Browser Compatibility
- Netscape and other Gecko browsers (Mozilla, Firefox, Epiphany, Galeon).
- Nvu (can load grapics!).
- Konqueror.
- w3m (Yeah! The very powerful text based browser; set your
screen to
vga 0x317 mode and it will load images
).
- Opera (Doesn't support encoded GIF).
- Amaya.
- Dillo.
- Other text based browsers (lynx, elinks, ...).
- Some people told me that Exploder fails to display images.
I don't know what program they are talking about
.
Bugs
- The script doesn't integrate remote images.
- JavaScript, CSS, HTML frames and other media cannot be joined.
- Try to not write a picture's filename, because the script will convert it too!