Created
December 25, 2023 14:15
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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