Skip to content

Instantly share code, notes, and snippets.

@d11wtq
Created July 8, 2011 14:44
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 d11wtq/1071993 to your computer and use it in GitHub Desktop.
Save d11wtq/1071993 to your computer and use it in GitHub Desktop.
Quick and dirty example of using Devil to convert ICO to PNG
ico_file = "some-file.ico"
png_file = "output.png"
Devil.load(ico_file) do |img|
img.resize(16, 16).save(png_file)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment