From 52a30396da8411d83a06e37eab7eee1ec47fdd6c Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 11 Feb 2023 23:23:50 +0300 Subject: [PATCH] Fix issue with image rotation (90 & 270 degrees) --- filters/rotate-fixed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters/rotate-fixed.go b/filters/rotate-fixed.go index 3e33c37..ef2353d 100644 --- a/filters/rotate-fixed.go +++ b/filters/rotate-fixed.go @@ -20,7 +20,7 @@ func RotateFixed(file io.Reader, angle uint) (io.Reader, string, error) { } width, height := img.Rect.Max.X, img.Rect.Max.Y gridWidth, gridHeight := width, height - if angle == constants.ROTATE_FIXED_180 { + if angle != constants.ROTATE_FIXED_180 { gridWidth, gridHeight = height, width } destination := make([][]color.Color, gridWidth)