我正在使用 Symfony 2.3.*,当我使用 LiipImagineBundle 时,我的 app/logs/dev.log 中出现此错误。
request.CRITICAL: Uncaught PHP Exception Imagine\Exception\InvalidArgumentException: "png_compression_level option should be an integer from 0 to 9" at /vendor/imagine/imagine/lib/Imagine/Gd/Image.php line 535 {"exception":"[object] (Imagine\\Exception\\InvalidArgumentException: png_compression_level option should be an integer from 0 to 9 at /vendor/imagine/imagine/lib/Imagine/Gd/Image.php:535)"} []
有什么解决办法吗?谢谢
这是我的配置
liip_imagine:
resolvers:
default:
web_path: ~
filter_sets:
cache: ~
standard:
quality: 200
filters:
thumbnail: { size: [400, 300], mode: outbound }