Integration of PHP Imagix in Greg PHP Application.
Download package:
composer require greg-md/php-app-imagix
Install package:
./greg install greg-imagix
Nginx
# Imagix
location ~* ^/imagix/.+ {
# If images doesn't exists, send to PHP to create it.
if (!-f $document_root$uri) {
rewrite .+ /imagix.php last;
}
expires max;
add_header Pragma public;
add_header Cache-Control "public";
add_header Vary "Accept-Encoding";
}
MIT © Grigorii Duca