imageResizeTargetWidth makes smaller image larger to hit width. Attempting to only make large images smaller. #11603
Unanswered
ralphmorris
asked this question in
Help
Replies: 1 comment
-
|
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Form builder
Package Version
3.0-stable
How can we help you?
Hey,
I have the following code that is attempting to upload an image and resize it to make it smaller to only the required width and keeping the height dynamic, if the image is unnecessarily large.
However, it also seems to make smaller images larger to hit the 1288px width. In previous projects I've been able to use intervention image to reduce an image by only it's width but keeping the aspect ratio. Is there a way to do this in Filament? I think it would be a fairly common use case?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions