From 69965b876eec0b89bce30fb911d2c559f7e29cc9 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Tue, 17 Feb 2009 22:22:35 +0000 Subject: [PATCH] * Thanks to Steve Hollis for pointing out that GD's default JPEG quality setting is pretty bad for downscaling thumbnails. --- albumart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/albumart.c b/albumart.c index 700927d..bbe7887 100644 --- a/albumart.c +++ b/albumart.c @@ -109,7 +109,7 @@ save_resized_album_art(void * ptr, const char * path, int srcw, int srch, int fi #else gdImageCopyResampled(imdst, imsrc, 0, 0, 0, 0, dstw, dsth, imsrc->sx, imsrc->sy); #endif - gdImageJpeg(imdst, dstfile, -1); + gdImageJpeg(imdst, dstfile, 96); fclose(dstfile); gdImageDestroy(imsrc); gdImageDestroy(imdst);