Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2014, 03:38 PM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-29-2014, 05:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you would need to change to ImageMagick. Have you asked your host if they will install that for you?
Reply With Quote
  #3  
Old 05-29-2014, 06:35 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 05-29-2014, 08:37 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-30-2014, 07:06 AM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx,

the phpinfo shows:
Quote:
gd
GD Support enabled
GD Version bundled (2.1.0 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XPM Support enabled
libXpm Version 30411
XBM Support enabled

...

imagick
imagick module enabled
imagick module version 3.1.2
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.5.4-7 2014-02-10 Q16 OpenMP http://www.imagemagick.org
ImageMagick copyright Copyright (C) 1999-2009 ImageMagick Studio LLC
ImageMagick release date 2014-02-10
ImageMagick number of supported formats: 199
ImageMagick supported formats A, AI, ART, ARW, AVI, AVS, B, BGR, BMP, BMP2, BMP3, BRF, BRG, C, CALS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPS, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G, G3, GBR, GIF, GIF87, GRADIENT, GRAY, GRB, HALD, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, JNG, JP2, JPC, JPEG, JPG, JPX, K, K25, KDC, LABEL, M, M2V, M4V, MAP, MAT, MATTE, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RBG, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV
there is suPHP on server as a PHP handler which i quite wish to use, and some person here reported imagemagick did not work on suPHP handler?

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/
Reply With Quote
  #6  
Old 05-30-2014, 07:18 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-30-2014, 01:59 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vBulletin uses the image magick binary, not the php lib.
Reply With Quote
  #8  
Old 05-30-2014, 04:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to get the ImageMagick Binary Path from your host and enter it into AdminCP > Settings > Options > Image Settings.
Reply With Quote
  #9  
Old 05-31-2014, 04:22 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
vBulletin uses the image magick binary, not the php lib.
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 ---------------

Quote:
Originally Posted by Zachery View Post
vBulletin uses the image magick binary, not the php lib.
@Zachery, are you saying that vBulletin(4) does not use the GD2 library for image resizing or thumbnail generation as a fallback?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04054 seconds
  • Memory Usage 2,247KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete