#91 Imagemagick plugin causing PHP slowdown

已關閉
aab5 年之前創建 · 4 條評論

When using the plugin as indicated in the README:

$config['thumbnail']['animated'] = true; addPlugin('ImageMagick');

the following error appears on apache log:

Got error 'PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/plugins/ImageMagick/ImageMagickPlugin.php on line 95',

I've got it enabled this way for several months (and it was working fine, i could see some animated avatars), but only yesterday it started to cause problems: site was not accessible. When removing the fist line, everything seeems to work fine again.

When using the plugin as indicated in the README: $config['thumbnail']['animated'] = true; addPlugin('ImageMagick'); the following error appears on apache log: Got error 'PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/plugins/ImageMagick/ImageMagickPlugin.php on line 95', I've got it enabled this way for several months (and it was working fine, i could see some animated avatars), but only yesterday it started to cause problems: site was not accessible. When removing the fist line, everything seeems to work fine again.
Diogo Cordeiro 評論 5 年之前'
所有者
<xmpp-gnu> [XRevan86] Maybe deconstructImages swallowed everything and then fopen pushed just enough to exceed the threshold
<xmpp-gnu> [XRevan86] Either way it's one darn big gif
<includeals> yeah, if it works for everything else
<includeals> I guess the solution would be the same applied to the media system
<includeals> setting different limits
<xmpp-gnu> [XRevan86] Another suggestion (complementary): forcefully convert gifs to webp's if they're animated
<xmpp-gnu> [XRevan86] when making thumbnails that is
<xmpp-gnu> [XRevan86] so an original gif → animated webp thumbnai
<xmpp-gnu> [XRevan86] Maybe deconstructImages swallowed everything and then fopen pushed just enough to exceed the threshold <xmpp-gnu> [XRevan86] Either way it's one darn big gif <includeals> yeah, if it works for everything else <includeals> I guess the solution would be the same applied to the media system <includeals> setting different limits <xmpp-gnu> [XRevan86] Another suggestion (complementary): forcefully convert gifs to webp's if they're animated <xmpp-gnu> [XRevan86] when making thumbnails that is <xmpp-gnu> [XRevan86] so an original gif → animated webp thumbnai
aab 評論 4 年之前'
發佈者

I reenabled the plugin (just as before), and it's been behaving correctly for a week or so. I won't close this report just in case there's something else diogo or biodantas want to add.

I reenabled the plugin (just as before), and it's been behaving correctly for a week or so. I won't close this report just in case there's something else diogo or biodantas want to add.
aab 評論 4 年之前'
發佈者

I've had this plugin installed and working fine all these months. As a curiosity, i'm not using the "animated" part, although some avatars are animated.

I've had this plugin installed and working fine all these months. As a curiosity, i'm not using the "animated" part, although some avatars are animated.
Diogo Cordeiro 評論 4 年之前'
所有者

This is tracked by kanban v2 task number number 19, originally assigned to @someonewithpc, currently being done by @tenma .

This is tracked by kanban v2 task number number 19, originally assigned to @someonewithpc, currently being done by @tenma .
diogo3 年之前 關閉
登入 才能加入這對話。
未選擇里程碑
未指派成員
2 參與者
正在加載...
取消
保存
尚未有任何內容