OpenSourceProjects logo
flyimg logo

flyimgDockerized application that resizes and crops images on the fly, delivering optimized images in formats such as AVIF, WebP, MozJPEG, or PNG using ImageMagick, with an efficient caching system.

Dockerized application that resizes and crops images on the fly, delivering optimized images in formats such as AVIF, WebP, MozJPEG, or PNG using ImageMagick, with an efficient caching system.

1,219 stars
121 forks
PHP
AGPL-3.0
flyimg screenshot

flyimg

Flyimg is a self-hosted, Dockerized application that optimizes images on-the-fly by resizing, cropping, and compressing them into modern formats like AVIF, WebP, and MozJPEG. It enables you to build your own image optimization service with intelligent caching, eliminating the need for expensive third-party solutions like Cloudinary.

Key Features

  • On-the-fly image optimization: Resize, crop, and compress images dynamically based on URL parameters
  • Modern format support: Generates AVIF, WebP, MozJPEG, PNG, GIF, and JPEG XL formats with automatic format negotiation
  • Intelligent caching system: Caches processed images for fast subsequent delivery
  • Docker containerized: Single container deployment with Nginx and PHP-FPM pre-configured
  • Remote image fetching: Pull images from any URL and optimize them in real-time

Use Cases

  • High-performance media platforms: Serve optimized images to millions of users with efficient caching
  • E-commerce optimization: Automatically generate product images in multiple sizes and formats
  • Content delivery networks: Replace expensive CDN image optimization services with self-hosted solution
  • Responsive web design: Dynamically resize images for different devices and screen sizes

Who Is It For

Developers and teams who need production-grade image optimization without vendor lock-in or recurring service fees. It's ideal for those comfortable with Docker who want full control over their image pipeline and the flexibility to customize parameters for their specific needs.