./configure --add-module=/home/fastdfs-nginx-module-master/src/ --prefix=/usr/local/nginx --user=nobody --group=nobody --with-http_gzip_static_module --with-http_gunzip_module --with-http_image_filter_module
location ~ /group1/M00/(.*)\.((?i)jpg|jpeg|gif|png)_([0-9]+)x([0-9]+) { ngx_fastdfs_module; rewrite group1/M00(.+)\.((?i)jpg|jpeg|gif|png)_(\d+)x(\d+)$ group1/M00$1.$2 break; image_filter crop $3 $4; image_filter_jpeg_quality 50; image_filter_buffer 2M; } location ~ /group1/M00/(.+)\.?(.+) { root /home/fastdfs/storage/data; ngx_fastdfs_module; }