From bca0404b715d7df31b28c69f1714ebb357ecd692 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 29 Mar 2023 11:36:20 +0200 Subject: [PATCH] fix: fix avatars losing transparency (closes #39) --- backend/db/avatars.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/db/avatars.go b/backend/db/avatars.go index e419c6f..f268d7b 100644 --- a/backend/db/avatars.go +++ b/backend/db/avatars.go @@ -16,7 +16,7 @@ import ( ) var ( - webpArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-extent", "512x512", "-quality", "90", "webp:-"} + webpArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-background", "none", "-extent", "512x512", "-quality", "90", "webp:-"} jpgArgs = []string{"-thumbnail", "512x512^", "-gravity", "center", "-extent", "512x512", "-quality", "80", "jpg:-"} )