{"library":"sharp-cli","title":"sharp-cli","description":"sharp-cli is a command-line interface for the sharp library, a high-performance Node.js image processing module that uses libvips. Version 5.2.0 supports conversion and manipulation of JPEG, PNG, WebP, AVIF, TIFF, GIF, and SVG images. It provides commands for resizing, cropping, rotating, blurring, compositing, and other common image operations. The CLI mirrors most sharp API features, including input options like auto-orient and output options like smart-deblock. It follows sharp's release cadence and requires Node.js >= 18.17. Compared to alternatives like ImageMagick or GraphicsMagick, sharp-cli leverages libvips for speed and memory efficiency, with a focused, modern command set.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install sharp-cli"],"cli":{"name":"sharp-cli","version":null}},"imports":["npx sharp --help","sharp input.jpg --resize 300 200 output.jpg","sharp input.jpg composite overlay1.png overlay2.png output.jpg"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npx sharp-cli input.jpg resize 300 200 -o output.jpg\nnpx sharp-cli input.png --rotate 90 --format webp -o rotated.webp\nnpx sharp-cli input.tif --resize 800 600 --extract 50 50 200 200 output.png","lang":"javascript","description":"Resize an image to 300x200, rotate 90 degrees and convert to WebP, and extract a region from a TIFF.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}