Generate jpg/tiff from map

Started by Aubrey, June 17, 2017, 09:57:43 AM

Previous topic - Next topic

Aubrey

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.

Winfried


Mario

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?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Aubrey

#3
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.

jch2103

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.
John


DigPeter

Why not just Print Screen (PrtSC) and manipulate with paint?

DigPeter

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.

Mario

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:



Does this work?
If so, replace appspy in the url with mapapp.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Aubrey

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.