diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2016-09-26 14:56:06 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2016-10-02 17:11:34 +0200 |
| commit | ce1ae1ff69309ec7f1905e928a9d43eb8ae86dbe (patch) | |
| tree | 1333e1cf81b034681c4ac6b35665c17ccd984048 /src/generators.c | |
| parent | c80c60eb0623268112b5a0c37d80ada0384c3e90 (diff) | |
| download | cataract-ce1ae1ff69309ec7f1905e928a9d43eb8ae86dbe.tar.xz | |
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.
Diffstat (limited to 'src/generators.c')
| -rw-r--r-- | src/generators.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |
