img2base64, a ruby image to base64 converter

Intro

An image to base64 conversion script in ruby.

Changelog

Last version is v0.1

  • v0.1 : initial version

Demo here.

How to use

You can run the script (with ruby / gems / sinatra installed) and point your browser to http://localhost:4567/<image_url>. Thou shalt see the result. You can curl the script.

Source

The github repository isĀ here.

License

This script is licensed under the terms of the WTF Public License (see here and here) :

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004 

 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> 

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as
 long as the name is changed. 

 DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 0. You just DO WHAT THE FUCK YOU WANT TO.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>