Project

Sharp Image Tools

Lightning-fast image manipulation toolkit powered by sharp.js and libvips — resize, crop, rotate, flip, convert formats, and batch process with server-side processing that's 26x faster than ImageMagick.

Shipped Node.jssharp.jslibvipsFastify July 15, 2026

Overview

A high-performance image manipulation tool powered by sharp.js and libvips. Supports single image and batch processing modes with operations including format conversion (JPEG, PNG, WebP, GIF, TIFF, AVIF), resize with aspect ratio locking, crop with gravity anchors, rotation, and horizontal/vertical flip. Processes images server-side for 26x faster performance than ImageMagick, with no browser memory accumulation. Does not support BMP, PDF, or DICOM formats.

How It Works

Uses sharp.js, a Node.js native module wrapping libvips, to process images server-side. The static frontend sends uploaded images to a local Fastify backend on port 3390, where all processing happens in-memory via Buffer-to-Buffer pipelines. Results stream back as HTTP responses with correct Content-Type headers. Batch mode processes files sequentially through the same endpoint, with per-file download buttons appearing as each file completes.

Building It

Built with Fastify for the backend and vanilla HTML/CSS/JavaScript for the frontend. The frontend uses the same RolyPeraWeb design tokens (dark/light themes, Inter + Geist Mono fonts, card layouts) and follows the established tool UI pattern: single/batch toggle, drag-and-drop upload, before/after preview, operations grid, and per-file download actions. The backend handles multipart uploads, validates file types, and processes images entirely in memory without disk I/O.

What's Next

Add filter operations (blur, sharpen, threshold, CLAHE), text overlays, and composite/blend modes.