christophlehmann / imgproxy
TYPO3 Extension for serving images with imgproxy.
Installs: 23 554
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 2
Forks: 3
Open Issues: 4
Type:typo3-cms-extension
pkg:composer/christophlehmann/imgproxy
Requires
- typo3/cms-core: ^10.4 || ^11.5 || ^12.0
This package is auto-updated.
Last update: 2025-10-21 20:00:07 UTC
README
Use imgproxy to render images asynchronously and serve them in new formats like webp and avif when the client supports them.
Basically TYPO3 now just renders a processing url and imgproxy serves the resulting image. The image processing is really fast compared to GraphicsMagick and ImageMagick and less memory hungry.
It does not store thumbnail informations in sys_file_processedfile nor save generated images locally, so for production usage a caching proxy is highly recommended.
Installation
composer require christophlehmann/imgproxy
Configuration
improxyUrlis the url of imgproxy.key&saltare used for signing the urls. Generate them withecho $(xxd -g 2 -l 64 -p /dev/random | tr -d '\n').helperUrlcan be used to tell imgproxy how it reaches the source image. Handy in development environment: Set it to the projects live url and you don't need the images locally.allowedExtensionsList of file extensions that should be handled with imgproxyformatQualityCan be used to define different compressions for avif,webp,.. Default: empty (TYPO3s quality setting is used). Example:jpeg:70:avif:40:webp:60
Run imgproxy locally with docker
- Set
imgproxyUrltohttp://localhost:8080 - Set
helperUrltolocal:///when the docker container can't reach your local webserver - Start imgproxy
docker run \ --env IMGPROXY_KEY=*yourkey* \ --env IMGPROXY_SALT=*yoursalt* \ --env IMGPROXY_ENABLE_WEBP_DETECTION=true \ --env IMGPROXY_ENABLE_AVIF_DETECTION=true \ --env IMGPROXY_LOCAL_FILESYSTEM_ROOT=/data \ --volume /path/to/documentroot:/data \ --publish 127.0.0.1:8080:8080 \ -it darthsim/imgproxy