From 017da56672c4187e5fb9b8e8f21a3d813ea034e1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 17 Sep 2020 21:13:10 +0200 Subject: Output png for waifu2x to fix transparent images not converting --- src/QuickMedia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 7d7ae24..36efb56 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -353,7 +353,7 @@ namespace QuickMedia { } Path tmp_file = copy_op.source; - tmp_file.append(".tmp.jpg"); + tmp_file.append(".tmp.png"); fprintf(stderr, "Upscaling %s\n", copy_op.source.data.c_str()); const char *args[] = { "waifu2x-ncnn-vulkan", "-i", copy_op.source.data.c_str(), "-o", tmp_file.data.c_str(), nullptr }; -- cgit v1.2.3