[Feature request] jpeg quality on thumbnails

Permalink
When specifying thumbnails, it would be useful to include jpeg compression / quality as well as size.

i.e. specify 450px by 450px proportional 60% quality

simonchilton
 
mesuva replied on at Permalink Reply
mesuva
I think this is already possible using the image helper.

The image helper, which is actually the BasicThumbnailer class behind the scenes has some functions, setJpegCompression and setPngCompression - I believe they can be called to manually set the compression levels before using it.

So it would be something like:

$im = $this->app->make('helper/image');
$im->setJpegCompression(60);
$thumb = $im->getThumbnail($f, 450, 450, true);