Skip to content

Commit

Permalink
look for JPG
Browse files Browse the repository at this point in the history
  • Loading branch information
Kautenja committed Apr 3, 2021
1 parent 0fba86d commit 79d280d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frames_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def pairs(iterable):
interpolation_frames = int(argv[3])

# get the frames from the given directory in sorted order
frames = [filename for filename in listdir(directory) if '.png' in filename]
frames = [filename for filename in listdir(directory) if '.jpg' in filename]
# use the integer filename value to account for the lack of 0 padding
frames = sorted(frames, key=lambda x: int(re.sub(r'[^0-9]+', "", x)))
# open the frames as images
Expand Down

0 comments on commit 79d280d

Please sign in to comment.