mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-26 07:35:54 +03:00
[GH-ISSUE #1398] [Bug] Importing Image Sequences Is Extremely Slow #3655
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#3655
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zarstensen on GitHub (Jul 1, 2025).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1398
Originally assigned to: @NickeManarin on GitHub.
Describe the bug
Importing an image sequence consisting of 3600 (1920 x 1080; ~8MB) PNG images takes a very long time.
The most recent attempt i made took more than 20 minutes, meaning each image took at least 1/3 of a second to import.
Another attempt with a subset of 50 images from the same image sequence took around 14 seconds, which again means each image took ~1/3 of a second to import.
To Reproduce
Expected behavior
Taking 1/3 of a second for an image to be imported seems like a rather long time to me, ideally something should be optimized (see additional context for my uninformed take :) ) so this is not as slow.
Desktop (please complete the following information):
Additional context
I ran a rough profiling of the code base, and it seems most of the runtime is spent on decoding and re-encoding the image sequence into PNG's, which seems rather redundant considering the original image sequence already consisted of PNG's.
Link to source code i am referring to
Could a check be made somewhere if the source image sequence can just be directly copied instead of this de-re encoding to speed up the process, as a possible optimization?