The HW Blog

Want to be updated? @opencoconut | Feed

Thumbnail filename sequence number with printf

Bruno Celeste (@brunoceleste)

March 03, 2015 Features

We just added a new functionality that lets you customize the thumbnail filename sequence number.

By default we use the special variable #num# that is a 2 digits sequence number (%.2d) so you get thumb_01.jpg, thumb_02.jpg, thumb_03.jpg, etc by default. If you are not happy with this choice, you can now set your own printf format identifier. Note that we currently support decimal format only.

For instance, if you don't want the 0 before the first 9 numbers, just set the filename like this: thumb_%1d.jpg and you will get thumb_1.jpg, thumb_2.jpg, etc. Easy enough!



Any Comment? Send us a message on Twitter @opencoconut
If you have questions or feedbacks, you can also contact us via our contact page