简体   繁体   English

PHP new Imagick('image.webp') 不工作

[英]PHP new Imagick('image.webp') not working

I have a sneaking suspicion that the reason why my local works when I call:我偷偷怀疑我打电话时我的本地人工作的原因:

$image = new Imagick($image_source);
  • where $image_source is a webp image其中$image_sourcewebp图像

versus when I use the same call and image format type in my staging environment is due to the difference of a combination of my local apache php & imagick versions and staging versions.与我在暂存环境中使用相同的调用和图像格式类型相比,这是由于我的本地 apache php 和 imagick 版本和暂存版本的组合的差异。

Local当地的

PHP: PHP:

PHP 7.2.34 (cli) (built: Dec 11 2020 10:51:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

imagick:想象一下:

imagick module version => 3.7.0
Imagick compiled with ImageMagick version => ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Imagick using ImageMagick library version => ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org

Staging分期

PHP: PHP:

PHP 5.6.40 (cli) (built: Oct 28 2021 14:48:10) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.1, Copyright (c) 2002-2016, by ionCube Ltd.
    with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies

imagick:想象一下:

imagick module version => 3.4.3
Imagick compiled with ImageMagick version => ImageMagick 6.9.4-1 Q16 x86_64 2016-10-13 http://www.imagemagick.org
Imagick using ImageMagick library version => ImageMagick 6.9.4-1 Q16 x86_64 2016-10-13 http://www.imagemagick.org

When I call new Imagick($image_source);当我调用new Imagick($image_source); in my staging environment, I'm noticing that it stops on that line and that line only without returning anything for $image .在我的登台环境中,我注意到它只停在那条线上,并且只停在那条线上,而没有为$image返回任何东西。

Can anyone put my suspicions to rest here?谁能在这里把我的怀疑放在 rest 上? I've exhausted my troubleshooting and rabbit hole-ing.我已经用尽了我的故障排除和兔子洞。 Thank you!谢谢!

Imagick webp was added in 3.4.4 Imagick webp 在 3.4.4 中添加

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM