diff --git a/go.mod b/go.mod index 3eba150..f2465e7 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/bwmarrin/discordgo v0.28.1 github.com/cufee/aftermath-assets v0.1.0 github.com/cufee/am-wg-proxy-next/v2 v2.2.6 - github.com/cufee/facepaint v0.0.5 + github.com/cufee/facepaint v0.0.6 github.com/fogleman/gg v1.3.0 github.com/go-co-op/gocron v1.37.0 github.com/goccy/go-json v0.10.4 diff --git a/go.sum b/go.sum index 2c44082..5d884eb 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/cufee/aftermath-assets v0.1.0 h1:r8p2mUN+h/cw1T6/oEX7bntD+lrL9Nz27GXO github.com/cufee/aftermath-assets v0.1.0/go.mod h1:6yCITCiz7POJnUMn1oohvadLA4z5YrFNo3p9EKgRdGU= github.com/cufee/am-wg-proxy-next/v2 v2.2.6 h1:6RAnPuYbPGtaLzOPhTk/N2Hx4KJx14x/c/cIik668xA= github.com/cufee/am-wg-proxy-next/v2 v2.2.6/go.mod h1:x6fkRfYry3l4Ykxl+v6pJAw5ISw+CuGzJzSkc5y5SYs= -github.com/cufee/facepaint v0.0.5 h1:ae83MF7+gsgeJ+zr76aDmuzc2rqnVx/XGjAVC7e2kTM= -github.com/cufee/facepaint v0.0.5/go.mod h1:7zR5lQMN3EO3qNtff0J8nzIhDb258UoYbRzhRToLQdg= +github.com/cufee/facepaint v0.0.6 h1:hs565X06BKNGJ2Yx5Iikpi1rSImIPL6Y2KBC9YM89OI= +github.com/cufee/facepaint v0.0.6/go.mod h1:7zR5lQMN3EO3qNtff0J8nzIhDb258UoYbRzhRToLQdg= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/internal/stats/render/period/v2/cards.go b/internal/stats/render/period/v2/cards.go index 1387f48..def14d1 100644 --- a/internal/stats/render/period/v2/cards.go +++ b/internal/stats/render/period/v2/cards.go @@ -90,7 +90,7 @@ func generateCards(stats fetch.AccountStatsOverPeriod, cards period.Cards, _ []m // resize and place background if opts.Background != nil { cardsFrameSize := cardsFrame.Dimensions() - opts.Background = imaging.Fill(opts.Background, cardsFrameSize.Width, cardsFrameSize.Height, imaging.Lanczos) + opts.Background = imaging.Fill(opts.Background, cardsFrameSize.Width, cardsFrameSize.Height, imaging.Center, imaging.Lanczos) if !opts.BackgroundIsCustom { seed, _ := strconv.Atoi(stats.Account.ID) opts.Background = addBackgroundBranding(opts.Background, stats.RegularBattles.Vehicles, seed)