91 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. title: Imagemagick plugin causing PHP slowdown
  3. author: notabug.org/aab
  4. time: Wed, 20 Nov 2019 10:36:47 UTC
  5. status: open
  6. ---
  7. author: notabug.org
  8. time: Wed, 20 Nov 2019 10:36:47 UTC
  9. content: -----
  10. 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.
  11. -----
  12. author: notabug.org
  13. time: Wed, 20 Nov 2019 23:04:45 UTC
  14. content: -----
  15. <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
  16. -----
  17. author: notabug.org
  18. time: Fri, 24 Jan 2020 11:00:55 UTC
  19. content: -----
  20. 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.
  21. -----
  22. author: notabug.org
  23. time: Fri, 17 Jul 2020 10:12:03 UTC
  24. content: -----
  25. 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.
  26. -----
  27. author: notabug.org
  28. time: Wed, 05 Aug 2020 17:05:16 UTC
  29. content: -----
  30. This is tracked by kanban v2 task number number 19, originally assigned to @someonewithpc, currently being done by @tenma .
  31. -----