summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/Thumbnail.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Core/Thumbnail.php b/app/Core/Thumbnail.php
index 733d3a3c..fbe14d1b 100644
--- a/app/Core/Thumbnail.php
+++ b/app/Core/Thumbnail.php
@@ -10,6 +10,7 @@ namespace Kanboard\Core;
*/
class Thumbnail
{
+ protected $quality = 95;
protected $metadata = array();
protected $srcImage;
protected $dstImage;
@@ -137,7 +138,7 @@ class Thumbnail
*/
public function toFile($filename)
{
- imagejpeg($this->dstImage, $filename);
+ imagejpeg($this->dstImage, $filename, $this->quality);
imagedestroy($this->dstImage);
imagedestroy($this->srcImage);
return $this;
@@ -152,7 +153,7 @@ class Thumbnail
public function toString()
{
ob_start();
- imagejpeg($this->dstImage, null);
+ imagejpeg($this->dstImage, null, $this->quality);
imagedestroy($this->dstImage);
imagedestroy($this->srcImage);
return ob_get_clean();
@@ -165,7 +166,7 @@ class Thumbnail
*/
public function toOutput()
{
- imagejpeg($this->dstImage, null);
+ imagejpeg($this->dstImage, null, $this->quality);
imagedestroy($this->dstImage);
imagedestroy($this->srcImage);
}