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

XF 1.4 ImageMagick Not Resizing Images Upon Upload

Rambro

Well-known member
#1
Sizes are set in attachments:

CapturFiles_2.png

ImageMagick seems installed on the server (semi-shared (enterprise shared))

CapturFiles_1.png

But when I select ImageMagick in the options in Attachments, it bounces all image uploads that it should be resizing, stating that they're too big. When I select GD, it works fine.

Thoughts?
 

Martok

Well-known member
#2
What image types are you attaching?

I've noticed that your supported formats doesn't include PNG, nor TIFF. Mine does and supports 214 formats to your 84. I'm not sure if this is relevant.
 

Rambro

Well-known member
#3
What image types are you attaching?

I've noticed that your supported formats doesn't include PNG, nor TIFF. Mine does and supports 214 formats to your 84. I'm not sure if this is relevant.
I assume the iphone shoots in jpeg. If it wasn't a supported format, wouldn't it bounce back that error message as opposed to the "image is too large" error?
 

Martok

Well-known member
#4
If it wasn't a supported format, wouldn't it bounce back that error message as opposed to the "image is too large" error?
I don't think so. ImageMagick is for resizing images, if a file format isn't supported them it won't attempt to resize.

Anyway if it's an iPhone being used and it is set to shoot JPEG then that won't be the issue.

ImageMagick does process differently from GD. Is it rejecting all JPEG file uploads no matter the size or just certain ones? If just some, what are their sizes in MB and pixels?
 
#5
I'm not much of an expert, but I know this much, it is possible you have imagemagick installed, but not working because you also need imagemagick PECL installed as well.

I learnt that lesson with my old vBulletin board. If that is not it, then disregard my post.
 

Martok

Well-known member
#6
I'm not much of an expert, but I know this much, it is possible you have imagemagick installed, but not working because you also need imagemagick PECL installed as well.

I learnt that lesson with my old vBulletin board. If that is not it, then disregard my post.
I believe that Imagick in the OP's screenshot is the PECL extension for ImageMagick, hence it displaying on the phpinfo page.
 

Mike

XenForo developer
Staff member
#7
Usually when I've seen this it has been a broken ImageMagick install. Unfortunately I don't have specifics, but upgrading ImageMagick and/or the imagick PECL extension (which might need to be recompiled if ImageMagick has changed) generally seems to resolve it.
 

Rambro

Well-known member
#8
Usually when I've seen this it has been a broken ImageMagick install. Unfortunately I don't have specifics, but upgrading ImageMagick and/or the imagick PECL extension (which might need to be recompiled if ImageMagick has changed) generally seems to resolve it.
Alright, I'll give my host a talking to and report back.
 

Rambro

Well-known member
#9
Update on this - so the host moved me to a new server and I seemingly can upload iPhone screenshots and pictures now with ImageMagick installed. I still can't get animated avatars working though.
 

The Dark Wizard

Well-known member
#10
Update on this - so the host moved me to a new server and I seemingly can upload iPhone screenshots and pictures now with ImageMagick installed. I still can't get animated avatars working though.
Then its still not correctly installed one would assume.

I just installed ImageMagick for one of my servers and it worked out of the box for my clients.
 

Rambro

Well-known member
#11
Then its still not correctly installed one would assume.

I just installed ImageMagick for one of my servers and it worked out of the box for my clients.
This was my thinking. I'm stuck on troubleshooting though.

Oddly, I did get on gif to sort of work. A very tiny file that showed in the thread view, and on the member card, but not in the profile page or anywhere else.

Everything else was a no go.
 
#12
Gif's working only with very tiny files?

Are you on a shared server for something like $5 a month? If that is the case, then yes, they throttle the **** out of upload sizes only limiting it to something under 1 MB. These types of shared server is like, 3,000 people sharing just one server.

Would not be suprised if it is restricted to just 500 kb or such. Easy enough to upload reasonable sized pics, but with gif's......

Edit note - On second thoughts, I guess that is not the case or you would have got the message "so and so file is too large" of which you did not mention.
 
Last edited: