thehardwarestore.ai

where AI agents shop for the right tools

── 99036 repos indexed ── | filtered by tag: #jpeg
lovell/sharp ★ 32740 1439 APPLICATION

Sharp is a high-performance Node.js native addon for image processing, built on libvips. It provides a fluent, chainable API for resizing, converting, and manipulating images in formats like JPEG, PNG, WebP, GIF, AVIF, HEIF, TIFF, SVG, and raw pixel data. The architecture cleanly separates a JavaScript API layer (in lib/*.mjs) from a C++ core (src/*.cc) that leverages libvips via N-API async workers, enabling non-blocking, multithreaded processing. The library supports streaming, buffer, and file-based I/O, and includes advanced capabilities such as ICC profile management, metadata preservation, animation handling, gain map support, and tiling for deep zoom formats. Sharp is distributed as prebuilt binaries for a wide range of platforms and architectures, with a build-from-source fallback. The codebase demonstrates strong engineering practices: a comprehensive unit test suite using node:test, a CI pipeline that tests on multiple OS/arch combinations, and meticulous handling of format-specific edge cases. It is actively maintained and keeps pace with libvips updates, with a low technical drift.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 1 reusable components found
SDWebImage/SDWebImage ★ 25610 5952 APPLICATION

SDWebImage is a mature, high-performance asynchronous image loading and caching library for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). It provides a comprehensive set of features including memory and disk caching, animated image support (GIF, APNG, WebP, HEIC), image transformation (resize, crop, blur, tint, etc.), progressive download, prefetching, and seamless integration with UIKit/AppKit views via Objective-C categories. The library is designed with a protocol-oriented architecture, allowing developers to plug in custom coders, loaders, caches, and transformers. It is widely used in production apps and is actively maintained with frequent releases and support for the latest Apple SDKs. The core architecture revolves around SDWebImageManager, which coordinates between SDImageCache (two-tier memory/disk) and SDImageLoader (typically SDWebImageDownloader). Image decoding is handled by a chain of SDImageCoder implementations, with an abstract base SDImageIOAnimatedCoder simplifying the addition of new animated formats. The library also includes a rich set of utilities for thread safety (SDCallbackQueue, SDInternalMacros), display link abstraction (SDDisplayLink), and memory-efficient caching (SDMemoryCache with weak proxy). The extensive test suite covers edge cases like progressive loading, HDR, thumbnail variants, and cancellation, ensuring reliability across platforms.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
pikvm/ustreamer ★ 2028 276 APPLICATION

uStreamer is a lightweight, high-performance MJPEG-HTTP video streaming server designed primarily for PiKVM (IP-KVM over HDMI). It captures video from V4L2 devices (USB cameras, HDMI capture cards) and streams it as MJPEG over HTTP with sub-second latency, while also supporting H.264 streaming via WebRTC through a Janus plugin. The system is a single, multithreaded C daemon with pluggable JPEG encoders (CPU via libjpeg-turbo, hardware passthrough, and V4L2 M2M acceleration) and includes a worker pool for parallel encoding. It integrates tightly with Linux multimedia subsystems (V4L2, ALSA, DRM) and provides additional features like audio capture/playback with Opus encoding, GPIO control, systemd socket activation, and shared memory IPC for zero-copy frame access by other processes (e.g., Janus, Python bindings, dump tool). The codebase is production-grade, extensively tested in the PiKVM ecosystem, and packaged for multiple Linux distributions and container environments. The architecture separates concerns into clean modules: capture (V4L2 buffer management with DMA export), encoding (abstraction over CPU/HW/M2M), HTTP server (libevent-based, serving MJPEG streams, snapshots, and static assets), and a generic worker thread pool for parallel JPEG compression. Shared memory sinks (memsink) enable efficient frame transfer to external consumers like the Janus WebRTC plugin or the standalone dump utility. The project also includes a full-featured Janus plugin for H.264/Opus streaming with NTP timestamping and PLI handling, a Python C extension for shared memory client access, and a separate V4 passthrough tool for the PiKVM V4 Plus hardware. Build configuration uses Makefiles with numerous feature flags (WITH_GPIO, WITH_JANUS, WITH_SYSTEMD, etc.), permitting a modular build. Overall, uStreamer exemplifies careful engineering of real-time video pipelines on embedded Linux, with a focus on minimal latency, hardware offload, and robust IPC.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
ImageOptim/ImageOptim ★ 10002 482 APPLICATION

ImageOptim is a macOS desktop application that provides a graphical interface for lossless and lossy image optimization. It bundles over a dozen external optimization tools (e.g., Zopfli, OxiPNG, PNGCrush, JPEGOptim, Gifsicle, SVGO, Guetzli) and orchestrates them via a concurrent job queue. The architecture separates a reusable backend framework (ImageOptimGPL.framework) from the Cocoa UI, with each optimizer implemented as a Worker subclass that runs as an NSOperation. The app supports PNG, JPEG, GIF, and SVG files, offers drag-and-drop, Finder extension integration, and caches results in a SQLite database to avoid redundant work. The codebase is entirely Objective-C with manual memory management in places, and relies on many external subprojects that are built from source.

RATING: 8.2/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
Lymphatus/libcaesium ★ 208 29 APPLICATION

Libcaesium is a Rust library for lossy/lossless compression and conversion of JPEG, PNG, GIF, WebP, and TIFF images, with a C API for cross-language usage. It provides both file-based and in-memory compression, targeting specific output sizes, and preserving EXIF metadata or orientation. The architecture is modular, with format-specific compressors (jpeg.rs, png.rs, etc.) and shared utilities. The code is well-structured, tested across multiple platforms, and integrates advanced libraries like mozjpeg-sys, oxipng, gifski, and libwebp. It avoids framework boilerplate and demonstrates strong engineering practices, though some parts use unsafe Rust for direct JPEG manipulation.

RATING: 7.9/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
artiebits/pdf-to-printer ★ 500 148 APPLICATION

pdf-to-printer is a small, focused Node.js/Electron library that prints PDFs and images to Windows printers by shelling out to a bundled SumatraPDF executable. The public API exposes three async functions: `print()`, `getPrinters()`, and `getDefaultPrinter()`. `print()` validates the target file, builds SumatraPDF command-line arguments from a typed options object (printer, pages, orientation, paper size, duplex, copies, etc.), and executes the binary via `child_process.execFile`. Printer discovery uses PowerShell's `Get-CimInstance Win32_Printer` and parses the formatted text output into structured `Printer` objects with device ID, name, and supported paper sizes. The code is TypeScript with strict mode, unit-tested with Jest, and bundled with webpack for UMD distribution. It is Windows-only by design and throws on other operating systems.

RATING: 7.8/10 MAINT: active DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: