Instead of writing an image manipulation module for your application, you can configure NGINX to handle some simple transformations. If your image-manipulation needs are as simple as rotating an image, resizing it, or cropping it, NGINX is capable of doing this for you.
To make use of this functionality, you need to have installed the
libgd library, and enabled the
image_filter module at compile-time (
--with-http_image_filter_module). If that is the case, you now have use of the directives in the following table:
The GD library (
libgd) is an image generation library written in C. It is often used in combination with a programming language such as PHP or Perl to generate images for websites. NGINX's
image_filter module uses ...