Skip to content
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

Add resizeLetterbox method #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jordanlev
Copy link

Combines the behavior of resizeFill with resizeFit (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)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant