MCPcopy Index your code
hub / github.com/TensorPy/TensorPy / has_minimum_image_dimensions

Function has_minimum_image_dimensions

tensorpy/image_base.py:47–52  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

45
46
47def has_minimum_image_dimensions(image):
48 width, height = get_image_dimensions(image)
49 if width >= settings.MIN_W_H and height >= settings.MIN_W_H:
50 return True
51 else:
52 return False
53
54
55def save_image_as_jpg(image, outfile_path):

Callers

nothing calls this directly

Calls 1

get_image_dimensionsFunction · 0.85

Tested by

no test coverage detected