GifIt - convert videos into animated gifs using Node, libav, imagemagick and Twilio
This is the code repo for a blog post on how your can use a bunch of awesome technologies to convert videos on your phone into animated GIFs. I highly encourage you to walk through the entire tutorial to get this software up-and-running on your VPS.
If you have any questions or run into an issue, please feel free to file an issue. Thanks!
Setup
You will need the following to get started:
- Twilio MMS-enabled phone number
- Ubuntu VPS
- Node.js
Installation
On your Ubuntu VPS, grab the source code:
git clone <this repo>
Change into the directory that was created and install the necessary modules:
npm install
Get the necessary binaries:
sudo apt-get update
sudo apt-get install libav-tools
sudo apt-get install imagemagick
Set-up some environment variables for your Node app:
export TWILIO_ACCOUNT_SID=xxx
export TWILIO_AUTH_TOKEN=yyy
Spin-up your Node server
node .
Log-in to your Twilio account and edit an MMS-capable phone number. Set the Messaging Request URL to http://yourhost:3000/message. Make sure you select HTTP GET. Click "Save".
Test
Ok, now send a short (~6 seconds) video to your Twilio MMS-enables phone number. You should see a flow like this:
Meta
- No warranty expressed or implied. Software is as is.
- MIT License
- Made with ♥ by Twilio Seattle

