Post-Image

Create a giant image from tiles with PHP

Posted on

I was looking for a Middle-Earth map to print out and really liked the map on http://lotrproject.com/map.

Sadly enough there is no official download to get the map in a high resolution, so me and my buddy @manuelmeister hacked a script together to download all the tiles and create the final image from it.

As we are both proficient with php, we choose this language to download the images. To convert the tiles to a image we used ImageMagick.

Below is the script we used to download all the images in the directory from which the script is run.

Here is the command to convert the tiles to the image. Of course you have to install ImageMagick for this to work. :D

montage -border 0 -geometry 700x -tile 12x11 tile* final.jpg

2 thoughts on “Create a giant image from tiles with PHP

Leave a Reply