Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Combines the behavior of
resizeFill
withresizeFit
(aspect ratio is preserved, but the extra space is filled in with a solid color so the resulting image is the exact desired dimensions).I did not add anything to the docs yet because I'm not sure how that is built/structured (looks like a compilation step of some kind is involved?). Also, I am not an expert with GD or ImageMagick -- I only composed some existing functions to make this work, so it's possible I am doing something inefficient or bad with memory or maybe it messes up animated gifs?
btw, thanks for this great library -- it's exactly what I was looking for (I especially like the emphasis on resizing, because that's 99% of what I do with image manipulation)!