Most documentation for Rmagick that I found shows you how to read images into an Rmagick object from a file path. However, I have a situation where I had a file stored in a MongoDB database and needed to process it with Rmagick.
The from_blob
method did this for me. In a single line, I was able to read the file from the database into a buffer and pass that directly to Rmagick! :)