我想创建图像干预

时间:2017-11-25 22:31:41

标签: image laravel intervention

对于用户个人资料我想创建个人资料图片,但是当我写作者需要在终端中进行干预/图像时我会收到此错误:

- intervention/image 2.4.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.4.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- Installation request for intervention/image ^2.4 -> satisfiable by intervention/image[2.4.0, 2.4.1].

To enable extensions, verify that they are enabled in your .ini files:
- C:\AppServ\php5\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

2 个答案:

答案 0 :(得分:1)

阅读Composer建议的内容。只需安装PHP extenion fileinfo即可。查看PHP.net上的安装指南:http://php.net/manual/en/fileinfo.installation.php

答案 1 :(得分:0)

确保php / ext文件夹中有php_fileinfo.dll。然后在php.ini中取消注释这一行

extension=php_fileinfo.dll