DesmosBezierRenderer
DesmosBezierRenderer copied to clipboard
Will rename ordered files
In certain scenarios, like if splitting a GIF into its PNG images, it will be ordered but be named weirdly. Rather than manually changing like 300, hopefully this will change any PNG file to the desired syntax. You can upload any random PNG file you want without renaming them and they will be summarily renamed.
Actually, now that I think about it, it might be more efficient to run this with in backend.py with the preferred FRAME_DIR and FILE_EXT variables. I'll catch some sleep first before doing that, though.
I don't think theres really a need to add this to backend.py, that would just increase the run time when the files are likely already in the right order.
Alright, I fixed the code a bit so that you can now customize your frame directory and desired file extension like you can in backend.py. Might not be the most elegant solution, but oh well.