Reply to Re: convert image to text

Your name:

Reply:


Posted by Ben Bacarisse on 02/15/06 19:29

On Wed, 15 Feb 2006 06:43:33 -0800, Socrates wrote:
> The image on our website is 500 x 375 pixels @ 145 kb. The same image
> converted to a string of characters (representing paletted colours between
> 0 -256) can be saved as a zipped text file of less than 2 kb with no loss
> in quality when the file is converted back to an image.

You are selling yourself short! Use a better compressor than zip.
Whatever magic encoding you use (and I use the word "magic" deliberately)
produces lots of repeated strings so the bzip2 utility can take your 110K
text encoded image and compress it to just 228 bytes (yes 228). Imagine
that, a 183K palleted image compressed to 228 bytes entirely without loss
of data. [Actually, zip compressed it to 892 so I don't know where your
2K comed from -- maybe you thought <1K would look suspicious?]

When is the CACM paper comming out? ;-)

--
Ben.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация