mirror of
https://github.com/Intervention/image.git
synced 2025-08-19 04:01:30 +02:00
minor changes
This commit is contained in:
@@ -90,8 +90,12 @@ class Image
|
||||
*/
|
||||
private function setProperties($path, $width = null, $height = null)
|
||||
{
|
||||
if ( ! is_null($path) && $this->filesystem->exists($path)) {
|
||||
if ( ! is_null($path)) {
|
||||
|
||||
if (!$this->filesystem->exists($path)) {
|
||||
throw new Exception("Image file ({$path}) not found");
|
||||
}
|
||||
|
||||
// set file info
|
||||
$info = pathinfo($path);
|
||||
$this->dirname = $info['dirname'];
|
||||
@@ -646,14 +650,6 @@ class Image
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
public function render($type = 'jpg')
|
||||
{
|
||||
return Response::make($this->data($type), 200,
|
||||
array('content-type' => $this->filesystem->mime($type)));
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Return filesystem object
|
||||
*
|
||||
|
Reference in New Issue
Block a user