(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.2/mod.ts";
const options = {
width: 480,
height: 380,
};
gif("https://www.w3schools.com/html/mov_bbb.mp4", "output", options);
or using the cli
gif -w 480 -t 350 https://www.w3schools.com/html/mov_bbb.mp4 output
Options
width
type numberheight
type number
Show Your Support
Give a 🌟 if you like this project!