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
Describe the bug Vips::Image.thumbnail and Vips::Image.thumbnail_image resize to height instead of width when no hash options are present. If a :height is also supplied, they will resize to the expected width
To Reproduce
img=Vips::Image.new_from_file"file.pdf"puts"#{img.width}, #{img.height}"# 612, 859thumb=img.thumbnail_image200puts"#{thumb.width}, #{thumb.height}"# 142, 200thumb=img.thumbnail_image200,:height=>1000puts"#{thumb.width}, #{thumb.height}"# 200, 281thumb=Vips::Image.thumbnail"file.pdf",200puts"#{thumb.width}, #{thumb.height}"# 143, 200 — Different height from above for some reasonthumb=Vips::Image.thumbnail"file.pdf",200,:height=>1000puts"#{thumb.width}, #{thumb.height}"# 200, 281
Expected behavior
Should resize to specified width as described
Actual behavior
Resizes to a height of the specified width