Skip to content

Commit

Permalink
deleted redundant subimage
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Feb 16, 2024
1 parent 79af734 commit 5088d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (p *processor) resizeFrame(

// Crop image to fit destBounds and put it into dst
dst.Image[index] = image.NewPaletted(destBounds, srcPalette)
draw.Draw(dst.Image[index], destBounds, fittedImage.SubImage(destBounds), destBounds.Min, draw.Src)
draw.Draw(dst.Image[index], destBounds, fittedImage, destBounds.Min, draw.Src)

return nil
}
Expand Down

0 comments on commit 5088d40

Please sign in to comment.