Coloroutput is optimized for low output-size by saving
palette-info in CSS style-sheet. So <FONT> tags have less
info, saving lots of byte per pixel in output. Eg: Saving
10Kbyte per character less in the <FONT> tag, if the picture is
100 px wide and 100px high.
Bicubic resizing, better output when the image is resized.
(It's resized if your picture is larger than 150x150) Thanks to <rze_at_counter-strike.net> for
the ImageCopyResampleBicubic() function which I found at php.net.
Even more byte saving: Only outputs <FONT> tags when color changes from last pixel. This is of course horizontally.
ASCII engine needs grayscale info, grayscaleconverting is done with red color making 30% brightness, green color 59% brightness and blue color 11%. Which makes
the converting much more accurate, than just doing rgb / 3.
A new feature added 5. Aug 2002: Saving even more bytes by setting the default text color to the most "switched to" color. Saving us from a bunch of <FONT> tags. Thanks to maddox for this idea.
Some small changes 27. March of 2004: Uses id, instead of class, to save some more space per pixel, added support for 4pt font-size and now
large truecolor-images are remapped more correct, so colors will be better than before.
Additions came 1st August of 2005: CSS is optimized again. Uses a-z and then a0-z9, to use as small space as possible, sorted by most-switched-to
colors, saving a lot of kilobytes. And when the next character is a whitespace, it won't switch colors, also saving a lot of bytes on dark images. Also added an "Supersmall" option, which should speak for itself. Thanks to Mark van 't Zet <m.vantzet_(at)__webarchitects.nl> for the ideas.