sharp
Installation
SKILL.md
Sharp
High-performance Node.js image processing. 4-5x faster than ImageMagick for resizing JPEG, PNG, WebP, GIF, AVIF, and TIFF images. Uses libvips under the hood.
Supported Runtimes: Node.js (^18.17.0 or >= 20.3.0), Deno, Bun
Quick Start
npm install sharp
import sharp from 'sharp';
// Resize and convert
await sharp('input.jpg')
.resize(800, 600)
.toFormat('webp')
Related skills