1
我正在使用Symfony 2.3。*,並且當我使用LiipImagineBundle時,在我的應用程序/ logs/dev.log中出現此錯誤。png_compression_level選項應該是從0到9的整數
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 }
我已經編輯我的問題。有我的過濾器設置。哪裏不對了 ? –
哦。我發現我的質量超過100。感謝您的幫助。 –