photools.com Community

IMatch Bug Reports and Feature Requests => Feature Requests => Archive (Feature Requests) => Topic started by: Aubrey on June 17, 2017, 09:57:43 AM

Title: Generate jpg/tiff from map
Post by: Aubrey on June 17, 2017, 09:57:43 AM
The map window is now most useful, especially the ability to add gps track. Is it possible to create a jpg from the map window?

I go cross country running on a laid trail for those interested, but not important (https://en.wikipedia.org/wiki/Hash_House_Harriers).

I used to go to Google earth and add the gpx file. Now I can do this directly in IMatch  ;)

However I still need to cut and paste the window to get a jpg file. It would be nice to automatically capture the window.

Aubrey.
Title: Re: Generate jpg/tiff from map
Post by: Winfried on June 18, 2017, 10:48:23 PM
+1
Title: Re: Generate jpg/tiff from map
Post by: Mario on June 19, 2017, 02:39:53 PM
I don't see any function for this in the Chromium browser I could use.

Did you consider opening the map app in an external web browser

http://127.0.0.1:50519/imatch/apps/mapapp/index.html

and then using the built-in features of your browser or a 'plug-in' to take a screen shot?
Title: Re: Generate jpg/tiff from map
Post by: Aubrey on June 23, 2017, 08:52:37 PM
I didn't realize that I could access map through the browser... it makes sense giving the new code you have added. Thank you for posting the URL. So it is clear now that the map function is somewhat independent of IMatch, using the chromium browser.

I loaded gpx data and underlying map.
However using crtl print from chrome browser shows track but not underlying terrain graphics...
I'll work on it over the coming days to better understand what is happening.

Thanks,
Aubrey.
Title: Re: Generate jpg/tiff from map
Post by: jch2103 on July 03, 2017, 11:28:36 PM
I've bookmarked that link; quite cool! Among other possibilities, this allows one to 'cast' the map to a Chromecast-enabled device like a TV.
Title: Re: Generate jpg/tiff from map
Post by: Lord_Helmchen on July 04, 2017, 08:01:31 PM
+1
Title: Re: Generate jpg/tiff from map
Post by: DigPeter on July 05, 2017, 01:26:02 PM
Why not just Print Screen (PrtSC) and manipulate with paint?
Title: Re: Generate jpg/tiff from map
Post by: DigPeter on July 05, 2017, 01:28:46 PM
Quote from: Mario on June 19, 2017, 02:39:53 PM
I don't see any function for this in the Chromium browser I could use.

Did you consider opening the map app in an external web browser

http://127.0.0.1:50519/imatch/apps/mapapp/index.html

and then using the built-in features of your browser or a 'plug-in' to take a screen shot?

I tried the link and only get:

This site can't be reached

127.0.0.1 refused to connect.
Title: Re: Generate jpg/tiff from map
Post by: Mario on July 05, 2017, 01:54:47 PM
Was IMatch running?
Is this the correct IP and port number for IMatch?

Tip: In the App Manager use the drop-down menu for the AppSpy (for example) to open it in an external browser:

(https://www.photools.com/community/index.php?action=dlattach;topic=6742.0;attach=15529;image)

Does this work?
If so, replace appspy in the url with mapapp.
Title: Re: Generate jpg/tiff from map
Post by: Aubrey on July 05, 2017, 02:28:45 PM
Mario is right,
you need to have IMatch running.
127.0.0.1 is the internal IP address of your own PC, i.e. localhost
50519 is the port. I expect this port is only open when IMatch is running.
This then sends a command to look in C:\ProgramData\photools.com\imatch6\webroot\
It then finds imatch\apps\mapapp

You could apply the same command with the other apps there and see what happens:
e.g.,  as Mario suggested http://127.0.0.1:50519/imatch/apps/appspy/index.html

Also have a look at the hosts file to see 127.0.0.1
c:\windows\system32\drivers\etc\hosts

You will probably see  lines towards the bottom of the text file:
# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost

The "#" shows that the line is commented. By default 127.0.0.1 is a local host.

A bit off topic, but here goes!
This hosts file is useful if you want a "simple" parental lock on websites - older kids will figure out a workaround!
You can add lines like
127.0.0.1 facebook.com
127.0.0.1 youtube.com

The first place a URL lookup takes place is in the hosts file.
The above command will make facebook.com look at 127.0.0.1 i.e., the machine on which the browser is being run for the opening page of the site facebook.com ... a message will appear saying site cannot be found.

Aubrey.