gif.ts
Turn videos into gifs.
Installation
deno install --allow-read --allow-write --allow-run -f -n gif https://deno.land/x/deno_gif@0.2/cli.ts
This module Requires ffmpeg
:
brew install ffmpeg
Example
import { gif } from "https://deno.land/x/deno_gif@0.2/mod.ts";
const opts = {
width: 480,
height: 380,
};
gif("https://www.w3schools.com/html/mov_bbb.mp4", "./out.gif", opts);
Options
width
type numberheight
type number