Skip to content

Commit

Permalink
fix: panic on grayscale image #6
Browse files Browse the repository at this point in the history
  • Loading branch information
esimov authored and esimov committed Nov 12, 2023
1 parent d3c03d1 commit 3e6c47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stackblur.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func toNRGBA(img image.Image) *image.NRGBA {
dst.Pix[di+2] = c
dst.Pix[di+3] = 0xff
di += 4
si += 2
si++
}
}
default:
Expand Down

0 comments on commit 3e6c47a

Please sign in to comment.