What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

When I try to insert/upload a large animated GIF into a post, I get the following error:

Failed to upload image; the format is not supported

If I try to upload the same image directly to imgur, I get a message telling me that animated GIFs must be less than 2MB. If that's the restriction that's causing the failure when I try to insert it, then the message I'm being shown is neither accurate nor helpful.

share|improve this question
4  
Is your large animated GIF any more helpful than this error you're encountering? –  BoltClock's a Unicorn Jun 8 '12 at 5:43
1  
@BoltClock'saUnicorn: I tend to think so, as it's technical art, but I suppose I could replace it with a link instead. –  Isaac Jun 8 '12 at 5:45
1  
Related: meta.stackexchange.com/questions/133138/… –  animuson Jun 8 '12 at 5:46
2  
<GLaDOS voice> Well... you passed the test. –  BoltClock's a Unicorn Jun 8 '12 at 5:46
    
@animuson: Ah, yeah, I hit that problem, too, but I didn't realize it was related. –  Isaac Jun 8 '12 at 5:46

1 Answer 1

Um, this is a FIFTEEN MEGABYTE animated GIF. That's... insane.

I can't even load it into my GIF optimization software.

You might consider other representations, I believe .svg files support animation and are certainly supported on modern browsers. See: Add Graphviz support to Markdown

share|improve this answer
    
If I export the same animation from Mathematica to SVG, I get a 40+MB file that doesn't render in Chrome (it looks vaguely like the first two frames, no animation, but has other issues). Also, I'm not saying you should support large image uploads; I'm just saying that the error messages when rejecting large images are misleading or wrong. –  Isaac Jun 8 '12 at 7:02
    
can you at least render it down as a 16 color animated GIF? That would help a lot. –  Jeff Atwood Jun 8 '12 at 7:02
    
I'm not sure if I can, but I'll try to find out. –  Isaac Jun 8 '12 at 7:09
    
@Isaac using gifsicle --optimize=3 --colors=16 < enormous.gif > smaller.gif I get an output of 8mb versus 15mb with no appreciable loss in quality (the image is nearly monochrome to start with, so 16 colors is plenty good to represent the colors in it). However, I think you need to resize the image (920w is a bit large) and/or reduce the framerate and/or reduce the duration to get it under 2mb. –  Jeff Atwood Jun 9 '12 at 11:33
1  
@isaac also of note, the image is being resized anyway by Stack Exchange to 630px (the maximum and standard post width) so any additional resolution is lost. –  Jeff Atwood Jun 9 '12 at 11:48
    
@isaac if nothing else, I strongly recommend updating to the 16 color version of your animation, since it's a 50% size reduction. –  Jeff Atwood Jun 16 '12 at 6:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .