Mercurial > hg > nginx
changeset 3884:ea712f4dc030
fix "image_filter rotate 180" and crop case
the bug has been introduced in r3879
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 07 Apr 2011 09:12:30 +0000 |
parents | 3a7d32071a1a |
children | 46938b7418c6 |
files | src/http/modules/ngx_http_image_filter_module.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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) {