PAID: Script to combine images into one with coordinates

Do you need consulting from ImageMagick experts and are willing to pay for their expertise? Or are you well versed in ImageMagick and offer paid consulting? If so, post here otherwise post elsewhere for free assistance.
Post Reply
tristanbacon
Posts: 2
Joined: 2016-08-16T02:19:48-07:00
Authentication code: 1151

PAID: Script to combine images into one with coordinates

Post by tristanbacon »

I originally posted this on the GIMP forums, but was directed to post a request here on the ImageMagick forums.

The problem

I have a set of 40 PNG map images covering a 400sqkm area, which need to be combined across 4 larges images for use as overlays in Google Earth. Each 'large image' contains 10 'map image'.

My current process

At the moment, I have an GIMP .xcf template with 'guides' for the large images, which allows me to essentially drag and drop each map image into GIMP, and they snap into place.

Each map image has a bit of overlap with neighboring map images, so this isn't as simple as just stitching them together, unfortunately!

Desired Outcome

Doing this manually for every 400sqkm area is currently taking me far too much time, and I'd like to either write (or pay someone to write) me a script that allows me to drag the map images into the template, run said script, and based on the name of the file, each layer is moved to the appropriate X/Y coordinates.

As an example, in a large image, one row will have 3 images: BB10-A1.png, BB10-A2.png, BB10-A3.png. In the template, A1 sits at 0,0, A2 sits at 1360,0, A3 sits at 2613,0, and so on. So, the script would know that any layer ending in -A1.png would go to 0,0, -A2.png to 1360,0 and so on.

Clearly, am willing to pay for this. Let me know if this is possible, and any quotes that you might have.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PAID: Script to combine images into one with coordinates

Post by snibgo »

The ImageMagick part of this would be simple. Something like:

Code: Select all

convert
  ( BB10-A1.png -repage +0+0 )
  ( BB10-A2.png -repage +1360+0 )
  ( BB10-A3.png -repage +2613+0 )
  -layers merge
  out.png
The command could be built by a script that would read a text file of the suffixes and their coordinates.

As the complex part would be the script, you should say what script language you would want.
snibgo's IM pages: im.snibgo.com
tristanbacon
Posts: 2
Joined: 2016-08-16T02:19:48-07:00
Authentication code: 1151

Re: PAID: Script to combine images into one with coordinates

Post by tristanbacon »

snibgo wrote:The ImageMagick part of this would be simple. Something like:

Code: Select all

convert
  ( BB10-A1.png -repage +0+0 )
  ( BB10-A2.png -repage +1360+0 )
  ( BB10-A3.png -repage +2613+0 )
  -layers merge
  out.png
The command could be built by a script that would read a text file of the suffixes and their coordinates.

As the complex part would be the script, you should say what script language you would want.
Thanks for the pointer. I'm not much of a programmer myself, but have a basic familiarity (or rather, I'm in the process of learning) Python, therefore it would be great if the script was in that language. I've already made a Python script that dumps a list of all the image files in a folder to a .txt, so I can use that .txt as the foundation of the stitching script.

Is this something you'd be able to help me with @snibgo?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: PAID: Script to combine images into one with coordinates

Post by snibgo »

Not in Python, sorry.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PAID: Script to combine images into one with coordinates

Post by fmw42 »

If python has a function to execute command such as PHP exec(), then you could call the Imagemagick command from that Python function. I do not know Python either.
Post Reply