Skip to content

Commit

Permalink
Change resize method to "Approx Bilinear" (#18)
Browse files Browse the repository at this point in the history
This changes the resizing method from `NearestNeighbor` (fast but low
quality) to `ApproxBilinear` (less fast and medium quality).
  • Loading branch information
spenserblack authored Nov 28, 2023
1 parent 50f1f1f commit 374c04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var rootCmd = &cobra.Command{
onError(err)
// TODO Expose this to users
resized := image.NewRGBA(image.Rect(0, 0, avatar.Width, avatar.Height))
draw.NearestNeighbor.Scale(resized, resized.Bounds(), a, a.Bounds(), draw.Src, nil)
draw.ApproxBiLinear.Scale(resized, resized.Bounds(), a, a.Bounds(), draw.Src, nil)
avatars = append(avatars, resized)
}

Expand Down

0 comments on commit 374c04e

Please sign in to comment.