diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-12-30 20:38:35 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-12-30 20:38:35 +0100 |
| commit | 7c07cbdbc469d8eab075d32c27039d8683b9cdf8 (patch) | |
| tree | 98215f5921bba26616462daa67643462f27617f5 /generators.c | |
| parent | e420e9f3fbd5e758e4a1489766f74030a1b77b88 (diff) | |
| download | cataract-7c07cbdbc469d8eab075d32c27039d8683b9cdf8.tar.xz | |
Strip unneeded blocks during thumbnail generation
Diffstat (limited to 'generators.c')
| -rw-r--r-- | generators.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generators.c b/generators.c index 8c8bc4e..b94a691 100644 --- a/generators.c +++ b/generators.c @@ -101,7 +101,7 @@ generate_image (TGallerySetup *setup, calculate_sizes (setup->thumbnail_landscape_width, setup->thumbnail_landscape_height, &thumb_w, &thumb_h); else calculate_sizes (setup->thumbnail_portrait_width, setup->thumbnail_portrait_height, &thumb_w, &thumb_h); - if (! resize_image (thumb_src_full, thumb_dst, thumb_w, thumb_h, setup->thumbnail_quality)) + if (! resize_image (thumb_src_full, thumb_dst, thumb_w, thumb_h, setup->thumbnail_quality, TRUE)) fprintf (stderr, "write_html_index: error resizing thumbnail %s\n", thumb_src_full); else if (setup->verbose) printf (" done.\n"); @@ -147,7 +147,7 @@ generate_image (TGallerySetup *setup, } } - if (! resize_image (img_src_full, big_dst, new_w, new_h, bigq)) + if (! resize_image (img_src_full, big_dst, new_w, new_h, bigq, FALSE)) fprintf (stderr, "write_html_index: error resizing big image %s\n", img_src_full); else if (setup->verbose) printf (" done.\n"); |
