(image_file)
| 7 | |
| 8 | |
| 9 | def 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 | |
| 18 | def get_image_size(image_path): |