Unverified Commit 1005e3bf authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

feh_thumbnail_generate: pass-through for images <= thumbnail size

parent 22a627d0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -703,6 +703,13 @@ int feh_thumbnail_generate(Imlib_Image * image, feh_file * file,
				thumb_h = td.cache_dim / ratio;
			else if (ratio != 1.0)
				thumb_w = td.cache_dim * ratio;
		} else {
			/*
			 * The image is smaller than the specified thumbnail size.
			 * Do not cache or transform it.
			 */
			*image = im_temp;
			return 1;
		}

		*image = gib_imlib_create_cropped_scaled_image(im_temp, 0, 0, w, h,