Bug 500541 - Image sequence (MIME type) out of order
Summary: Image sequence (MIME type) out of order
Status: RESOLVED UPSTREAM
Alias: None
Product: kdenlive
Classification: Applications
Component: Project Bin & Import (other bugs)
Version First Reported In: 24.12.2
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-21 19:00 UTC by Timwi
Modified: 2025-03-26 08:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timwi 2025-02-21 19:00:45 UTC
SUMMARY

The “Add Image Sequence” command, when using the MIME type option, has a mind of its own when it comes to the order in which to include the images and provides no means to reorder them.

STEPS TO REPRODUCE
1. Create ≥ 11 images named “Image0.png”, “Image1.png”, etc., up to “Image10.png” (and optionally beyond).
2. Project → Add Image Sequence, method: MIME type
3. Select the folder containing the images

OBSERVED RESULT

The images are ordered Image0.png, Image1.png, then Image10.png, then Image2.png, etc. It is clear that they are lexicographically sorted.

EXPECTED RESULT

I suppose lexicographical sorting isn’t the worst of defaults, but given that it fails in this situation, the user should have the option to reorder them. I’d be happy even if that option is available only by editing the project XML file, but it looks like that is not an option.
Comment 1 Jean-Baptiste Mardelle 2025-03-26 08:18:30 UTC
Image sequences are handled inside our video backend MLT, and yes, it uses a basic alphanumeric sorting and there is no way to manually reorder the images. We have no plan to change that in the short term, the workaround is to correctly name your images like:

Image001.png
Image002.png
Image003.png
...

There are probably some utilities that can hadle such renaming