diff options
Diffstat (limited to 'src/jpeg-utils.c')
| -rw-r--r-- | src/jpeg-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jpeg-utils.c b/src/jpeg-utils.c index aa3a1cc..e992bfa 100644 --- a/src/jpeg-utils.c +++ b/src/jpeg-utils.c @@ -549,9 +549,9 @@ resize_image (const gchar *src, const gchar *dst, if (source_aspect != target_aspect) { if (target_aspect >= source_aspect) { new_w = w; - new_h = lround ((double) w / target_aspect); + new_h = (double) w / target_aspect; } else { - new_w = lround ((double) h * target_aspect); + new_w = (double) h * target_aspect; new_h = h; } MagickCropImage (magick_wand, new_w, new_h, (w - new_w) / 2, (h - new_h) / 2); |
