Page 1 of 1

Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Thu Aug 26, 2021 11:40 am
by dma_k
Dear all,

I have XnView v2.48. It displays EXIF metainformation this way:
xnview_gps.png
xnview_gps.png (3.05 KiB) Viewed 7211 times
exiftool decodes it just fine:

Code: Select all

[Composite]     GPS Latitude                    : 45 deg 56' 7.86" N
[Composite]     GPS Longitude                   : 8 deg 34' 31.23" E
[Composite]     GPS Position                    : 45 deg 56' 7.86" N, 8 deg 34' 31.23" E
JPEG sample is attached.

Feature request: Would be nice if XnView could generate and display a link to Google Maps like https://www.google.com/maps/place/46°03 ... 40'04.8"E/ based on GPS position.

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Tue Aug 31, 2021 6:38 am
by xnview
could you send me the file?

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Tue Aug 31, 2021 1:33 pm
by dma_k
You mean, send this attachment to you? Do you have troubles downloading it from above post?

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Wed Sep 01, 2021 11:29 am
by xnview
there is no GPS/metadata info in this sample file

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Thu Sep 02, 2021 11:38 am
by dma_k
This is very strange / unusual. I have downloaded sample.jpg and GPS information is there. The file has size 2814 bytes and MD5 19f5d8932861f79b6f18f37673faa5e5. I have posted the file to Dropbox just in case. Exiftool output is the following:

Code: Select all

[ExifTool]      ExifTool Version Number         : 12.26
[JFIF]          JFIF Version                    : 1.01
[EXIF]          Aperture Value                  : 2.4
[EXIF]          Brightness Value                : 10.83
[EXIF]          Camera Model Name               : SM-G973F
[EXIF]          Color Space                     : sRGB
[EXIF]          Compression                     : JPEG (old-style)
[EXIF]          Create Date                     : 2021:08:03 20:10:08
[EXIF]          Date/Time Original              : 2021:08:03 20:10:08
[EXIF]          Digital Zoom Ratio              : 1
[EXIF]          Exif Image Height               : 2268
[EXIF]          Exif Image Width                : 4032
[EXIF]          Exif Version                    : 0220
[EXIF]          Exposure Compensation           : 0
[EXIF]          Exposure Mode                   : Auto
[EXIF]          Exposure Program                : Program AE
[EXIF]          Exposure Time                   : 1/100
[EXIF]          F Number                        : 2.4
[EXIF]          Flash                           : No Flash
[EXIF]          Focal Length                    : 4.3 mm
[EXIF]          Focal Length In 35mm Format     : 26 mm
[EXIF]          GPS Latitude Ref                : North
[EXIF]          GPS Longitude Ref               : East
[EXIF]          ISO                             : 80
[EXIF]          Image Height                    : 2268
[EXIF]          Image Unique ID                 : L12XLLD01VM
[EXIF]          Image Width                     : 4032
[EXIF]          Make                            : samsung
[EXIF]          Max Aperture Value              : 2.4
[EXIF]          Metering Mode                   : Center-weighted average
[EXIF]          Modify Date                     : 2021:08:03 20:10:08
[EXIF]          Offset Time                     : +02:00
[EXIF]          Offset Time Original            : +02:00
[EXIF]          Orientation                     : Horizontal (normal)
[EXIF]          Resolution Unit                 : inches
[EXIF]          Scene Capture Type              : Standard
[EXIF]          Shutter Speed Value             : 1
[EXIF]          Software                        : G973FXXSBFUF3
[EXIF]          Thumbnail Image                 : (Binary data 1009 bytes, use -b option to extract)
[EXIF]          Thumbnail Length                : 1009
[EXIF]          Thumbnail Offset                : 946
[EXIF]          White Balance                   : Auto
[EXIF]          X Resolution                    : 72
[EXIF]          Y Cb Cr Positioning             : Centered
[EXIF]          Y Resolution                    : 72
[Composite]     Aperture                        : 2.4
[Composite]     Circle Of Confusion             : 0.005 mm
[Composite]     Date/Time Original              : 2021:08:03 20:10:08+02:00
[Composite]     Field Of View                   : 69.4 deg
[Composite]     Focal Length                    : 4.3 mm (35 mm equivalent: 26.0 mm)
[Composite]     GPS Latitude                    : 45 deg 56' 7.86" N
[Composite]     GPS Longitude                   : 8 deg 34' 31.23" E
[Composite]     GPS Position                    : 45 deg 56' 7.86" N, 8 deg 34' 31.23" E
[Composite]     Hyperfocal Distance             : 1.56 m
[Composite]     Image Size                      : 90x72
[Composite]     Light Value                     : 9.5
[Composite]     Megapixels                      : 0.006
[Composite]     Modify Date                     : 2021:08:03 20:10:08+02:00
[Composite]     Scale Factor To 35 mm Equivalent: 6.0
[Composite]     Shutter Speed                   : 1/100
The same is displayed in XnView. Just wonder what can I do more...

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Thu Sep 02, 2021 1:34 pm
by xnview
ok i have it now, but can't reproduce
Clipboard-1.jpg
Clipboard-1.jpg (21.28 KiB) Viewed 7126 times
Windows 10? Which language?

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Thu Sep 02, 2021 5:02 pm
by dma_k
I am running Windows 10 x64 EN with "Russian" language for non-unicode programs:
region.png
region.png (15.47 KiB) Viewed 7119 times

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Fri Sep 03, 2021 7:36 am
by xnview
Strange on Windows 10 x64 FR with 'Russian' language, i can't reproduce...

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Fri Sep 03, 2021 8:07 pm
by dma_k
I have tested on another Windows 10 EN x64 with English setting, and there is no issue (degree is displayed correctly). I don't know where exactly to look at, because I suppose that non-console applications should be Unicode, so this setting for non-Unicode programs should not affect them. I'll try to keep an eye on this issue further, but for sure it varies from one setup to another...

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Sun Sep 05, 2021 3:22 pm
by xnview
XnView Classic is non unicode, but strange that i have not same issue

Re: Does not correctly display degree (°) sign in GPS latitude/longitude

Posted: Tue Sep 07, 2021 11:39 pm
by dma_k
I just noticed that on "problematic" Windows all Cyrillic characters in file view are displayed incorrectly, however they are displayed correctly in tree view.
Here is view for the same shared folder on "problematic" Windows 10:
shot2.png
and correctly working Windows 7:
shot1.png
Probably displaying of Unicode character as two characters in EXIF view and that effect in file view are related.
"Russian" language is set for non-unicode programs on both Windows, so very likely it does not affect the problem.

XnView v2.50.