The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
gifs as attachments dont animate
Hello,
when im composing new post and upload gif images, it then appears to be converted and having jpg extension. Any idea please how to discover cause? I think i dont have imagemagick working update: in phpinfo() it appears enabled update2: see my next post, it shows cause of this issue |
#2
|
||||
|
||||
I think you would need to change to ImageMagick. Have you asked your host if they will install that for you?
|
#3
|
|||
|
|||
This was interesting so I looked into it.
Gif support was removed in GD library in Version 1.6, and added back in Version 2.0.28. Tested out of the box vb4.2.2 using GD2, no problems with animated gif. 1.) Check your PHPINFO file in ACP->Maintenance. Confirm that GD2 or ImageMagic is actually running, but @Lynne is right about asking your host for imagemagick. So much more robust. 2.) Check that your gif image actually has a gif extension before uploading it to vbulletin. Note - The actual displaying of a gif is a browser function, not vbulletin. However, if any php functionality, or external conversions(ImageMagic) are done on the file then the graphic libraries are required. Sorry, to jump in @Lynne, just thought it was important. |
#4
|
||||
|
||||
I don't know if its required that something else be passed to preserve the animation. But more or less anytime something is resized, there is a chance for it to lose the animation.
If you gifs are bigger than the height, width, or file size, they'll be resized, and then the thumbnail is also resized. Just keep that in mind. |
#5
|
|||
|
|||
Thx,
the phpinfo shows: Quote:
When i switch to ImageMagick from GD in vbuleltin Options / Image Settings, and try to upload .gif, it says " Failed: <pre>sh: /usr/local/bin/identify: No such file or directory</pre>". I see on server is no identify directory in /usr/local/bin (this one exist and have folders).. any idea please? In vBulletin Options / Message Attachment Options there is: Resize Images: Yes View Attached Images Inline: Yes, full size CMS Thumbnail Override: Yes Thumbnail Creation. Yes in vBulletin / Attachments / Attachments Manager i have .gif like this: maximum width: 620 maximum height: 280 Mime Type & Headers: Content-type: image/gif my uploaded gif size is 468x60 so i dont think thumbnail is triggered. But image is uploaded as a jpg, instead gif which i upload, when GD is selected and when ImageMagics, above error appears... Please help? update: found the cause: in vBulletin / Attachments / Attachments Manager i exceeded allowed gif size in bytes, it was 20000 which is 20kb, that gifs was larger.. but still not surewhy that imagemagick dont work.. and throws mentioned error Edit: i think my imagick path is: /usr/bin/ |
#6
|
|||
|
|||
Attach one or two of those 'gifs' to the post, so I can examine what is happening. I am pretty sure the problem is PHP either trying to resize the image or creating a thumbnail as that is where the graphical libraries would be in use.
I will examine the process further after you upload a couple samples. |
#7
|
||||
|
||||
vBulletin uses the image magick binary, not the php lib.
|
#8
|
||||
|
||||
You need to get the ImageMagick Binary Path from your host and enter it into AdminCP > Settings > Options > Image Settings.
|
#9
|
|||
|
|||
Thanks @Zachery, like I said I need to do a little probing in that area of vBulletin myself. I doubt that I have ever had a need for animated gif's
Most of our image processing is done via external routines that were patched into the vb code a long time ago. I do not even remember why anymore. I am either getting old or that part of the brain is temporarily fried from other pressing issues. --------------- Added 30 May 2014 at 22:30 --------------- @Zachery, are you saying that vBulletin(4) does not use the GD2 library for image resizing or thumbnail generation as a fallback? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|