1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 04:01:30 +02:00

minor changes

This commit is contained in:
Oliver Vogel
2013-02-03 17:42:31 +01:00
parent 69b4452e6a
commit dd2ce4364c

View File

@@ -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
*