Skip to content

Instantly share code, notes, and snippets.

@rupakg
Created March 11, 2009 01:12
Show Gist options
  • Save rupakg/77237 to your computer and use it in GitHub Desktop.
Save rupakg/77237 to your computer and use it in GitHub Desktop.
convert text to image
require "mini_magick"
image = MiniMagick::Image.from_file("c:\\test.jpg")
image.resize "100x100"
image.write("c:\\output.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment