Omnibus commited on
Commit
d193bdc
·
verified ·
1 Parent(s): ff227dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,13 +30,13 @@ def get_concat_h_cut(in1, in2):
30
  return dst
31
 
32
 
33
- def get_concat_v_cut(in1,theme='light'):
34
- im1=Image.open(in1)
35
  if theme=='dark':
36
  color=(31,41,55)
37
  if theme=='light':
38
  color=(255,255,255)
39
- dst = Image.new('RGB', (min(im1.width, im2.width), im1.height + im2.height+100),color=color)
40
  dst.paste(im1, (0, 0))
41
  return dst
42
 
 
30
  return dst
31
 
32
 
33
+ def get_concat_v_cut(im1,theme='light'):
34
+ #im1=Image.open(in1)
35
  if theme=='dark':
36
  color=(31,41,55)
37
  if theme=='light':
38
  color=(255,255,255)
39
+ dst = Image.new('RGB', (im1.width, im1.height +100),color=color)
40
  dst.paste(im1, (0, 0))
41
  return dst
42