From 1a39c46620febdb22d8b0e4cadbbdeeefa00c3ac Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Wed, 10 Jul 2019 22:12:02 +0200 Subject: Save thumbnails as PNG to allow transparency --- app/Controller/AvatarFileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller/AvatarFileController.php') diff --git a/app/Controller/AvatarFileController.php b/app/Controller/AvatarFileController.php index 81a324fb..12c4069c 100644 --- a/app/Controller/AvatarFileController.php +++ b/app/Controller/AvatarFileController.php @@ -69,7 +69,7 @@ class AvatarFileController extends BaseController $etag = md5($filename.$size); $this->response->withCache(365 * 86400, $etag); - $this->response->withContentType('image/jpeg'); + $this->response->withContentType('image/png'); if ($this->request->getHeader('If-None-Match') !== '"'.$etag.'"') { $this->response->send(); -- cgit v1.2.3