Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"require": {
"php": ">=5.5.9",
"illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*",
"guzzlehttp/guzzle": "5.3|~6.0",
"illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|6.*",
"guzzlehttp/guzzle": "5.3|~6.0|~7.0",
"imagine/imagine": "0.6.*"
},
"require-dev": {
Expand Down
3 changes: 2 additions & 1 deletion src/Folklore/Image/ImageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Folklore\Image\Exception\FormatException;

use Illuminate\Support\Manager;
use Illuminate\Support\Arr;

use Imagine\Image\ImageInterface;
use Imagine\Image\Box;
Expand Down Expand Up @@ -226,7 +227,7 @@ public function make($path, $options = array())
public function serve($path, $config = array())
{
//Use user supplied quality or the config value
$quality = array_get($config, 'quality', $this->app['config']['image.quality']);
$quality = Arr::get($config, 'quality', $this->app['config']['image.quality']);
//if nothing works fallback to the hardcoded value
$quality = $quality ?: $this->defaultOptions['quality'];

Expand Down
4 changes: 3 additions & 1 deletion src/Folklore/Image/ImageServe.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
use Folklore\Image\Exception\Exception;
use Folklore\Image\Events\ImageSaved;

use Illuminate\Support\Arr;

class ImageServe
{
protected $image;
Expand Down Expand Up @@ -75,7 +77,7 @@ public function response($path)

//Get the image content
$saveOptions = array();
$quality = array_get($options, 'quality', $this->config['quality']);
$quality = Arr::get($options, 'quality', $this->config['quality']);
if ($format === 'jpeg') {
$saveOptions['jpeg_quality'] = $quality;
} elseif ($format === 'png') {
Expand Down