Created
July 8, 2011 14:44
-
-
Save d11wtq/1071993 to your computer and use it in GitHub Desktop.
Quick and dirty example of using Devil to convert ICO to PNG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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