Set JPEG compression to 80 for thumbnails #21
@ -256,6 +256,9 @@ class Thumbnail
|
||||
if (!is_dir(THUMBSDIR . '/' . $this->image->getSubdir()))
|
||||
mkdir(THUMBSDIR . '/' . $this->image->getSubdir(), 0755, true);
|
||||
|
||||
// No need to preserve every detail.
|
||||
$thumb->setImageCompressionQuality(80);
|
||||
|
||||
// Save it in a public spot.
|
||||
$thumb->writeImage(THUMBSDIR . '/' . $this->image->getSubdir() . '/' . $thumb_filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user