Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save blopa/45785c910a422f4e141675b21ddaaaa9 to your computer and use it in GitHub Desktop.
Save blopa/45785c910a422f4e141675b21ddaaaa9 to your computer and use it in GitHub Desktop.
Code for post "How to automatically create thumbnails for your videos with Node.js"
const generateThumbnail = async (title, outputPath) => {
const backgroundImagePath = './background.png';
const foregroundImagePath = './foreground.png';
await generateImageForPost(
backgroundImagePath,
foregroundImagePath,
title,
outputPath
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment