赞
踩
- 运行脚本:php7 xxx.php
-
- 结果:
- PHP Fatal error: Uncaught ImagickException: Empty input file /xxx @ error/xxx in /xxx.php:xx
- Stack trace:
- #0 /xxx('/xxx')
- ...
-
- thrown in /xxx.php on line xx
原因:
文件是touch的,大小为0kb,文件读取报错
查看文件大小命令:du -sh xxxx
解决:
复制一张文件大小不为0的图片文件,再修改文件名
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。