file_colorhtml_save - Saves the image as coloured html text
<Save>/HTML with text coloured to match image/html
Saves the image as coloured html text.
This file save filter writes a large regular grid filled with coloured characters. The characters can be stored in file and don't have anything to do with the image. The colour of each character, though, is taken from the image to save.
This creates some kind of mosaic effect with characters. The pictures should be limited to about 120x120 pixels, since most browsers do not view larger images. The aspect ratio depends on the fixed-width font the browser is using, and is usually around 2:1 (so you should squash your image accordingly).
The FONT tags can be saved either HTML-4.0 compliant (
font color="#rrggbb") or in a proprietary format most browsers support (
To save even more space you can leave out the closing tag (
but this will potentially leave thousands of font elements open in the browser,
and will disturb the current font colour.
[PF_RADIO, "character_source", "Where to take characters from", 0, [sourcecode => 0, textfile => 1, textblock => 2]], [PF_FILE, "characters", "Filename to read or characters to use", ""], [PF_STRING, "font_size", "HTML font size (1..7 or -7 .. +7)", 2,], [PF_BOOL, "use_css", "Use CSS", 1], [PF_BOOL, "compatible", "HTML-4.0 compliance", 1], [PF_BOOL, "closetag", "Add closing tag", 1],
Marc Lehmann <firstname.lastname@example.org>
Copyright Marc Lehmann. CSS additions (c) Carol Spears.
Distributed under the same terms as Gimp-Perl.