High performance Node.js image processing library for resizing JPEG, PNG, WebP, GIF, AVIF and TIFF images
80
A service that generates text banners for social media posts by rendering text as images with customizable styling.
@generates
/**
* Generates a text banner image.
*
* @param {string} text - The text to render in the banner
* @param {Object} options - Configuration options for the banner
* @param {number} [options.width=400] - Width of the banner in pixels
* @param {number} [options.height=100] - Height of the banner in pixels
* @param {number} [options.fontSize=24] - Font size in points
* @param {string} [options.align='left'] - Text alignment: 'left', 'center', or 'right'
* @returns {Promise<Buffer>} A promise that resolves to a PNG image buffer
*/
async function generateBanner(text, options = {}) {
// IMPLEMENTATION HERE
}
module.exports = {
generateBanner
};High-performance image processing library for Node.js.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-sharpdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10