Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will rename ordered files #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Will rename ordered files #11

wants to merge 4 commits into from

Conversation

Atlae
Copy link

@Atlae Atlae commented May 12, 2021

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.

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
Copy link
Author

Atlae commented May 12, 2021

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.

@buthed010203
Copy link
Contributor

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.

@Atlae
Copy link
Author

Atlae commented May 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants