johnowhitaker commited on
Commit
bfe9ff5
1 Parent(s): 52c2dda

back to smaller outputs, seems to have errors with larger ones

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def update(preset, enhance, video_file):
87
 
88
  size=(426, 240)
89
  vid_size = Image.open(f'guide_frames/0001.jpg').size
90
- if vid_size[0]<vid_size[1]: # Change < to > if larger side should be capped at 256px
91
  size = (256, int(256*(vid_size[1]/vid_size[0])))
92
  else:
93
  size = (int(256*(vid_size[0]/vid_size[1])), 256)
 
87
 
88
  size=(426, 240)
89
  vid_size = Image.open(f'guide_frames/0001.jpg').size
90
+ if vid_size[0]>vid_size[1]: # Change < to > if larger side should be capped at 256px
91
  size = (256, int(256*(vid_size[1]/vid_size[0])))
92
  else:
93
  size = (int(256*(vid_size[0]/vid_size[1])), 256)