I am not sure how to go about doing this. I would like to get a file
given an URL. The I would like to mess around with that file, but I am
having a hard time actually initializing the Magick::Image object.
I read the image using open-uri like so:
open(url) do |f|
image = from_blob(f.read)
However, it turns out that f is of type “Tempfile” and calling read
returns “” and read(int) returns nil. So I don’t know where to go from
here. How can this be done?