Skip to content

Add resizeLetterbox method#9

Open
jordanlev wants to merge 2 commits intokosinix:masterfrom
jordanlev:master
Open

Add resizeLetterbox method#9
jordanlev wants to merge 2 commits intokosinix:masterfrom
jordanlev:master

Conversation

@jordanlev
Copy link
Copy Markdown

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