Laravel-admin: 图片上传裁剪处理

Created on 3 Nov 2017  ·  5Comments  ·  Source: z-song/laravel-admin

  • Laravel Version: 5.5
  • PHP Version:7.0
  • Laravel-admin: 1.5.x

Description:

图片上传时,显示 Image source not readable
"intervention/image": "^2.4", 包已安装
具体配置 贴出:

Steps To Reproduce:

image
image

请问是什么原因呢?

Most helpful comment

根据 你的思路,找到了临时解决办法
http://baijiahao.baidu.com/s?id=1572709227899675&wfr=spider&for=pc
image

All 5 comments

insert方法是用来插入水印的,你的使用方法貌似有问题吧

image
我按手册上的方法 好像不可以,http://laravel-admin.org/docs/#/zh/model-form-fields?id=%e5%9b%be%e7%89%87%e4%b8%8a%e4%bc%a0

laravel-admin的图片处理基于Intervention, 你这个是windows环境和Intervention的不兼容问题导致的

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

我的建议是不要用windows开发

根据 你的思路,找到了临时解决办法
http://baijiahao.baidu.com/s?id=1572709227899675&wfr=spider&for=pc
image

在Ubuntu同样遇到这个问题了,提示Image source not readable 。也按照上面哥们的加法,还是出错啊,还请大神帮忙解答。

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vlongen picture vlongen  ·  3Comments

zhenyangze picture zhenyangze  ·  3Comments

clock1129 picture clock1129  ·  3Comments

piian picture piian  ·  3Comments

qcol picture qcol  ·  3Comments