Created
February 17, 2010 00:02
-
-
Save leedo/306105 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
args.each { |arg| | |
img | |
if arg.match(/^[a-f0-9]+$/) | |
img = IMService.get_ilist_from_hash(arg).first | |
elsif arg.match(/^http:\/\/.*\.(jpe?g|gif|png)$/i) | |
img = self.magick_wget(arg).first | |
end | |
if img | |
width = img.base_columns if img.base_columns > width | |
height = img.base_rows if img.base_rows > height | |
ilist << img | |
end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment