composer require topthink/think-image 装上了扩展
控制器头部加了 use think\Image
然后\think\image::open($imgSrc);提示Class ‘think\Image‘ not found

处理6MB以上的图片时会发生内存溢出? "Allowed memory size of 268435456 bytes exhausted (tried to allocate 84105217 bytes)...topthink/think-image/src/Image.php:267"
因为处理高清图造成的内存崩溃所以无法返回处理结果。
处理方法:修改 memory_limit 为256M后,复试,成功。
原文:https://www.cnblogs.com/chengwens/p/13396241.html