This is a simple package to create a quote image from a given text. like this:
- Random background color
Install packages:
npm i create-quote-image
Use random color:
const createQuoteImage = require('create-quote-image').default;
const quote = {
text: 'This is a quote',
author: 'Me',
}
createQuoteImage(quote, 'path/to/image.png');
Customize color:
const createQuoteImage = require('create-quote-image').default;
const quote = {
text: 'This is a quote',
author: 'Me',
}
createQuoteImage(quote, 'path/to/image.png', createQuoteImage.colors[2]);