Welcome
The Flyimg project is a Dockerized application that allows you to resize, crop, and compress images on the fly. One Docker container to build your own Cloudinary-like service.
By default, Flyimg generates the AVIF image format (when the browser supports it) which provides superior compression compared to other formats.
Additionally, Flyimg also generates the WebP format, along with the impressive MozJPEG compression algorithm to optimize images, other formats are supported also such as PNG and GIF.
How it works:
Fetch an image from anywhere; resize, compress, cache and serve...and serve, and serve, and serve...
You pass the image URL and a set of keys with options, like size or compression. Flyimg will fetch the image, convert it, store it, cache it and serve it. The next time the request comes, it will serve the cached version.
<!-- https://mudawn.com/assets/butterfly-3000.jpg -->
<img
src="https://demo.flyimg.io/upload/w_300,q_90/https://mudawn.com/assets/butterfly-3000.jpg"
/>
Demo
Check out our demo page where you can test and review Flying's features:
Cloud Run Button
Flyimg can be deployed to GCP as a serverless container in one click with Cloud Run Button:
How to transform images
You go to your server URLhttp://imgs.kitty.com
and append /upload/
; after that you can pass these options below, followed by an underscore and a value w_250,q_50
Options are separated by coma (configurable to other separator).
After the options put the source of your image, it can be relative to your server or absolute: /https://my.storage.io/imgs/pretty-kitten.jpg
So to get a pretty kitten at 250 pixels wide, with 50% compression, you would write.
<img src="http://imgs.kitty.com/upload/w_250,q_50/https://my.storage.io/imgs/pretty-kitten.jpg">
Demo Application running
https://demo.flyimg.io/upload/w_300,h_250,c_1,o_jpg/https://mudawn.com/assets/butterfly-3000.jpg
Star History
Community
Adopters
See the ADOPTERS.md file for a list of companies / organisations that are using Flyimg.
Supporters
A special thanks to JetBrains for supporting our project with their open source license program.
Contributors
This project exists thanks to all the people who contributed to it
Backers & Sponsors
Support us with a monthly donation and help us continue our activities.[opencollective.com]
License
The MIT License (MIT). Please see License File for more information.
Enjoy your Flyimaging!