sdsykes/fastimage_resize — pull request #4 by dmcinnes (2012-05-11 21:52:42+00:00)
Title: Proportionate Scaling

Hi sdsykes,

I've made a small modification to this gem to allow proportionate scaling if either the width or height parameter is set to zero.

So with a 360x400 image:
```ruby
FastImage.resize("foo.jpg", 0, 100)
```
will generate an image with a height of 100 and width of 90 -- it keeps the same aspect ratio of the original image.

I considered changing resize's method signature to move the width and height parameters into the options hash (since they're optional basically) but I didn't want to change the API so drastically :)

I've added tests as well.

Thanks!
Doug