#91 Imagemagick plugin causing PHP slowdown

Open
opened 10 months ago by aab · 4 comments
aab commented 10 months ago

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 commented 10 months ago
Owner
<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 commented 8 months ago
Poster

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 commented 2 months ago
Poster

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 commented 1 month ago
Owner

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 .
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.