]> git.kaiwu.me - nginx.git/commit
Image filter: fixed image_filter rotate inheritance.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 21 Dec 2012 15:07:45 +0000 (15:07 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 21 Dec 2012 15:07:45 +0000 (15:07 +0000)
commitf25549210d230d5e6bb3ebb81dac897b8d35f113
tree3cedcc1cf3f1d626b376ec3d3423bd31cc247ee2
parentf1819242fcf83ef79808a552d83ffec51713856d
Image filter: fixed image_filter rotate inheritance.

Configurations like

    location /i/ {
        image_filter resize 200 200;
        image_filter rotate 180;

        location /i/foo/ {
            image_filter resize 200 200;
        }
   }

resulted in rotation incorrectly applied in the location /i/foo, without
any way to clear it.  Fix is to handle conf->angle/conf->acv consistently
with other filter variables and do not try to inherit them if there are
transformations defined for current location.
src/http/modules/ngx_http_image_filter_module.c