简体   繁体   English

Laravel上的图像干预图像

[英]Image Intervention Image on Laravel

So i got this error 所以我得到了这个错误

Call to undefined function Intervention\Image\finfo_buffer() 

I got this error when using Intervention image on my laravel so here is my code 在Laravel上使用干预图像时出现此错误,所以这是我的代码

    if(Input::hasFile('imgchick'))
    {
    $img = Image::make('images/chickens/1419125359-chicken.jpg'); //got the error on this part
    $file = ImageInput::file('imgchick');
    $name = time().'-'.'chicken.jpg';
    $file = $file->move(public_path() . '/images/chickens', $name);
    $farm->img_loc=$name;

I already updated my php.ini and uncommented the some codes that was said need on some of my research, but its still not working. 我已经更新了php.ini,并取消了对某些研究中一些需要的代码的注释,但仍然无法正常工作。 Please Help 请帮忙

You have to enable the finfo_buffer extension . 您必须启用finfo_buffer扩展

See here for more details: 请参阅此处以获取更多详细信息:

https://github.com/Intervention/image/issues/131 https://github.com/Intervention/image/issues/131

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM