Answer the question
In order to leave comments, you need to log in
How to upload an image split into several parts?
There is a submarine-cable-map-2014.telegeography.com
map broken into many .png pieces. Is it possible to download all the pieces automatically and then glue them together? I note that last year's map was downloaded habrahabr.ru/post/167913 , but I didn’t quite understand how this was done. Quoting one of the comments: - "wget+convert from ImageMagick worked for you" - I'm a builder by education, don't judge too harshly.
ps: thanks in advance!
Answer the question
In order to leave comments, you need to log in
Wait about an hour. The download has already been done, it remains to complete the gluing.
Here is the result: https://www.dropbox.com/s/6964a8wm18bvsqv/submarin...
1. Download all the tiles with a simple PowerShell script:
Clear-Host
$client = new-object System.Net.WebClient
ForEach ($number in 0..63 ) {
ForEach ($number1 in 0..63 ) {
$row = "{0:D2}" -f $number1
$column = "{0:D2}" -f $number
$client.DownloadFile("http://b.tiles.telegeography.com/maps/submarine-cable-map-2014/6/$number/$number1.png","map/tile_$column-$row.png")
}}
montage.exe "путь_к_каталогу\*.png" -tile 64x64 -geometry +0+0 "путь_к_файлу_результата\result.png"
Well, if in short it already says wget+convert. We need a script that will download all the pieces in their entirety and glue them together. But the task as a whole, although not difficult, is not trivial either (it cannot be solved in one line).
Perhaps you should look for someone who is enthusiastic or for a small fee to do the job.
Or try contacting the author of last year's map.
Once upon a time, I saved a similar map by hand in pieces and glued them together in Photoshop. Killed a couple of days.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question