How do I split a .gif file into equal quarters?
Posted on 2005-04-07
this is probably a very simple question, but I have yet to work out how to do it!
I need to use PHP to split any given /gif image into equally-sized quarters, on the fly.
I have written a script that pans around a tiled map (each square being 100x87px); I'd now like to split up any given square into 4 equal parts and resize each of these to 100x87px for the script to re-display in order to create a simple zoom. The loss of resolution shouldn't be a problem.
All the files are GIFs.
Any comments would be most appreciated. Thanks.