Skip to content

Commit

Permalink
Avoid attempting to call non-existing rot0 operation
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Jun 15, 2024
1 parent 9d72e46 commit 619c791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/image_processing/vips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 619c791

Please sign in to comment.