Glide presets #5937
stephenmeehanuk
started this conversation in
General
Glide presets
#5937
Replies: 3 comments
-
So you have something that works? If it works, it's the right way. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you do See https://glide.thephpleague.com/2.0/api/size/#fit-fit for details of the different options and what to expect. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Good stuff. Just wanted to make sure. It's working, as expected. |
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.
-
Hi
Quick one, I've been using Glide presets (super useful). Most of the time I use presets to crop an image, this would give me a square crop
When I want to just change the width and make sure the height follows automatically, I've often used this
I'm sure this used to work, however I've noticed that this now generates an image with a height of 9999!
If I remove
'h' => 9999
so it looks like thisGlide generates an image
1024
wide and the height appears to be in proportion - which is what I wantI'm just wondering, is this the right way to do it? Or is there
'h' => auto,
attribute or similar I should be using?Beta Was this translation helpful? Give feedback.
All reactions