Commit 0d6352d5 authored by Paolo Bacchilega's avatar Paolo Bacchilega

fixed low quality thumbnails for jpeg images

use a better filter to scale the image
parent a7e650c1
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment