Skip to content

Instantly share code, notes, and snippets.

@kejadlen
Created June 28, 2011 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kejadlen/1050455 to your computer and use it in GitHub Desktop.
Save kejadlen/1050455 to your computer and use it in GitHub Desktop.
require 'chunky_png'
image = ChunkyPNG::Image.from_file('input.png')
# Put your logic to pixelize `image` here.
image.save('output.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment