Tools to Capture and Convert the Web

Convert Videos to Animated GIFs with GrabzIt

Use GrabzIt's animated GIF service to enable your users to quickly experience a video by creating an animated GIF video clip. Of course a great feature of animated GIF's is that they don't require any complicated technology play! Alternatively you could use the animated GIF service to extract the best part of a video as a still image to display to your users.

Video to


Animated GIF

Video to Animated GIF API

To add GrabzIt's Video to Animated GIF API to your website or app just choose one of the nine different programming languages from below and then follow the instructions on how to convert a video to animated gif.

As this example code demonstrates only a few lines of code are needed to convert online videos into animated GIF's using ASP.NET. To start creating animated GIF's just download the ASP.NET Library, get your Application Key and Secret and then use the demo contained within. Finally read the API documentation for ASP.NET to find out all the ways you can use GrabzIt's API.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToAnimation("http://www.example.com/video.mp4");
grabzIt.SaveTo("animations/result.gif");

As this example code demonstrates only a few lines of code are needed to convert online videos into animated GIF's using Java. To start creating animated GIF's just download the Java Library, get your Application Key and Secret and then use the demo contained within. Finally read the API documentation for Java to find out all the ways you can use GrabzIt's API.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToAnimation("http://www.example.com/video.mp4");
grabzIt.SaveTo("animations/result.gif");

As this example code demonstrates only a few lines of code are needed to convert online videos into animated GIF's using JavaScript. To start creating animated GIF's download GrabzIt's JavaScript Library. Then get your Application Key and Secret, add the domain you want to use the JavaScript on and finally read the API documentation for JavaScript to find out all the ways you can use GrabzIt's API.

<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@<%= APIVersion.JavaScript %>/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.example.com/video.mp4",
{"format":"gif"}).Create();
</script>

As this example code demonstrates only a few lines of code are needed to convert online videos into animated GIF's using Node.js. To start creating animated GIF's just download the Node.js Package, get your Application Key and Secret and then use the demo contained within. Finally read the API documentation for Node.js to find out all the ways you can use GrabzIt's API.

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.url_to_animation("http://www.example.com/video.mp4");
client.save_to("animations/result.gif", function (error, id){
    if (error != null){
        throw error;
    }
             });

As this example code demonstrates only a few lines of code are needed to convert online videos into animated GIF's using Perl. To start creating animated GIF's just download the Perl Library, get your Application Key and Secret and then use the demo contained within. Finally read the API documentation for Perl to find out all the ways you can use GrabzIt's API.

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToAnimation("http://www.example.com/video.mp4");
$grabzIt->SaveTo("animations/result.gif");

As this example code demonstrates only a few lines of code are needed to convert online videos into animated GIF's using PHP. To start creating animated GIF's just download the PHP Library, get your Application Key and Secret and then use the demo contained within. Finally read the API documentation for PHP to find out all the ways you can use GrabzIt's API.

include("GrabzItClient.php");

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToAnimation("http://www.example.com/video.mp4"); 
$grabzIt->SaveTo("animations/result.gif");

As this example code demonstrates only a few lines of code are needed to convert online videos into animated GIF's using Python. To start creating animated GIF's just download the Python Library, get your Application Key and Secret and then use the demo contained within. Finally read the API documentation for Python to find out all the ways you can use GrabzIt's API.

from GrabzIt import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.URLToAnimation("http://www.example.com/video.mp4") 
grabzIt.SaveTo("animations/result.gif") 

The following code snippet illustrates how easy it is to convert online videos into animated GIF's using GrabzIt's RESTful API. The API documentation contains even more ways you can customize your captures.

https://api.grabz.it/services/convert?key=Sign in to view your Application Key&format=gif&url=http%3A%2F%2Fwww.example.com%2Fvideo.mp4
	

As this example code demonstrates only a few lines of code are needed to convert online videos into animated GIF's using Ruby. To start creating animated GIF's just download the Ruby Gem, get your Application Key and Secret and then use the demo contained within. Finally read the API documentation for Ruby to find out all the ways you can use GrabzIt's API.

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzItClient.url_to_animation("http://www.example.com/video.mp4")	
grabzItClient.save_to("animations/result.gif")