PHP Classes

PHP Convert Video to GIF: Convert a video file to animated GIF with giflayer

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 926 All time: 3,849 This week: 71Up
Version License PHP version Categories
giflayer 1.1GNU General Publi...5.4PHP 5, Graphics, Web services, Video


This class can convert a video file to animated GIF with giflayer Web service.

It takes the URL of a given video page and the start, end or duration time of the video to be extracted.

The class sends a request to the giflayer Web service to convert the video to the GIF animation format.

The class can display the converted GIF file on a Web page or retrieve it for download.

Currently it supports converting videos given the URLs of the pages on BBC, Bloomberg Business Video, CNN, Dailymotion, Discovery, Facebook, Flickr, Fox News Video, IMDB, LiveLeak, Twitch, Twitter, Vimeo, Vine, Yahoo Screen and YouTube.

Notice that the giflayer API service has been discontinued until further notice, so this package may not work at the time you are trying it.

Picture of Dave Smith
  Performance   Level  
Name: Dave Smith is available for providing paid consulting. Contact Dave Smith .
Classes: 51 packages by
Country: United States United States
Age: 58
All time rank: 618 in United States United States
Week rank: 12 Up2 in United States United States Up
Innovation award
Innovation award
Nominee: 32x

Winner: 7x


example usage
gifLayer ver 1.0

//disable time limit

//include gifLayer class

//Instantiate class with video url, start and end time in seconds
$gifLayer = new gifLayer('',33,34);

//display html image tag for converted video

The following demonstrates the download and display from captured binary
of the converted video. To use, uncomment the captureGif method to capture
the binary and then uncomment either the downloadCapture or displayCapture
methods, depending on which you wish to preform.




  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example Usage
Plain text file giflayer.class.php Class Main Class
Accessible without login Plain text file license.txt Lic. License
Accessible without login Plain text file manual.txt Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,849
This week:71Up