go build && ./ip
panic: runtime error: index out of range [10654] with length 10584
goroutine 21 [running]:
github.com/disintegration/imaging.(*scanner).scan(0xc000116040, 0x11d, 0x0, 0x11e, 0x93, {0xc000180498, 0x0?, 0x290e8})
/Users/diallo/go/pkg/mod/github.com/disintegration/imaging@v1.6.2/scanner.go:202 +0x8f0
github.com/disintegration/imaging.Rotate90.func1(0x0?)
/Users/diallo/go/pkg/mod/github.com/disintegration/imaging@v1.6.2/transform.go:90 +0x6c
github.com/disintegration/imaging.parallel.func1()
/Users/diallo/go/pkg/mod/github.com/disintegration/imaging@v1.6.2/utils.go:33 +0x63
created by github.com/disintegration/imaging.parallel
/Users/diallo/go/pkg/mod/github.com/disintegration/imaging@v1.6.2/utils.go:31 +0xd6
There seems to be a problem when height is an odd number.
The following code
result
There seems to be a problem when height is an odd number.