# What is the process for creating gifs for questions and answers?

We now have over 1600 posts with gifs in them, gifs are very popular and useful; however it seems that they can be hard to create.
I have read placing .gifs in text and How to post gifs on this site?, yet I still have not found a complete write up for how to create and add gifs.

• Yet another idea. This tool is now here. – JakeD Apr 24 '17 at 14:48
• @pycoder I've had that in my answer all along. :) But good piece of software. – David Apr 25 '17 at 19:09
• Sorry, didn't check...just saw that comment and wanted to link to it in this thread. ;-( – JakeD Apr 25 '17 at 21:45
• I would recommend ShareX. It can take screenshots and capture gifs, but it also immediately uploads them to imgur and provides you a link. With this, you don't have to worry about the SE upload limit because you can just point to the imgur link directly instead of going through the upload dialog. – Josh Silveous Sep 26 '17 at 16:48
• @JoshSilveous while that is super convenient. I would urge you to not simply use imgur. All images need to be hosted on SE. Now if you can not make the gif under 2mb, that is a different issue, but then and only then should an external host be used. – David Sep 27 '17 at 11:31
• @David But StackExchange's host is just a subdomain of imgur (stack.imgur.com). Unless StackExchange gets some kind of priority on imgur, why does it matter? The host is the same, the only difference is that it doesn't use "stack" in the domain. – Josh Silveous Sep 27 '17 at 11:41
• @JoshSilveous yes SE uses imgur, but it is very different. Imgur guaranties the the i.stack.imgur images will never be deleted. I do not trust them on their regular site. – David Sep 27 '17 at 11:51

# The recording software

The top two are by far the most used (on this site):

• LICEcap Windows and OSX installer
• GifCam Windows only, but no install (yay)

• ScreenToGif Newer app, looks very good, Windows only, no install (yay)

• peek Linux only

Do note that these all can be run on linux using Wine.

There are many other ways, such as recording your screen, and then later converting to .gif (and in some cases that is better) but 98% of the time it is way easier to just use one of the options above.

# Making the gif

This is the easiest and the hardest part, I'll explain.

All you have to do is hit "Record"

1. But then you messed up one of the steps in blender you were trying to show off. (start again)
2. You forgot to turn on Screencast Keys, or KeyCastOW (both how I display the key presses). (start again)
3. You realize half way through that you are only recording half of the 3D view. (start again)
4. You took way too long, and now have a 20mb gif. :( (start again)
5. Blender crashes. (start again)
6. Things that never go wrong (when you JUST made that exact same thing) go wrong now that you are recording a gif. (start again)

So it is easy to record a gif, it is hard to get it right.

You will quickly gain a new appreciation for all those that make hour long tutorials. I digress, back to the gifs.

You want to aim for the smallest file size possible. The three parts of that are how big you make the gif, how long, and what FPS.

I (almost) always use 15 fps.
I (almost) always make my gifs 650px by 400px.
As short as I can make the gif without making it unclear what is happening.

This is NOT how you want blender to look when you are making a gif.

It is very hard to keep all actions in the gif capture window.

Instead change blender to look something like this:

Now everything you do in the 3D view will be recorded.

# Publish on BSE

The biggest reason to aim for a small file size (under 2mb) is so you can use stack exchange's built in image upload and hosting.

If you do have a gif under 2mb then you can add it to your question or answer like any other image. By using the add image button, or simply pressing CtrlG.

However if it is over 2mb, then you will have to use an external hosting site, https://gfycat.com/ is common, then use the url from that site.
Gandalf does a great job of explaining adding external gifs in his answer here

• Great post. I mention in Solution 2 here that both licecap and gifcam can run under wine on linux. – iKlsR Nov 28 '15 at 8:04
• Also, you want to make sure that you enable capture cursor if you want to make your mouse show in the gif (as in here) i.stack.imgur.com/9LUMe.gif – X-27 the fluffy unicorn Nov 28 '15 at 22:09
• Note that both Gifcam and LICEcap will work on linux via wine. Some of Gifcam's options will not be available, but basic operation will be fine. – cegaton Nov 29 '15 at 1:39
• +1 for the "making the GIF" process! I just spent 5 hours failing at making a simple screen recording to send to a friend and I think every one of those happened! I'm also interested to see those other recorder options too as LICEcap doesn't work properly on my tablet. – PGmath Nov 29 '15 at 15:51
• So I've tried all three, LiceCAP works fine on my workstation but not on my Surface tablet, GifCam and ScreenToGif both work fine. ScreenToGif has a lot more features (including saving to a video file), but makes the computer lag a little while recording (doesn't affect the recording though). – PGmath Nov 30 '15 at 18:04
• My favorite GIF capture application is Gyazo. You can do screenshots and GIF capture, and it instantly uploads it to the web when you take it. Then just copy/paste the URL into SE. – Josh Silveous Jan 16 '17 at 14:22

