Page 1 of 1

Posted: 2006-10-30T20:24:37-07:00
by glennrp
Use %04d instead of %d, to keep the numerical and lexical order the same.

Posted: 2006-10-30T21:03:02-07:00
by anthony
I would also add a +repage, unless you actually want to preserve the 'offset' or position of the tile in the final images.

PNG can save the virtual canvas offsets of images. Even negative offsets.

Actually I'd hope to eventually write a script that will read the offsets of a tile cropped image, and rename the images as tile_XxY.png ot whatever. that is instead of a single number, generate two seperate numbers.

I have done this before for cre-naming image basied on their builtin offsets (jigsaw puzzle masks) but that was too specific to the problem at hand to be converted into a more general script.

If anyone likes to give it a go. I am sure it would be welcome. I'll add it and your name into IM Examples on Tile Cropping
http://www.cit.gu.edu.au/~anthony/graph ... #crop_tile