相关疑难解决方法(0)

使用laravel 4进行干预\ Image\Exception\NotReadableException

我正在使用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)

php file-upload image laravel laravel-4

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

file-upload ×1

image ×1

laravel ×1

laravel-4 ×1

php ×1