Install libnginx-mod-http-image-filter by entering the following commands in the terminal:
sudo apt update sudo apt install libnginx-mod-http-image-filter
HTTP image filter module for Nginx
The ngx_http_image_filter module is a filter that transforms images in JPEG, GIF, and PNG formats. . The module supports filters such as rotate, resize, crop, quality, sharpening, interlacing and more.