(WIP) gif.ts
Note: ⚠️ This project is early WIP! currently the focus is to make it stable and feature complete.
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);
or using the cli
gif -w 480 -t 350 input.np4 output.mp4
Options
width
type numberheight
type number