Skip to content

Commit

Permalink
Fix issue with image rotation (90 & 270 degrees)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdee committed Feb 11, 2023
1 parent d6bcf5d commit 52a3039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters/rotate-fixed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 52a3039

Please sign in to comment.