Save thumbnails as PNG to allow transparency
This commit is contained in:
committed by
Frédéric Guillot
parent
d3d5522432
commit
1a39c46620
@@ -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();
|
||||
|
||||
@@ -116,7 +116,7 @@ class FileViewerController extends BaseController
|
||||
$etag = md5($filename);
|
||||
|
||||
$this->response->withCache(5 * 86400, $etag);
|
||||
$this->response->withContentType('image/jpeg');
|
||||
$this->response->withContentType('image/png');
|
||||
|
||||
if ($this->request->getHeader('If-None-Match') === '"'.$etag.'"') {
|
||||
$this->response->status(304);
|
||||
|
||||
Reference in New Issue
Block a user