diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2019-07-10 22:12:02 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2019-07-10 13:12:02 -0700 |
commit | 1a39c46620febdb22d8b0e4cadbbdeeefa00c3ac (patch) | |
tree | ba31a11bede861a71f2c026115a712769cf987d7 /app/Controller/FileViewerController.php | |
parent | d3d55224329681722b52a84b31f141bf78aaa134 (diff) |
Save thumbnails as PNG to allow transparency
Diffstat (limited to 'app/Controller/FileViewerController.php')
-rw-r--r-- | app/Controller/FileViewerController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/FileViewerController.php b/app/Controller/FileViewerController.php index 49568912..0178cb30 100644 --- a/app/Controller/FileViewerController.php +++ b/app/Controller/FileViewerController.php @@ -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); |