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)