Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add analyze methods for getting metadata #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

p8
Copy link
Contributor

@p8 p8 commented Sep 21, 2023

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
Copy link
Contributor Author

p8 commented Sep 21, 2023

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

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant