DesmosBezierRenderer icon indicating copy to clipboard operation
DesmosBezierRenderer copied to clipboard

Will rename ordered files

Open Atlae opened this issue 3 years ago • 3 comments

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.

Atlae avatar May 12 '21 10:05 Atlae

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.

Atlae avatar May 12 '21 10:05 Atlae

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.

buthed010203 avatar May 16 '21 19:05 buthed010203

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.

Atlae avatar May 23 '21 06:05 Atlae