Please return self instead of Qnil when the image did not meet the qualifier. · Issue #130 · rmagick-temp/rmagick · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I rotate an image with a qualifier and it was not qualified, rotate method returns Qnil. However, this breaks method chaining like this:
image.rotate(90, '>'),resize_to_fit(96,128) # causes 'undefined method'
image.minify.rotate(90, '>') # if nil returned, all previous operations are lost
Why does it simply return self instead of nil? As far as I guess, no one needs to know whether it was rotated or not.
The text was updated successfully, but these errors were encountered:
Hi,
When I rotate an image with a qualifier and it was not qualified, rotate method returns Qnil. However, this breaks method chaining like this:
image.rotate(90, '>'),resize_to_fit(96,128) # causes 'undefined method'
image.minify.rotate(90, '>') # if nil returned, all previous operations are lost
Why does it simply return self instead of nil? As far as I guess, no one needs to know whether it was rotated or not.
The text was updated successfully, but these errors were encountered: