Manipulation like resizing to cropping, rotating an image is very easy through image_filter module of nginx. In addition we can cache this manipulated images.
We will need 2 nginx server.
- original server [ i,e, http://mysite.local:80 ]
- media server. [ i,e, http://media.local:80 ] This server will be used to deliver the desired resized or cropped images.
Here is the configuration for the servers: