vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   gifs as attachments dont animate (https://vborg.vbsupport.ru/showthread.php?t=311771)

postcd 05-29-2014 03:38 PM

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

Lynne 05-29-2014 05:13 PM

I think you would need to change to ImageMagick. Have you asked your host if they will install that for you?

tbworld 05-29-2014 06:35 PM

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.

Zachery 05-29-2014 08:37 PM

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.

postcd 05-30-2014 07:06 AM

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/

tbworld 05-30-2014 07:18 AM

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.

Zachery 05-30-2014 01:59 PM

vBulletin uses the image magick binary, not the php lib.

Lynne 05-30-2014 04:51 PM

You need to get the ImageMagick Binary Path from your host and enter it into AdminCP > Settings > Options > Image Settings.

tbworld 05-31-2014 04:22 AM

Quote:

Originally Posted by Zachery (Post 2500130)
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 (Post 2500130)
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?


All times are GMT. The time now is 04:50 AM.

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.01399 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete