Browse Source

Bug fix

tags/v1.2.10
deeppppp 1 year ago
parent
commit
4cde540b42
1 changed files with 10 additions and 2 deletions
  1. 10
    2
      processing/utils.py

+ 10
- 2
processing/utils.py View File

@@ -59,11 +59,19 @@ def auto_rescale(args, p):
return add_tail(args, p, ImageToRescale)


def is_file(args):
def is_file(args, path):
if (os.path.isdir(path)):
return False
for mod in (overlay, auto_resize, auto_resize_crop, auto_rescale):
if args.get(mod.__name__):
return True

if not args['ignore_size']:
check_shape(args['input'])
check_shape(path)
else:
Conf.log.warn('Image Size Requirements Unchecked.')
return True


def scale_mod(args, p):

Loading…
Cancel
Save