Getting started
This guide will show you how to quickly resize your first image using imgproxy.
Installβ
Let's assume you already have Docker installed on your machine β you can pull an official imgproxy Docker image, and youβre done!
docker pull ghcr.io/imgproxy/imgproxy:latest
docker run -p 8080:8080 -it ghcr.io/imgproxy/imgproxy:latest
If you don't have docker or if you want to deploy imgproxy to a cloud, you can check out our installation guide for more installation options.
And that's it! No further configuration is needed, but if you want to unleash the full power of imgproxy, read our configuration guide.
Resize an imageβ
After youβve successfully installed imgproxy, a good first step is to make sure that everything is working correctly. To do that, you can use the following URL to get a resized image of Matt Damon from βThe Martianβ (replace localhost:8080 with your domain if youβve installed imgproxy on a remote server):
Just for reference, hereβs the original image. Using the URL above, imgproxy is instructed to resize it to fill an area of 300x400 size with βsmartβ gravity. βSmartβ means that the libvips library chooses the most βinterestingβ part of the image.
You can learn more on how to process images with imgproxy in the Processing an image guide.
Securityβ
Note that the URL in the above example is not signed. However, itβs highly recommended to use signed URLs in production. Read our Signing a URL guide to learn how to secure your imgproxy installation from attackers.