Skip to content

Commit

Permalink
Removing "gif" from list of known images, so it can be handled as a v…
Browse files Browse the repository at this point in the history
…ideo from FFmpeg (with variable duration/video_length)
  • Loading branch information
jonoomph committed Mar 2, 2025
1 parent b22c58a commit 39d6d38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/classes/image_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def is_image(file_object):
".bmp",
".dpx",
".exr",
".gif",
".jpg",
".jpeg",
".pam",
Expand Down
2 changes: 1 addition & 1 deletion src/windows/models/files_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def get_image_sequence_details(self, file_path):
if dirName in self.ignore_image_sequence_paths:
return None

extensions = ["png", "jpg", "jpeg", "gif", "tif", "svg"]
extensions = ["png", "jpg", "jpeg", "tif", "svg"]
match = re.findall(r"(.*[^\d])?(0*)(\d+)\.(%s)" % "|".join(extensions), fileName, re.I)

if not match:
Expand Down

0 comments on commit 39d6d38

Please sign in to comment.