From 387aa042bbe89b575407240f58910e34bb7423a7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 17 Sep 2020 21:43:02 +0200 Subject: Decrease maximum size for waifu2x scaling --- src/ImageUtils.cpp | 2 ++ src/QuickMedia.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ImageUtils.cpp b/src/ImageUtils.cpp index d160450..008d8a9 100644 --- a/src/ImageUtils.cpp +++ b/src/ImageUtils.cpp @@ -94,6 +94,8 @@ namespace QuickMedia { return false; } + // TODO: Also support exif files. Exif files are containers for jpeg, tiff etc so once tiff has been implemented so can exif. + // Exif header is similar to jpeg. bool image_get_resolution(const Path &path, int *width, int *height) { FILE *file = fopen(path.data.c_str(), "rb"); if(!file) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 36efb56..95a0a63 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1982,7 +1982,7 @@ namespace QuickMedia { int image_width, image_height; if(image_get_resolution(image_filepath_tmp, &image_width, &image_height)) { - if(image_height < screen_height * 0.75) { + if(image_height < screen_height * 0.65) { rename_immediately = false; CopyOp copy_op; copy_op.source = image_filepath_tmp; -- cgit v1.2.3