Fix bug when width/height are zero #8

Merged
merged 1 commit into from May 17, 2011

Projects

None yet

2 participants

Contributor

The docs say that just one of width or height need to be specified to resize, but the end result is not as expected. When presented with a 1024x920 image, for example, and a resize for height 90, the image gets resized to 90x81. One would certainly expect to get a 100x90 image, instead.

This patch fixes that.

@rsms rsms merged commit bec4953 into rsms:master May 17, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment