mirror of
https://github.com/Intervention/image.git
synced 2025-08-19 12:11:26 +02:00
minor changes
This commit is contained in:
@@ -90,8 +90,12 @@ class Image
|
|||||||
*/
|
*/
|
||||||
private function setProperties($path, $width = null, $height = null)
|
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
|
// set file info
|
||||||
$info = pathinfo($path);
|
$info = pathinfo($path);
|
||||||
$this->dirname = $info['dirname'];
|
$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
|
* Return filesystem object
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user