Skip to content

Commit

Permalink
chore: add more supported filename extensions (#647)
Browse files Browse the repository at this point in the history
* chore: add more supported filename extensions

* fix: missing comma
  • Loading branch information
malconsei authored Jul 10, 2023
1 parent 7c37db9 commit 99186c1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion mapillary_tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,31 @@ def md5sum_fp(


def is_image_file(path: Path) -> bool:
return path.suffix.lower() in (".jpg", ".jpeg", ".tif", ".tiff", ".pgm", ".pnm")
return path.suffix.lower() in (
".jpg",
".jpeg",
".jpe",
".tif",
".tiff",
".pgm",
".pnm",
)


def is_video_file(path: Path) -> bool:
return path.suffix.lower() in (
".mp4",
".avi",
".tavi",
".dv",
".m2t",
".m2ts",
".m4v",
".mqv",
".mts",
".ts",
".mov",
".qt",
".mkv",
# GoPro Max video filename extension
".360",
Expand Down

0 comments on commit 99186c1

Please sign in to comment.