MCPcopy Create free account
hub / github.com/devilsen/CZXing / is_image

Function is_image

python/Labeler.py:9–15  ·  view source on GitHub ↗
(image_file)

Source from the content-addressed store, hash-verified

7
8
9def is_image(image_file):
10 split_file = image_file.split(".")
11 if len(split_file) <= 1:
12 return False
13 else:
14 file_suffix = split_file[1]
15 return file_suffix == "jpg" or file_suffix == "png" or file_suffix == "jpeg"
16
17
18def get_image_size(image_path):

Callers 1

start_labelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected