Changeset 4601:084137d883ec in nginx
- Timestamp:
- 04/21/12 19:02:21 (6 years ago)
- Branch:
- default
- Convert:
- svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@4602
- File:
-
- 1 edited
-
src/http/modules/ngx_http_image_filter_module.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/http/modules/ngx_http_image_filter_module.c
r4412 r4601 818 818 resize = 0; 819 819 820 if ((ngx_uint_t) (dx * 100 / dy) 821 < ctx->max_width * 100 / ctx->max_height) 822 { 820 if ((double) dx / dy < (double) ctx->max_width / ctx->max_height) { 823 821 if ((ngx_uint_t) dx > ctx->max_width) { 824 822 dy = dy * ctx->max_width / dx;
Note: See TracChangeset
for help on using the changeset viewer.
