(WIP) Gif.ts
I made this library to practice using deno and creating deno modules
but it can successfully convert videos to gifs
Installation
deno install --allow-read --allow-write --allow-run -f -n gif https://deno.land/x/deno_gif@0.3.0/cli.ts
This module Requires ffmpeg
:
brew install ffmpeg
Example
import { gif } from "https://deno.land/x/deno_gif@0.3.0/mod.ts";
const opts = {
width: 480,
height: 380,
};
gif("https://www.w3schools.com/html/mov_bbb.mp4", "./out.gif", opts);
or using the cli
gif -w 480 -t 350 https://www.w3schools.com/html/mov_bbb.mp4 output.mp4
Options
width
type numberheight
type number