1 parent 0553bef commit ce20b4eCopy full SHA for ce20b4e
1 file changed
filter/resize-byte-image.go
@@ -18,7 +18,7 @@ func ResizeByteImageRgb(input *[]byte, oldWidth, oldHeight, startX, startY, newW
18
iRef := *input
19
oRef := *output
20
21
- if len(iRef) != int(oldHeight*oldHeight*3) || len(oRef) != int(newWidth*newHeight*3) {
+ if len(iRef) != int(oldWidth*oldHeight*3) || len(oRef) != int(newWidth*newHeight*3) {
22
return errors.New("input or output array do not have the right dimensions (ResizeByte)")
23
}
24
0 commit comments