how do you break up a big image into smaller images?

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
User avatar
roid
DBB Master
DBB Master
Posts: 9996
Joined: Sun Dec 09, 2001 3:01 am
Location: Brisbane, Australia
Contact:

how do you break up a big image into smaller images?

Post by roid »

how do you break up a big image into smaller images - en-mass?

what i want to do is break up some of my huge satelite photos and maps into a grid of smaller logically named "tiles" that make up the whole.

i want to do this so that i can use Virtural Texturing techniques in Celestia, so that i don't have to load whole textural planetary images of colourmaps/normalmaps/specularmaps/whatever (can take upto hundreds of megabytes), but can just load "what i see" instead.
but that's all becides the point, coz all i need is:

an automated way to break up huge images into smaller saved logically named files (ie: tx_0_0.jpg tx_0_1.jpg tx_1_0.jpg tx_1_1.jpg) .

i'm not sure of the LINGO i should be putting into google. all of my searches for "tiles" seem to be talking about howto make reoccuring tile patterns.

tiles?
image segmentation?
mozaic?
image spliting?
grid cutting?

does anyone have any idea on any termanology that can help me to find an easy program/script/plugin/filter that does this? i imagine this kindof thing is used a lot by webdesigners, breaking up bigger images into smaller ones to make menus etc.
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

I think slicing is what you are looking for.

Photoshop might be able to do it via its actions.
User avatar
roid
DBB Master
DBB Master
Posts: 9996
Joined: Sun Dec 09, 2001 3:01 am
Location: Brisbane, Australia
Contact:

Post by roid »

that help got me far, thanks. just one niggling problem:

how do you get photoshop/imageready to save your sliced with more than just a 1,2,3,4,5,6,7,8,9,etc filename?

eg: if i slice an image into 9. i don't want the files labeled 1 2 3 4 5 6 7 8 9

i want them labeled as their coordinates, eg:
1,1 1,2 1,3
2,1 2,2 2,3
3,1 3,2 3,3

if this can be solved, then that's it. it'll be smiles all round :)
Post Reply