技术SOLO
技术SOLO
关联问题:https://github.com/lsky-org/lsky-pro/issues/629 请问是否定位到了具体问题
经过多次测试得出得到结论,具体报错信息,可参考[https://github.com/lsky-org/lsky-pro/issues/627](https://github.com/lsky-org/lsky-pro/issues/627) 本人服务器环境支持webp格式图片
具体的报错信息如下 ``` [2023-03-06 21:51:17] prod.ERROR: Web 上传文件时发生异常 {"file":"/www/wwwroot/tc/vendor/intervention/image/src/Intervention/Image/Imagick/Decoder.php","line":29,"message":"Unable to read image from path (/tmp/phpHbZXgw).","trace":"#0 /www/wwwroot/tc/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php(329): Intervention\\Image\\Imagick\\Decoder->initFromPath() #1 /www/wwwroot/tc/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(66): Intervention\\Image\\AbstractDecoder->init() #2 /www/wwwroot/tc/vendor/intervention/image/src/Intervention/Image/ImageManager.php(54): Intervention\\Image\\AbstractDriver->init() #3 /www/wwwroot/tc/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Intervention\\Image\\ImageManager->make() #4 /www/wwwroot/tc/app/Services/ImageService.php(504): Illuminate\\Support\\Facades\\Facade::__callStatic() #5 /www/wwwroot/tc/app/Services/ImageService.php(175):...
现在开启水印的话,会直接在图片上添加水印,如果后期需要更换水印的话,会很麻烦 建议在上床图片的时候,如果开启了水印,可以指定一个路径专门备份原图片,开发上应该不难,上传时多保存一份即可