Back to App

Technical Deep Dive

Discover how WebAssembly and jSquash codecs power our fast, private, and efficient image compression tool

The Technology Behind imgshrnk

Lightning-fast image compression powered by WebAssembly, running entirely in your browser

🛠️

jSquash Codecs

jSquash is a collection of industry-standard image compression libraries compiled to WebAssembly for high-performance optimization.

  • Multi-format support: Compresses JPEG, PNG, WebP, and AVIF images
  • Optimized algorithms: Leverages MozJPEG, Oxipng, and WebP encoders
  • Quality control: Fine-tuned balance between file size and visual fidelity
  • Parallel processing: Handles multiple images simultaneously

WebAssembly Runtime

WebAssembly enables near-native performance for image compression directly in the browser, leveraging SIMD instructions.

  • High performance: Runs at 95% of native C++ speed
  • SIMD acceleration: Parallelizes compression tasks
  • Memory efficient: Streams data for large images
  • Cross-browser: Consistent performance across modern browsers

🔄 Compression Pipeline

📥
1. Image Input
Decode input image data
🔍
2. Preprocess
Normalize and prepare pixels
⚙️
3. Compress
Apply jSquash codecs
📏
4. Optimize
Balance size and quality
💾
5. Encode Output
Generate optimized file

📊 Compression Formats Comparison

FormatCompressionQualitySpeedBest For
JPEG (MozJPEG)High⭐⭐⭐⭐FastPhotos, web images
PNG (Oxipng)Moderate⭐⭐⭐⭐⭐ModerateGraphics, transparency
WebPVery High⭐⭐⭐⭐FastModern web, animation
AVIFHighest⭐⭐⭐⭐⭐SlowerNext-gen web images

Key Features & Benefits

🔒

100% Private & Secure

All compression happens locally in your browser. No uploads, no data collection, ensuring complete privacy.

Lightning-Fast Performance

WebAssembly delivers near-native speed, compressing images up to 10x faster than JavaScript-based tools.

📏

High-Quality Compression

jSquash codecs optimize file size while preserving visual quality, perfect for web and professional use.

🌐

Works Offline

Once loaded, the WebAssembly module is cached, allowing compression without an internet connection.

💰

Completely Free

No subscriptions or limits. Compress unlimited images for free using open-source jSquash libraries.

📦

Batch Processing

Compress multiple images in parallel and download them all with a single click for maximum efficiency.

Technical Specifications

🌐 Browser Requirements

  • WebAssembly Support: Chrome 57+, Firefox 52+, Safari 11+, Edge 16+
  • SIMD Instructions: Chrome 91+, Firefox 89+ for optimal performance
  • Minimum RAM: 2GB recommended for smooth operation
  • Storage: ~5-10MB for WebAssembly module caching

📄 Supported Formats

Input Formats:
JPEG, PNG, WebP, AVIF, BMP, TIFF
Output Formats:
JPEG, PNG, WebP, AVIF
Max Image Size:
8192×8192 pixels (auto-resize for larger images)
Color Space:
RGB, sRGB color space

📈 Performance Metrics

Module Load Time (first visit):2-5s
Module Load Time (cached):< 0.5s
Processing (1024×768, JPEG):1-2s
Processing (1024×768, AVIF):3-5s
Memory Usage:50-200MB

🛠️ Technology Stack

  • Framework: Vue 3 Composition API with Nuxt 3
  • Compression Library: jSquash (MozJPEG, Oxipng, WebP, AVIF)
  • Runtime: WebAssembly with SIMD support
  • Styling: Tailwind CSS 3.x

Ready to Optimize Your Images?

Experience fast, private, and high-quality image compression in your browser

Start Compressing Images