Author Topic: IM5 App: NikonMetadataViewer  (Read 3150 times)


  • Jr. Member
  • *
  • Posts: 71
IM5 App: NikonMetadataViewer
« on: February 04, 2017, 07:21:57 PM »
Last year I found John Zeman's Collapsible Metadata Viewer II

I liked his app because it was a good starting point for me to learn about HTML and JS coding.
I have changed the tags from Canon to Nikon and also made some cosmetic changes.

Althogh I have never finished implementing all my ideas I am posting it here,
because maybe some other Nikon photografer finds it usefull enough to use it as basis for his own ideas.

What the app can do:
You have a Collapsible Metadata Viewer with a thumbnail and a lot of tags shown.
You can open BingMaps, OSM or other Maps with the location marked.
You can Copy/Paste group of tags from one picture to others.
(This feature should be used with care, because I can not take any responsibility that it's working correct!)

What's not working:
You cannot copy coordinates from one picture to others.
(This code is still buggy, but I'm not able to find the bug)

Included is a resource file with english/german translation.

How to install this App:
Please read the IMatch Help how to install apps on your system, here is one example.
Copy it to the following path
C:\ProgramData\\IMatch5\apppanel\user\<your name>\NikonMetadataViewer

If your path has another number of subdirectories, you might have to update the following line in viewer.htm
<script src="../../../lib/imatch_app.js" type="text/javascript"></script>

Since it's my first App I know that there are still many bugs in it.
If you find any correction, feel free to post it here.

Warning: I cannot give any warranty that it's working correct, so you are using it at your own risk!



  • Global Moderator
  • *****
  • Posts: 4707
  • IMatch-User since 2001 (IMatch 3.6)
Re: IM5 App: NikonMetadataViewer
« Reply #1 on: February 04, 2017, 09:26:27 PM »
Hey Walter

I have downloaded it, but not looked into it yet.
But thanks a lot for sharing this.

Best wishes from Switzerland! :-)


  • Oldtimer
  • ****
  • Posts: 2338
Re: IM5 App: NikonMetadataViewer
« Reply #2 on: February 04, 2017, 09:59:27 PM »
Thank you for posting this. Installed OK except for need (as you pointed out) to change the path to reflect my directory structure.

I do have a question about icons in the Location drop-down (see screenshot); I'm not clear whether these are correct/intended. Also, at least for US locations, there appears to be an extra "-" before the State name, but I assume that's because of differing national location description standards (I'm sure I can adjust in the viewer.htm file or wherever needed).

Nice job! And should be helpful in assisting learning proper .js for IMatch App Panel.

Edit: I should have taken the time to hover the mouse over the icons; they do indeed explain what they do.
« Last Edit: February 04, 2017, 10:10:38 PM by jch2103 »


  • Jr. Member
  • *
  • Posts: 71
Re: IM5 App: NikonMetadataViewer
« Reply #3 on: February 04, 2017, 11:34:16 PM »
Hi John,

if you hover the mouse to the Country-Label you will see
that 2 tags are shown here: "CountryCode" - "Country".
It seems that the CountryCode is empty in your picture.

Yes, there are by far to many icons here (for Road, Ariel, Labels, BirdsEye, ...)
but it's quite easy to remove not needed icons in the code.



  • Oldtimer
  • ****
  • Posts: 2521
Re: IM5 App: NikonMetadataViewer
« Reply #4 on: February 05, 2017, 08:14:48 AM »
Tried it, works OK.
But the SHOW button seems to need Excel (looking at the code) and it does not work for me since I do not
have Excel.

Thanks - I will study the code to learn


  • IMatch Developer
  • Administrator
  • *****
  • Posts: 31562
Re: IM5 App: NikonMetadataViewer
« Reply #5 on: February 05, 2017, 08:47:03 AM »
Remember: The scripting methods used by this App will not be available in IMatch 6.

IMatch 6 unifies scripting, apps and evolves everything to use the same programming interfaces - provided by IMatch WebServices.

I'm already writing the first IMatch 6 apps right now. The first app in an AppWizard with makes it super-easy to setup new app for IMatch 6. Then you can just start writing some HTML for the user interface and access IMatch data via IMWS endpoints as needed.


  • Jr. Member
  • *
  • Posts: 71
Re: IM5 App: NikonMetadataViewer
« Reply #6 on: February 05, 2017, 09:29:23 AM »
Hi ubacher,

the code you found was my attempt to open Excel via ActiveXObject, it's not working even if Excel is installed.
Since I have stopped working on this code, I should remove that button to avoid confusion.

As Mario pointed out, the hole App needs to be migrated to IM6.
When this is done, I will find time to add the missing features.