U
U
unheal2014-02-26 10:03:34
Automation
unheal, 2014-02-26 10:03:34

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

4 answer(s)
I
Ilya, 2014-02-26
@unheal

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")
}}

Here you can add a check for existence (if you suddenly need to resume downloading), nicely name the variables and make asynchronous loading. But it's not necessary :)
2. We glue ImageMagick:
montage.exe "путь_к_каталогу\*.png" -tile 64x64 -geometry +0+0 "путь_к_файлу_результата\result.png"

D
Dmitry Guketlev, 2014-02-26
@Yavanosta

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.

N
Nikolai Vasilchuk, 2014-02-26
@Anonym

Once upon a time, I saved a similar map by hand in pieces and glued them together in Photoshop. Killed a couple of days.

R
radioxoma, 2014-04-04
@radioxoma

SASPlanet . Viewing, gluing, storage by layers. If there is no ZMP for your card yet, you can add it yourself or contact their forum.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question