image_processing icon indicating copy to clipboard operation
image_processing copied to clipboard

Add `analyze` methods for getting metadata

Open p8 opened this issue 2 years ago • 2 comments

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.

p8 avatar Sep 21 '23 20:09 p8

It would be nice to add fastimage as an analyzer as well.

p8 avatar Sep 21 '23 20:09 p8