diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-17 21:13:10 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-17 21:13:10 +0200 |
commit | 017da56672c4187e5fb9b8e8f21a3d813ea034e1 (patch) | |
tree | 129e37e7102f522ccbb7cd2e6432499ffc3f130c | |
parent | 6eb63fcfd9282a0f8be3f1a794d1335371b8fe29 (diff) |
Output png for waifu2x to fix transparent images not converting
-rw-r--r-- | src/QuickMedia.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 }; |