Skip to content

Commit ce20b4e

Browse files
committed
bugfix
1 parent 0553bef commit ce20b4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

filter/resize-byte-image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func ResizeByteImageRgb(input *[]byte, oldWidth, oldHeight, startX, startY, newW
1818
iRef := *input
1919
oRef := *output
2020

21-
if len(iRef) != int(oldHeight*oldHeight*3) || len(oRef) != int(newWidth*newHeight*3) {
21+
if len(iRef) != int(oldWidth*oldHeight*3) || len(oRef) != int(newWidth*newHeight*3) {
2222
return errors.New("input or output array do not have the right dimensions (ResizeByte)")
2323
}
2424

0 commit comments

Comments
 (0)