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

Zero-pad screenshot filenames #147

Open
utdrmac opened this issue May 3, 2018 · 1 comment
Open

Zero-pad screenshot filenames #147

utdrmac opened this issue May 3, 2018 · 1 comment

Comments

@utdrmac
Copy link

utdrmac commented May 3, 2018

Screenshot option of decktape outputs filenames as such:

$prefix_1_908x681.png
...
$prefix_10_908x681.png
$prefix_11_908x681.png
...

When you batch open the images, they open out of order due to lack of zero-padding in the slide numbers. The above sequence would actually open as 10,11,12,..,19,1,21,22,...

Renaming to 01, 02, 03,...,10,11, etc allows proper ordering when opening files.

Since the total number of slides is known before exporting, it should be easy enough to calculate how many zero's are needed to pad.

@ysb33r
Copy link

ysb33r commented May 12, 2019

Probably would be better if the padding can be specified with a formatting string in a similar way that deck2pdf does i.e. %02

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

No branches or pull requests

3 participants