1. Intrepid00's Avatar
    Many of you using DNG have noticed like me that the DNGs are missing the GPS encoding that the 5MP JPG has. This workaround makes use of the ExifTool by Phil Harvey and Microsoft's Powershell to help quickly tag DNGs using the JPGs uploaded to your OneDrive Camera Roll (accessed via local folder path).

    The following is the ps1 script that you run from the same directory where you save the ExifTool. Don't forget to remove the (-k) tag from the filename of the ExifTool.exe it has by default.
    [code]
    #Set the varibles below leaving the apostrophes

    #Set the $CameraRoll to the file folder path to your OneDrive Camera Roll Path
    $CameraRollPath = 'D:\SkyDrive\Pictures\Camera Roll\'
    #Set this to where you have your DNGS saved. THESE MUST BE LOCAL DRIVE (not Phone) AND IF ONEDRIVE FOLDER OFFLINE ACCESS
    $DngsPath = 'D:\Skydrive\Pictures\DNG'

    $Dngs = Get-ChildItem $DngsPath -Filter *.dng

    foreach ($dng in $Dngs)
    {
    $SourceJpg = $CameraRollPath + $dng.Name.Replace('__highres.dng', '.jpg')

    .\exiftool.exe -TagsFromFile $SourceJpg -GPSLatitude -GPSLatitudeRef -GPSLongitude -GPSLongitudeRef -GPSAltitude -GPSAltitudeRef $dng.FullName
    }
    [/code]

    I know this isn't exactly easy to use if you don't know PowerShell (or scripting at all) but for those that do understand it here is a nice fix I made quickly. You might be able to use just the ExifTool as well without PowerShell if you spend the time to read its documentation. If there is enough interest I'll spend the time to write a How To use this.
    Salem874 likes this.
    04-28-2014 01:37 AM
  2. Salem874's Avatar
    Excellent, thanks for sharing...

    If only Microsoft/Nokia added GPS info to the DNGs by default
    12-29-2014 01:28 PM
  3. CernT's Avatar
    That should be now fixed with latest Denim Update. Is there any Windows phone App where you can see the gps taggs in the dng file (i.e. Rawer doesn't )?

    Edit: It's not fixed in my new firmware version 3051.50009.1451.1001
    Last edited by CernT; 02-12-2015 at 11:35 AM.
    02-12-2015 01:53 AM
  4. nickisverygood's Avatar
    For people using python
    make sure putting exiftool.exe in the same folder with this script

    import os
    import subprocess
    path = "I:\\trip"
    for root,dirs,files in os.walk(path):
    for file in files:
    if "highres" in file:
    name,ext =os.path.splitext(os.path.join(root,file))
    if ext == "dng" or "DNG":
    name,ext =os.path.splitext(os.path.join(root,file))
    A=os.path.join(root,file)
    sA=file
    if os.path.isfile(os.path.join(root,sA.replace("__highres.dng",".jpg"))):
    B =os.path.join(root,sA.replace("__highres.dng",".jpg"))
    sB = sA.replace("__highres.dng",".jpg")
    print("------------------------------")
    print("DNG path: "+A)
    print("DNG name: "+sA)
    print("Oversampled JPG path: "+B)
    print("Oversampled JPG name: "+B)
    print("------------------------------")
    subprocess.call("exiftool.exe -TagsFromFile "+"\""+B+"\""+" -GPSLatitude -GPSLatitudeRef -GPSLongitude -GPSLongitudeRef -GPSAltitude -GPSAltitudeRef -DateTimeOriginal "+"\""+A+"\"")
    02-26-2015 10:52 PM

Similar Threads

  1. Replies: 3
    Last Post: 05-10-2014, 08:45 PM
  2. Best weather app for Windows 8?
    By Himanshu Chowdhary in forum Windows Apps
    Replies: 14
    Last Post: 05-04-2014, 09:01 PM
  3. Carrier for Lumia 1520 in Sao Paulo, Brazil
    By ehuna in forum Nokia Lumia 1520
    Replies: 2
    Last Post: 04-28-2014, 01:14 AM
  4. App gone missing :(
    By Akash Patel in forum Windows Phone 8.1 Preview for Developers
    Replies: 2
    Last Post: 04-28-2014, 12:55 AM
LINK TO POST COPIED TO CLIPBOARD