aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-17 21:43:02 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-17 22:35:49 +0200
commit387aa042bbe89b575407240f58910e34bb7423a7 (patch)
tree4a0d6a9d9a9ba448395857ba48002662f4b08f03
parent017da56672c4187e5fb9b8e8f21a3d813ea034e1 (diff)
Decrease maximum size for waifu2x scaling
-rw-r--r--src/ImageUtils.cpp2
-rw-r--r--src/QuickMedia.cpp2
2 files changed, 3 insertions, 1 deletions
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;