Created
July 25, 2016 14:50
-
-
Save hrumhrumble/a46c865dd01284777930562f667ed43a to your computer and use it in GitHub Desktop.
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
def png | |
img = Magick::Image::from_blob(@doc.to_xml) | |
return img[0].to_blob { | |
self.format = 'PNG' | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment