Skip to content

Commit

Permalink
ok the comments will be slightly changed due to the durations bit bei…
Browse files Browse the repository at this point in the history
…ng lowk from AI HOWEVER THE PRETTY UPDATE WILL BE SENT SHORTLY!!
  • Loading branch information
marvin5567 committed May 22, 2024
1 parent 17bf8a8 commit e26bade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def brightnessCheker(rgb_color):

shutil.rmtree(temp_dirt)

# Ensure the durations match the number of frames

durations = [img.info.get('duration', 100) for _ in range(len(os.listdir(temp_dir)))]
durations = [d / 1000 for d in durations] # Convert from milliseconds to seconds
durations = [d / 1000 for d in durations]

images = [imageio.imread(os.path.join(temp_dir, filename)) for filename in sorted(os.listdir(temp_dir))]

Expand Down

0 comments on commit e26bade

Please sign in to comment.