我正在使用laravel 4并安装了Intervention Image软件包.当我在我的代码中使用它时whith 方法 - >调整大小, - >移动等等...我有这个错误:
Intervention \ Image \ Exception \ NotReadableException
Run Code Online (Sandbox Code Playgroud)
图像源不可读
open: /Applications/MAMP/htdocs/myNameProject/vendor/intervention/image/src/Intervention/Image/AbstractSource.php
break;
case $this->isFilePath():
return $this->initFromPath($this->data);
break;
default:
throw new Exception\NotReadableException("Image source not readable");
break;
}
Run Code Online (Sandbox Code Playgroud)
如果它可以帮助你,我也在MAC OS上使用MAMP和Sublime Text 3.
这是我的控制器中的代码:
public function upload() {
//***** UPLOAD FILE (on server it's an image but an Url in Database *****//
// get the input file
$file = Image::make('url_Avatar');
//set a register path to the …Run Code Online (Sandbox Code Playgroud)