Skip to content

Commit

Permalink
Merge pull request #7 from julyskies/develop
Browse files Browse the repository at this point in the history
Fix issue with image rotation (90 & 270 degrees)
  • Loading branch information
peterdee authored Feb 11, 2023
2 parents d6bcf5d + 52a3039 commit 6a8bbc2
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 6a8bbc2

Please sign in to comment.