aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-04-07 09:12:30 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-04-07 09:12:30 +0000
commitea38fe54bde053c4d60e9be7b1fcb08ea95e7e95 (patch)
tree53b72be9ee89b4172e44e980d07b3b3ec48c455e /src
parentf352259dd64ead84773e89da4258a768c00bf57e (diff)
downloadnginx-ea38fe54bde053c4d60e9be7b1fcb08ea95e7e95.tar.gz
nginx-ea38fe54bde053c4d60e9be7b1fcb08ea95e7e95.zip
fix "image_filter rotate 180" and crop case
the bug has been introduced in r3879
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_image_filter_module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_image_filter_module.c b/src/http/modules/ngx_http_image_filter_module.c
index de1634a86..ecbfd158b 100644
--- a/src/http/modules/ngx_http_image_filter_module.c
+++ b/src/http/modules/ngx_http_image_filter_module.c
@@ -863,6 +863,10 @@ transparent:
}
gdImageCopyRotated(dst, src, dy/2, dx/2, 0, 0, dx, dy, ctx->angle);
gdImageDestroy(src);
+
+ t = dx;
+ dx = dy;
+ dy = t;
break;
case 180:
@@ -875,10 +879,6 @@ transparent:
gdImageDestroy(src);
break;
}
-
- t = dx;
- dx = dy;
- dy = t;
}
if (conf->filter == NGX_HTTP_IMAGE_CROP) {