[OSM-dev] Cutting up an image into tiles
Robert Hart
Robert.Hart at BuroHappold.com
Wed Feb 28 11:43:57 GMT 2007
> So can anyone point me in the direction of some guidelines about
> scripting ImageMagick / Rmagick , or something the cut the image up -
> which shouldnt be too hard to do? I dont have access to the TIFF
> right at the moment, but its big. Over 80mb I think.
For not *huge* images, I have used bash script + ImageMagick...
Something like:
for x in `seq -w 00 32` ; do
for y in `seq -w 00 32` ; do
convert -crop 100x100+$(($x*100))+$(($y*100) bigfile
tile-${x}-${y}.png
done
done
but that is inefficient as it's rereading the source image for every
output tile.
This message has been scanned for viruses by MailControl - www.mailcontrol.com
More information about the dev
mailing list