T
T
Tamago4a2020-04-24 01:32:45
Automation
Tamago4a, 2020-04-24 01:32:45

How to combine many pictures of the same size into one large image according to a given algorithm?

More:
There is a map of the game location https://tarkovmap.ru/interchange.php
When you open this link, the site will complete the link itself and it will turn out for example this
https://tarkovmap.ru/interchange.php#3/75.00/-83.00
After " #" number 3 means that the card is opened in the third (3) zoom. And then there are coordinates (it doesn't matter).
I need to download this map. But the problem is that it consists of a large number of pieces.
Having opened the element code and climbed a little in the development environment, I found the /img/razvyazka/0/0/0.png directory. I
substituted it for the site link and got https://tarkov-wiki.ru/img/razvyazka/0/0/0.png ( /Z/X/Y )
After a little selection of values ​​between "/" I found out that:
/Z(zoom) - this is the zoom (I need to get as close as possible so that the picture is as clear as possible. Max. value 6.
/ X (horizontal) - this value is responsible for the position of the pictures horizontally. Max. value 35.
/ Y (vertical) - this value is responsible for the position of the images vertically Max value is
21
21, but 36 and 22. 36 * 22 = 792 pictures sized 256 by 256 pixels.
The task is quite obvious.
1. download all the images.
2. collect one image.
If let's say I can download manually, but I can't merge 800 pictures because of the monotony of work.
Some kind of script or something is needed so that it combines 36 pictures and moves to a new line.
Although, to be honest, there is no desire to download manually.
Please help with advice.
17.pngBut for example /6/25/17.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
anikavoi, 2020-04-24
@anikavoi

imagemagic
https://imagemagick.org/index.php
How to join images using ImageMagick
https://codeyarns.com/2014/10/27/how-to-join-image...

V
Vadim Shatalov, 2020-04-24
@netpastor

https://note.nkmk.me/en/python-pillow-concat-images/

A
Alexey, 2020-04-24
@Azperin

What a strange task, isn't it easier to find the original and divide it into the zoom you need? Add a leaflet to the tags, those who know it better will help split the highres into components, I personally sawed using openCV in the node.
For example, here is a map called Interchange, found in 17 seconds on Google https://vignette.wikia.nocookie.net/escapefromtark...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question