close
The Wayback Machine - https://web.archive.org/web/20200905144507/https://github.com/kosinix/grafika/pull/9
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
from
Open

Conversation

@jordanlev
Copy link

jordanlev commented May 7, 2017

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)!

Jordan Lev added 2 commits May 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.