--- a/plugins/jpeg-thumbnailer/jpeg-thumbnailer.c 2011-10-01 19:20:56.000000000 +0200 +++ b/plugins/jpeg-thumbnailer/jpeg-thumbnailer.c 2011-10-07 13:37:39.000000000 +0200 @@ -201,14 +201,11 @@ gint height, gint size) { - if (width > size * 8 && height > size * 8) - return 8; - else if (width > size * 4 && height > size * 4) - return 4; - else if (width > size * 2 && height > size * 2) - return 2; - else - return 1; + if (width > height) + { + return width / size; + } + return height / size; }