CROP_MAX manipulation #191
Unanswered
dinandmentink
asked this question in
Q&A
Replies: 0 comments
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.
-
Thanks for this package, I use it a lot, mainly as part of spatie's medialibrary.
I have a case where none of the
Manipulations::*
seem to work. I have some image (registered medialibrary collection) which I need to crop to a certain aspect ratio, let's say1920x1080
. However if the image is smaller than this I do want it cropped with the 16x9 aspect ratio but not scaled UP. Is there a way to get this done?A
Manipulations::FIT_CROP_MAX
would be really helpful: "Resizes the image up to fill the width and height boundaries and crops any excess image data. If the image is smaller it will be cropped to the aspect ratio but will not increase the size of the image if it is smaller than the output size."Beta Was this translation helpful? Give feedback.
All reactions