thephpleague / glide-laravel

Glide adapter for Laravel
http://glide.thephpleague.com
MIT License
120 stars 26 forks source link

Compression #4

Closed lukesnowden closed 7 years ago

lukesnowden commented 7 years ago

Are there any parameters to compress the output or quality as its doesn't seem to be documented anywhere?

lukesnowden commented 7 years ago

Never Mind, https://github.com/thephpleague/glide/blob/master/src/Manipulators/Encode.php#L70 gave me a hint.

return $this->server->getImageResponse( "{$basename}",  [
    'w'     => $predefinedSize['width'],
    'h'     => $predefinedSize['height'],
    'fit'   => $predefinedSize['method'],
    'q'     => 70
] );
reinink commented 7 years ago

Yep, see this page: http://glide.thephpleague.com/1.0/api/encode/