Skip to content

Instantly share code, notes, and snippets.

@leedo
Created February 17, 2010 00:02
Show Gist options
  • Save leedo/306105 to your computer and use it in GitHub Desktop.
Save leedo/306105 to your computer and use it in GitHub Desktop.
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