image_processing
image_processing copied to clipboard
Add `analyze` methods for getting metadata
Besides processing images it would be nice to analyze images as well to get metadata like: width, height and rotation. This is currently based on the ActiveStorage::Analyzer::ImageAnalyzer. I'd like to move that logic to ImageProcessing instead.
ActiveStorage currently logs if analyzing doesn't work, or if the image is invalid. Not sure if we should raise an error in analyze instead, or maybe keep the image validation out of analyze.
It would be nice to add fastimage as an analyzer as well.