Save thumbnails as PNG to allow transparency

This commit is contained in:
KN4CK3R
2019-07-10 22:12:02 +02:00
committed by Frédéric Guillot
parent d3d5522432
commit 1a39c46620
3 changed files with 9 additions and 6 deletions

View File

@@ -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();