From ce1ae1ff69309ec7f1905e928a9d43eb8ae86dbe Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 26 Sep 2016 14:56:06 +0200 Subject: jpeg-utils: Add support for custom resize options This change brings the possibility to tweak resize options using standard ImageMagick `convert` command syntax. Separate options are offered for thumbnails. --- src/generators.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/generators.c') diff --git a/src/generators.c b/src/generators.c index 6f64a6f..4cdbe0e 100644 --- a/src/generators.c +++ b/src/generators.c @@ -544,7 +544,8 @@ generate_image (TGallerySetup *setup, if (! copy_file (img_src, img_dst)) log_error (" Error copying image %s to %s\n", img_src, img_dst); } else { - if (! resize_image (img_src, img_dst, img_w, img_h, img_quality, image_size->is_thumbnail, setup->autorotate, exif_data)) + if (! resize_image (img_src, img_dst, img_w, img_h, img_quality, image_size->is_thumbnail, setup->autorotate, exif_data, + image_size->is_thumbnail ? setup->design->imgmagick_thumb_opts : setup->design->imgmagick_resize_opts)) log_error (" Error resizing image %s\n", img_src); } } else { -- cgit v1.2.3