GoREST APIImage Processing

Image Compression Service

A lightweight backend service written in Go that processes images on-the-fly through URL pattern routing. Supports resizing, smart crop (region of interest detection), manual crop, horizontal flip, and a chainable filter pipeline including grayscale, blur, brightness, and contrast adjustments. Output can be served in JPEG, PNG, or WebP format with configurable quality. Features a 2-layer caching system (in-memory via sync.Map + disk) using MD5 hashing as cache keys to minimize redundant processing.

Image Compression Service

Key Features

In-depth explanation of the main functionalities and technical implementation of Image Compression Service.

  • 01URL-Based Image Processing
  • 02Smart Crop Detection
  • 03Filter Pipeline (Grayscale, Blur, Brightness, Contrast)
  • 04Multi-Format Output (JPEG, PNG, WebP)
  • 052-Layer Caching (RAM + Disk)
  • 06Watermark Overlay
  • 07Load Testing Utility
Back to Portfolio