gemhome/rmagick — pull request #100 by u338steven (2014-08-16 00:02:52+00:00)
Title: Fixed: test_resample(Image3_UT) in Image3.rb fails #74

From ImageMagick 6.7.9-0:

> Initialize image->x_resolution and y_resolution to 0 in image.c (previously they were initialized to DefaultResolution, which is 72.0).

[ImageMagick: Changelog](http://www.imagemagick.org/script/changelog.php)

Therefore, width and height will become Infinity.

```
# Corresponds to ImageMagick's -resample option
def resample(x_res=72.0, y_res=nil)
y_res ||= x_res
width = x_res * columns / x_resolution + 0.5 # => Infinity
height = y_res * rows / y_resolution + 0.5 # => Infinity
self.x_resolution = x_res
self.y_resolution = y_res
resize(width, height) # <#>.
end
```