Skip to content

Commit

Permalink
Use RGBA in grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jul 2, 2024
1 parent 9a00b85 commit dfd78d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handlers/grid.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ func GenerateGrid(images []image.Image) (image.Image, error) {
canvasHeight += int(rowHeight)
}

// NRGBA as libwebp-go loves NRGBA
canvas := image.NewNRGBA(image.Rect(0, 0, canvasWidth, canvasHeight))
canvas := image.NewRGBA(image.Rect(0, 0, canvasWidth, canvasHeight))

oldRowHeight := 0
for i := 1; i < len(path); i++ {
Expand Down

0 comments on commit dfd78d9

Please sign in to comment.