Skip to content

Commit 3e6c47a

Browse files
esimovesimov
esimov
authored andcommitted
fix: panic on grayscale image #6
1 parent d3c03d1 commit 3e6c47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackblur.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func toNRGBA(img image.Image) *image.NRGBA {
423423
dst.Pix[di+2] = c
424424
dst.Pix[di+3] = 0xff
425425
di += 4
426-
si += 2
426+
si++
427427
}
428428
}
429429
default:

0 commit comments

Comments
 (0)