From c01948dc3f8f355f119d3e98b921098d519ea056 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Fri, 9 Jun 2023 17:03:25 +0200 Subject: [PATCH] fix lots of GUI bugs + styling a lil --- bin/__pycache__/handler.cpython-311.pyc | Bin 11204 -> 11185 bytes bin/engines/ss/ss.py | 1 + bin/handler.py | 4 +-- frontend/src/App.vue | 5 ++-- frontend/src/assets/logo.png | Bin 6849 -> 606493 bytes frontend/src/upscalingHandler.js | 16 +++++++++-- frontend/src/views/AboutView.vue | 2 +- frontend/src/views/HomeView.vue | 36 ++++++++++++++++++++++++ frontend/src/views/SettingsView.vue | 2 -- logo_upscaled.png | Bin 0 -> 3066836 bytes smuL-cli.py | 10 +++++-- 11 files changed, 63 insertions(+), 13 deletions(-) mode change 100644 => 100755 frontend/src/assets/logo.png create mode 100644 logo_upscaled.png diff --git a/bin/__pycache__/handler.cpython-311.pyc b/bin/__pycache__/handler.cpython-311.pyc index 81aa30108399d834319ea3aea432cde87d069844..62915c61a6b5a0646efcca4ce2ec9915a1c7303d 100644 GIT binary patch delta 147 zcmX>SzA>D4IWI340}!y7Hm7uM`S#gr?N$LO4)q+J%gqi^6$Vg!3-&D7CqiiH zID9vAa&j>;>P!~l3StI|ZcgQz&cyg?^Ix7=CM_O;>pXIoc;psvtkB+2eZc)h)P=~z z3(4shGV?F;6kg#eyZ}R+>-n`AHPF<1T?h!j5E*|VG4&!(`W2q^3ox|#jKEVV0L*tg An*aa+ diff --git a/bin/engines/ss/ss.py b/bin/engines/ss/ss.py index 75ccfee..938670c 100644 --- a/bin/engines/ss/ss.py +++ b/bin/engines/ss/ss.py @@ -23,6 +23,7 @@ class Scaler: os.system( self.command ) print( '\n\n==>Photo upscaled' ); + return True; def videoScaler ( self, tmppath, threads, scalefactor, sharpening, filetype, mode ): modes = { 'av3':'realesr-animevideov3', 'x4plus': 'realesrgan-x4plus-anime' } diff --git a/bin/handler.py b/bin/handler.py index 9d6d66b..25fafa8 100755 --- a/bin/handler.py +++ b/bin/handler.py @@ -86,10 +86,10 @@ class Handler: # Determining filetype if str(filepath)[len(filepath) - 4:] == '.mp4' or str(filepath)[len(filepath) - 4:] == '.mkv' or str(filepath)[len(filepath) - 4:] == '.MP4': print( '\n\n==> Upscaling video' ) - self.video_scaling( filepath, output_path, scalefactor, threads, sharpening, filetype, mode, engine ) + return self.video_scaling( filepath, output_path, scalefactor, threads, sharpening, filetype, mode, engine ) elif str(filepath)[len(filepath) - 4:] == '.JPG' or str(filepath)[len(filepath) - 4:] == '.png' or str(filepath)[len(filepath) - 4:] == '.jpg' or str(filepath)[len(filepath) - 5:] == '.jpeg': print( '\n==> Upscaling Image' ) - self.photo_scaling( filepath, output_path, scalefactor, sharpening, threads, engine, mode ) + return self.photo_scaling( filepath, output_path, scalefactor, sharpening, threads, engine, mode ) else: print('not supported') return False diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 8e8ecaa..e7ae4b9 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,8 +1,9 @@