How can I configure “Image Filter” module of nginx to get width and height for resize operation from the url? For example,
http://mysite/img/image600x800.jpg should return image.jpg resized to 600×800 size.
How can I configure Image Filter module of nginx to get width and height
Share
first extract the widht and height, saving the values in a variable like so:
you can then add something like
image_filter resize $width $height;and whatever other directives needed to actually server the file