From 619c791bc7f3c7d0f2a3229124c3e5afb3202de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohni=C4=87?= Date: Sat, 15 Jun 2024 23:13:37 +0200 Subject: [PATCH] Avoid attempting to call non-existing `rot0` operation --- lib/image_processing/vips.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/image_processing/vips.rb b/lib/image_processing/vips.rb index 474de2c..90e7109 100644 --- a/lib/image_processing/vips.rb +++ b/lib/image_processing/vips.rb @@ -109,7 +109,7 @@ def resize_to_cover(width, height, **options) # Rotates the image by an arbitrary angle. def rotate(degrees, **options) - if ([0, 90, 180, 270].include?(degrees) && options.empty?) + if ([90, 180, 270].include?(degrees) && options.empty?) rot_command = "rot#{degrees}".to_sym image.public_send rot_command else