There's definitely not a single best process. I hope this thread fills up with people weighing in on their method.

Linux here.. (Ubuntu) -- not crossplatform

My solution involves a few prerequisits

• (optional) Kazam, you could use Blender's Screencast to create *.png
• Blender's VSE, (hah! you totally have this already!)
• FFmpeg's for the convert command,
• gifsicle "command line automated gifs",

The instructions don't quite capture how simple this is to do :)

• use Kazam (screencapture software with UI) to record a selected screen area to a .mp4. (hit start, do your thing, hit stop, save to .mp4)
• When you make mistakes you can undo, or restart the demoing without restarting the kazam recording.
• Import the .mp4 to Blender's VSE, and edit it till it shows only the most essential frames.
• Now I'm ready to render the clip as a set of .pngs, but first I need to set the correct render dimensions and the start and end frame. With the strip/meta strip active I got to console and execute a few commands included with the BCPrompt add-on.

>>> dandc     (ctrl+Enter is mapped to execute a command from console)


the dandc commands does these two things for you:

1. sets render-output's width and height from active strip's dimensions.
2. sets start and end-frame from active strip's extents.
• Render the VSE to *.png to some /Path/to/folder/ either via UI or

>>> anim /Path/to/folder/

• Once the render is complete I execute

>>> ogif /Path/to/folder/ 256 24


this outputs two animated gifs of the *.png in that folder

• 1 non optimized called animated.gif
• 1 optimized to 256 colors and 24 fps called opt_256_animated_24fps.gif
• To get the generated gif into the browser I can execute system commands from the python console using an exclamation to prefix the line. (this turns the pyconsole into a lightweight terminal)

>>> !nautilus /Path/to/folder/


will open nautilus at the given folder and I can drag the optimized.gif to the BlenderStackExchange window.

You can make gif's using blender and GIMP.

Three ways you can get original frames from blender -

1. Render an animation. Depending on what you want to show you can setup an animation in blender and render the animation to images. You can also use the viewports opengl render option.
2. Accumulate a series of screenshots. Blender can take a screenshot of it's window. Take a screenshot at each stage that you want to display in the gif.
3. Make a screencast. Blender can also automatically take a series of screenshots as you perform your task. There are settings in preferences under system to adjust the framerate of a screencast. The screenshots will be saved based on your render settings for location and filetype.

Making the gif -

Once you have a series of frames to use for your gif, you can open them in gimp. By using File->Open As Layers... you can select multiple images and have each one added as a new layer. Note that this will add the selected images to the current image so you may want to close all open images before doing this.

Select and crop the image to the area you want in the gif. To reduce the filesize of the gif use Filter->Animation->Optimise (for GIF). This removes duplicated areas from each layer, leaving them mostly transparent and the result is opened in a new image.

Then export the image and give it a .gif suffix and you will get the options dialog for saving the gif, be sure to enable "as animation".

The gif's you save can then be added to your answer the same as any other image.

• Could you show how you can change the delay between frames by editing the layer name. I always optimise (difference) must do a test one day. – batFINGER Mar 19 '16 at 14:16
• You can rename the layer to customise the delay of each frame - it will have (100ms) in the name. If you want the same delay for each frame you can change the export settings for delay and tick Use delay entered above for all frames which will override the delay in the layer names. – sambler Mar 20 '16 at 4:00
• According to the gimp docs optimize (gif) also reduces the size of the layer. – sambler Mar 20 '16 at 4:18

I use regular screen capture tools (anything to make a video), then upload the video to ezgif.com.

I currently switch between Quicktime and Monosnap (but I'm on a Mac). They both work well, but for different situations. Then I upload the result to ezgif for editing and "gif-making." This site lets me optimize with compression, cutting, frame rate, etc., and does it all rather quickly.

Let me know if you want more details, or a gif of the process :-)

I use byzanz which is in the ubuntu repos, along with byzanz-record-window

A quick search also yields this, which I haven't tried.

If you prefer a graphic method there's also silentcast but I find its UI a bit confusing.

Another solution is using the internal blender screencast command, saving the output to ogv and using the script in this answer to convert to gif

Or render to png's and use

convert -delay 10 -loop 0 *.png -layers OptimizeFrame animation.gif


to convert to gif, and

gifsicle -O3 animation.gif --colors 256 -o out.gif


will optimize a bit further