r/GIFCreators • • Jan 18 '13

How to add a border to your GIF

See this post on how to generate frames from a video and then use those frames to make an animated GIF.

One way to add borders to an animated GIF is to edit the individual pictures and add the borders to those pictures with something like Photoshop, but it can get tedious. What I do is to use AVISynth. Here is an example script on adding a 20 pixel border around your video (description on how to use the script file will follow):

The simple script:

AviSource("C:\temp\YourVideo.avi", false)
AddBorders(20, 20, 20, 20)

  1. Extract and prepare your video in VirtualDub as explained in this post: http://redd.it/16s803.

  2. Create your script such as the one above as a text file, and save it with the avs extension (eg SomeFile.avs). Obviously, AviSource in the script is how you tell AviSynth the location of your video file.

  3. Drag this AVS file into VirtualDub.

  4. In VirtualDub, File > Save as AVI (or just F7) and now you have a video with borders. Conduct more editing of this video if you want.

  5. Proceed to make GIF out of this AVI file

Tools and references:

  1. AviSynth

  2. AviSynth documentation on the AddBorders command

2 Upvotes

0 comments sorted by