Infinity when no resolution or resolution 0.0 informed by the image file #45

Open
bf4 opened this Issue Jul 24, 2014 · 0 comments

Projects

None yet

1 participant

@bf4
Member
bf4 commented Jul 24, 2014

Issue by daniel2d2art
Sunday Mar 31, 2013 at 06:40 GMT
Originally opened as #73


https://github.com/rmagick/rmagick/blob/master/lib/RMagick.rb#L985
https://github.com/rmagick/rmagick/blob/master/lib/RMagick.rb#L986

Previous produces Infinity result if image file don't informs x_resolution or y_resolution. This produces a float Inf out of range of integer when resize(width, height) is called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment