samdobson / image_slicer

Split images into tiles. Join the tiles back together.
http://samdobson.github.io/image_slicer
MIT License
151 stars 73 forks source link

File rename? #10

Open nvacsuf opened 5 years ago

nvacsuf commented 5 years ago

Try to figure out how to modify sliced file names before saving them. image_slicer.slice(filename, 4, save=True)

Currently, this option it saves all of them in this format filename_01_01.jpg filename_01_02.jpg filename_02_01.jpg filename_02_02.jpg

Cannot find option to modify with the library.

I am looking to get this format. filename_1.jpg filename_2.jpg filename_3.jpg filename_4.jpg

samdobson commented 5 years ago

Row and column number is included to enable tiles to be joined back together. Should be trivial to rename with a shell script. Pull requests to add this functionality to the library in a non-breaking way are welcome.