mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 20:01:45 +00:00
fix "image_filter rotate 180" and crop case
the bug has been introduced in r3879
This commit is contained in:
parent
f352259dd6
commit
ea38fe54bd
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue