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
How do I know the size of a resized image? #1080
Comments
You can inject the |
@robfrawley, thank you for your answer, but I see that this method is private. But also I have the question: |
My bad; I forgot that method wasn't public. Regarding your question, yes: calling You can alternatively inject the |
@robfrawley thank you, I'll give it a try! |
I'm using stream loader to load image from Amazon S3 bucket, and AWS S3 cache adapter to upload resized image to another bucket.
I'm also using relative resize by width.
How do I know dimensions of the resized image?
The possible solution is to download original image from bucket, use local loader to load image, save it's dimensions and aspect ratio, and calculate new dimensions after resize.
But I would like to get this dimensions without repeating calculations, which already had been made by this bundle.
Is it possible?
The text was updated successfully, but these errors were encountered: