Carrierwave has an RMagick module that offers a handy
manipulate! method that takes a block where you can modify the image, and then it saves the changes to the image.
But sometimes you only want to interrogate the image, and there’s no need to save any changes.
After spending probably 30-45 minutes trying to figure out how to read an image that may not necessarily exist on your local disk, the simplest solution we found was to call
uploader#read to get the contents of the file as a string, and then pass that into
About the AuthorMore Content by Mark Rushakoff