Hasty Briefsbeta

Sharp: High performance Node.js image processing/optimization

4 days ago
  • #image-processing
  • #Node-API
  • #performance
  • High-speed Node-API module for converting large images to web-friendly formats (JPEG, PNG, WebP, GIF, AVIF).
  • Compatible with JavaScript runtimes supporting Node-API v9, including Node.js, Deno, and Bun.
  • 4x-5x faster resizing compared to ImageMagick/GraphicsMagick, using libvips.
  • Handles color spaces, ICC profiles, and alpha transparency correctly with Lanczos resampling.
  • Supports operations like rotation, extraction, compositing, and gamma correction.
  • No additional dependencies required for most macOS, Windows, and Linux systems.
  • Install via npm: `npm install sharp`.
  • Example usage includes resizing, rotating, and creating images with transparency.
  • Contributor guide available for bug reports, feature requests, and code changes.
  • Licensed under Apache License 2.0.