High performance Node.js image processing library for resizing JPEG, PNG, WebP, GIF, AVIF and TIFF images
80
Build a tool that creates animated image slideshows from a series of static images. The tool should support multiple output formats including GIF, WebP, and JXL animations.
The tool must accept a directory of image files and generate animated slideshows with the following features:
@generates
/**
* Creates animated slideshows in multiple formats from a directory of images
*
* @param {string} inputDir - Path to directory containing source images
* @param {string} outputPrefix - Prefix for output animation files
* @param {Object} options - Animation configuration
* @param {number} options.delay - Frame delay in milliseconds (default: 500)
* @param {number} options.loop - Loop count, 0 for infinite (default: 0)
* @param {number} options.width - Target width for all frames (default: 800)
* @param {number} options.height - Target height for all frames (default: 600)
* @returns {Promise<Object>} Object with paths to created animation files
*/
async function createSlideshow(inputDir, outputPrefix, options = {}) {
// IMPLEMENTATION HERE
}
module.exports = { createSlideshow };Provides high-performance image processing and animation creation support.
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