-
Notifications
You must be signed in to change notification settings - Fork 310
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
Fill color on resizeToBestFit #165
Comments
Could you provide any thoughts about this feature? |
I am kinda trying to scale the image to fit specific dimensions (method resizeToBestFit) and fill the rest / unused space within the giver dimensions with a color with the picture centered. Hopefully with the bool $allow_enlargment still in play. Is there a way to do this within this library? I kinda tried a lot of combos with the given resize functions and crop, but never managed to center it ;{ |
I'm also very interested in this option. The input is scaled to 500 x 250 (so it will fit completely inside the output image without cropping). I would call it repaging or non-destructive cropping. I just can't figure out the math of the ratios :( |
A PR for this is welcome. |
Hi,
Is this function planned?
It would be very interesting.
The text was updated successfully, but these errors were encountered: