Simple Ruby script for converting images to HTML using RMagick (don't use it for anything other than benchmarks!)
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Copyright (C) 2011 by Maciej Małecki MIT License (see LICENSE file)

img2html is simple Ruby script for converting images to HTML using RMagick. It's been created just for fun and to see if modern browsers can handle maaaaaaany divs.

Usage: ruby img2html.rb path-to-image

HTML will be written to stdout, so you may want to redirect it to some file to avoid flooding your terminal.

When -c (ruby img2html.rb path-to-image -c) is supplied after file path, "compression" is enabled (few pixels with same color in a row are rendered with width).