1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not possible to add profile image if Imagemagick is enabled

Discussion in 'Troubleshooting and Problems' started by Biirds, Jan 9, 2012.

  1. Biirds

    Biirds Member

    I tried to upload a profile picture while I had ImageMagick PECL Extension enabled. This didn't work, nothing happened. When I switched to PHP GD it worked as it should.

    I switched to Imagemagick a while ago because PHP GD couldn't upload large attachments (the thumbnail didn't show).
     
  2. Mike

    Mike XenForo Developer Staff Member

    Can you make thumbnails for attachments with imagemagick? How about with the image you're trying to upload for the avatar?
     
  3. Biirds

    Biirds Member

    If the file is around 2 mb or more I have to use Imagemagick to be able to see thumbnails for the images when I upload them as attachments. I have attached two images to this post where you see the difference with uploading a 2 mb file with both Imagemagick and PHP GD.

    It's strange though that I'm not able to upload a profile image with Imagemagick turned on? I have tried different images and none of them work.
     

    Attached Files:

  4. Mike

    Mike XenForo Developer Staff Member

  5. Biirds

    Biirds Member

    Ok. First I try Imagemagick with a image that is 80 kb large. I got this message:
    Fatal error
    : Maximum execution time of 30 seconds exceeded in /home/biirds/public_html/library/XenForo/Image/ImageMagick/Pecl.php on line 261
    I then made the image smaller but got a message that the image was larger than 50 kb and couldn't be uploaded.

    I switched to PHP GD and then I could upload the image with no problem.

    Any clue?
     
  6. Mike

    Mike XenForo Developer Staff Member

    Is it an animated image?
     
  7. Biirds

    Biirds Member

    No.. it's a regular .jpg-image. I tried this image:
     

    Attached Files:

  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  9. Biirds

    Biirds Member

    Ok.. thanks. No, unfortunately that didn't help solve my problem ;) . What do you think.. is it a bug in Xenforo or is it my host that needs to do something?
     
  10. Mike

    Mike XenForo Developer Staff Member

    It sounds like an imagemagick issue, where it's just taking it a long time (or spinning). The line where it's dying is where it processes the image. You may wish to try a newer version of the PECL extension (or compile it against a newer version of IM).
     
  11. Biirds

    Biirds Member

    Ok, I tell my host to do that for me and see if it get's solved. I will get back to this thread when I have asked my host =).
     
  12. Biirds

    Biirds Member

    My host did increase the max execution time value in php.ini and now it works to upload a avatar with Imagemagick. It takes very long time for the image to be uploaded though =/, but I will hear with them if there's something you can do to increase the uploading time.
     
  13. Biirds

    Biirds Member

    Btw. I have the latest versions of PECL extension and I meant "decrease" the uploading time in the sentence above =)
     

Share This Page