youtube-giffify
v1.0.28
Published
Convert youtube video clips to quality gifs
Downloads
11
Maintainers
Readme
Youtube-GIFFIFY
Convert youtube videos to gifs on the fly
Usage
const { generateGif } = require("youtube-giffify");
generateGif(
"https://www.youtube.com/watch?v=7JgdzmrqTXU", // Youtube video url
"./example.gif", // Output file path
{
// Options
fps: 24,
}
).then((filename) => console.log(filename));
// In async function
const res = await generateGif(
"https://www.youtube.com/watch?v=7JgdzmrqTXU", // Youtube video url
"./example.gif", // Output file path
{
// Options
fps: 24,
}
);
Options
- startInSeconds (number): GIF will start from here [Default = 0]
- width (number): width of GIF [Default = 320]
- duration (number) [Default = 3]
- fps (number) [Default = 18]