The value of animated GIF has been reviewed over the last few years. Unlike moving pictures, it is attractive to pick up only highlights or repeat them many times. Although movies have time and effort to play, animated GIFs can also be played automatically.
It is Animated_GIF that can operate such an animated GIF with a web browser.
How to use Animated_GIF
Animated_GIF can generate animated GIF using arbitrary images.
You can also add playback speed and image processing.
The sample code is as follows.
var imgs = document.querySelectorAll('img');var ag = new Animated_GIF();ag.setSize(320, 240);for(var i = 0; i < imgs.length; i++) {ag.addFrame(imgs[i]);}var animatedImage = document.createElement('img');ag.getBase64GIF(function(image) {animatedImage.src = image;document.body.appendChild(animatedImage);});
It is very easy to use because it adds images to addFrame. The completed animation GIF can also be downloaded as an image. It is simple and user-friendly to be able to do with only the client side.
Animated_GIF is software written in JavaScript (source code is released but licenses are not specified).
No comments:
Post a Comment