[gthumb] fixed low quality thumbnails for jpeg images
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed low quality thumbnails for jpeg images
- Date: Mon, 1 Jul 2013 17:13:21 +0000 (UTC)
commit 0d6352d56f2e905316917a103fc1597b791c9540
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jul 1 19:11:23 2013 +0200
fixed low quality thumbnails for jpeg images
use a better filter to scale the image
extensions/cairo_io/cairo-image-surface-jpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/cairo_io/cairo-image-surface-jpeg.c b/extensions/cairo_io/cairo-image-surface-jpeg.c
index a846999..96ad677 100644
--- a/extensions/cairo_io/cairo-image-surface-jpeg.c
+++ b/extensions/cairo_io/cairo-image-surface-jpeg.c
@@ -543,7 +543,7 @@ _cairo_image_surface_create_from_jpeg (GInputStream *istream,
width = destination_width;
height = destination_height;
scale_keeping_ratio (&width, &height, requested_size, requested_size, TRUE);
- scaled = _cairo_image_surface_scale_nearest (surface, width, height);
+ scaled = _cairo_image_surface_scale (surface, width, height, SCALE_FILTER_GOOD, NULL);
cairo_surface_destroy (surface);
surface = scaled;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]