Skip to content

Instantly share code, notes, and snippets.

@ruanwz
Created February 17, 2011 08:56
Show Gist options
  • Save ruanwz/831332 to your computer and use it in GitHub Desktop.
Save ruanwz/831332 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'mini_magick'
image = MiniMagick::Image.open("abc.png")
image.colorspace('Gray')
image.colors(16)
image.write "bcd.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment