News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

new setup issue: Uncaught ImagickException

Started by thoughts, October 08, 2019, 01:58:30 PM

Previous topic - Next topic

thoughts

Hi all.  Setting up a new forum and wanting to allow users to upload their own Avatars.  I have imagick installed on the server but getting this message when an avatar is uploaded.  Please note I have specified that oversized avatars should be resized on the server.

[Tue Oct 08 12:51:52.214173 2019] [php7:error] [pid 20260:tid 140493388236544] [client 172.16.4.1:47366] PHP Fatal error:  Uncaught ImagickException: no deco                                                                                         de delegate for this image format `TMP' @ error/constitute.c/ReadImage/560 in /home/thoughts/public_html/smf/Sources/Subs-Graphics.php:422\nStack trace:\n#0                                                                                          /home/thoughts/public_html/smf/Sources/Subs-Graphics.php(422): Imagick->__construct('/home/thoughts/...')\n#1 /home/thoughts/public_html/smf/Sources/Subs-Gra                                                                                         phics.php(372): resizeImage(NULL, '/home/thoughts/...', NULL, NULL, '65', '65', true, 3)\n#2 /home/thoughts/public_html/smf/Sources/Subs-Graphics.php(80): re                                                                                         sizeImageFile('/home/thoughts/...', '/home/thoughts/...', '65', '65', 3)\n#3 /home/thoughts/public_html/smf/Sources/Profile-Modify.php(3497): downloadAvatar(                                                                                         '/home/thoughts/...', 1, '65', '65')\n#4 /home/thoughts/public_html/smf/Sources/Profile-Modify.php(819): profileSaveAvatarData('upload')\n#5 /home/thoughts/p                                                                                         ublic_html/smf/Sources/Profile.php(670): saveProfileFields()\n#6 /home/thoughts/public_html/smf/index.php(151): ModifyProfile()\n#7 {main}\n  thrown in /home                                                                                         /thoughts/public_html/smf/Sources/Subs-Graphics.php on line 422, referer: https://forum.kevinsthoughts.com/index.php?action=profile;area=forumprofile;updated

shawnb61

A quick Google on that error reveals two common sources for it:
- Not restarting the server after an upgrade or upgrading a component
- Having ImageMagick and GraphicsMagick both enabled simultaneously
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

thoughts

#2
Verified that GraphicsMagick is not installed on the system.

Although I thought I restarted Apache after installation of Imagick, did so again.  Problem still exist.

Here is the Imagick section of PHP_INFO:  http://puu.sh/EqgoI/4fa49e92f4.png [nofollow]

Also Googling, found a suggestion to run "convert -version", which only shows 3 Delegates built-in:  bzlib ltdl zlib.

So guessing this is an Imagick issue.

Update:  Managed to get imagick to build with jpeg and png support.  Problem solved!

Advertisement: