ascii转换html,Image to HTML/Ascii converter

Coloroutput is optimized for low output-size by saving

palette-info in CSS style-sheet. So tags have less

info, saving lots of byte per pixel in output. Eg: Saving

10Kbyte per character less in the 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 for

the ImageCopyResampleBicubic() function which I found at php.net.

Even more byte saving: Only outputs 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 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 for the ideas.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值