Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
AlexWright Posted December 18, 2017 Posted December 18, 2017 Hi all, We've been having issues on our server with large GIF files (32 MB for the one generating these errors). It seems imagick.php is running into issues processing the saving of these files. Anyone have any tips or pointers? [18-Dec-2017 22:10:59 UTC] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /home/taylorho/public_html/system/Image/Imagemagick.php on line 93 [18-Dec-2017 22:24:55 UTC] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /home/taylorho/public_html/system/Image/Imagemagick.php on line 93 [18-Dec-2017 22:31:20 UTC] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /home/taylorho/public_html/system/Image/Imagemagick.php on line 93 Our server: Centos7 8GB Ram 4 Core CPU It also seems that because of imagick,, PHP-FPM pool increases to 80-85% of the server resources while this one file is uploading. Any pointers would be greatly appreciated. Regards, Nowe
AlexWright Posted December 18, 2017 Author Posted December 18, 2017 If it helps any, our site is throwing: no decode delegate for this image format `/tmp/imagickDMxAIP' @ error/constitute.c/ReadImage/544
ASTRAPI Posted December 18, 2017 Posted December 18, 2017 You are missing delegates: Check from ssh using the command: convert -list configure You should get something: DELEGATES bzlib djvu mpeg fftw fontconfig freetype jng jpeg lcms openexr openjp2 pango png ps rsvg tiff webp wmf x xml zlib Then check which one you need and missing from there and install it: http://www.imagemagick.org/download/delegates/ and then recompile Imagemagick You can confirm the install and available formats with: identify -list format GIF* GIF rw+ CompuServe graphics interchange format Also check /tmp to not be full Another one to check if you have installed the ImageMagick-devel and if not install it: yum install ImageMagick-devel Then recompile Imagemagick. If it was ok and working with no issues for the same kind of files and without any adjustments stop working you may need also more power to your server so it will finish faster and avoid that error when you are working with many and so big files.....
AlexWright Posted December 19, 2017 Author Posted December 19, 2017 1 hour ago, ASTRAPI said: You are missing delegates: Check from ssh using the command: convert -list configure You should get something: DELEGATES bzlib djvu mpeg fftw fontconfig freetype jng jpeg lcms openexr openjp2 pango png ps rsvg tiff webp wmf x xml zlib Then check which one you need and missing from there and install it: http://www.imagemagick.org/download/delegates/ and then recompile Imagemagick You can confirm the install and available formats with: identify -list format GIF* GIF rw+ CompuServe graphics interchange format Also check /tmp to not be full Another one to check if you have installed the ImageMagick-devel and if not install it: yum install ImageMagick-devel Then recompile Imagemagick. If it was ok and working with no issues for the same kind of files and without any adjustments stop working you may need also more power to your server so it will finish faster and avoid that error when you are working with many and so big files..... Thanks. I was hoping to avoid so many large files, but users are pushing for GIF files up to 50MB. Not my particular wish, but alas. Thank you for the info, I think I'll reinstall completely through the wget/make/make install method.
AlexWright Posted December 19, 2017 Author Posted December 19, 2017 @ASTRAPI Didn't work. Even with the proper delegates installed, PHP is timing out at 180 seconds, and server usage is in the 90-96% range when uploading anything over 10 MB (We checked, this doesn't have to be a gif. It can be a multi-png/jpg upload).
bfarber Posted December 19, 2017 Posted December 19, 2017 Processing very large images tends to be resource intensive. ImageMagick performs better typically, but you may need to make more resources available. You can try taking the image and processing it with imagemagick at command line to see if your server is able to handle it outside of PHP as a starting point.
ASTRAPI Posted December 19, 2017 Posted December 19, 2017 Using cli it should do it with no issues as there is not timeout for the process
AlexWright Posted December 19, 2017 Author Posted December 19, 2017 @bfarber, @ASTRAPI Thank you both. It seems that even with 8GB of ram, the server just can't process the images. I've limited uploads to 20MB, which is about as much as we can expect. Especially if multiple sources are uploading at once. I will say that the odd thing is that if the script times out or resource usage can't handle it, it posts image "blanks". Like these:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.