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

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

User avatar
dma_k
Posts: 96
Joined: Tue Apr 14, 2009 8:50 am

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

Post by dma_k »

Dear all,

I have XnView v2.48. It displays EXIF metainformation this way:
xnview_gps.png
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.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44583
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

could you send me the file?
Pierre.
User avatar
dma_k
Posts: 96
Joined: Tue Apr 14, 2009 8:50 am

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

Post by dma_k »

You mean, send this attachment to you? Do you have troubles downloading it from above post?
User avatar
xnview
Author of XnView
Posts: 44583
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

there is no GPS/metadata info in this sample file
Pierre.
User avatar
dma_k
Posts: 96
Joined: Tue Apr 14, 2009 8:50 am

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

Post 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...
User avatar
xnview
Author of XnView
Posts: 44583
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

ok i have it now, but can't reproduce
Clipboard-1.jpg
Windows 10? Which language?
You do not have the required permissions to view the files attached to this post.
Pierre.
User avatar
dma_k
Posts: 96
Joined: Tue Apr 14, 2009 8:50 am

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

Post by dma_k »

I am running Windows 10 x64 EN with "Russian" language for non-unicode programs:
region.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44583
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

Strange on Windows 10 x64 FR with 'Russian' language, i can't reproduce...
Pierre.
User avatar
dma_k
Posts: 96
Joined: Tue Apr 14, 2009 8:50 am

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

Post 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...
User avatar
xnview
Author of XnView
Posts: 44583
Joined: Mon Oct 13, 2003 7:31 am
Location: France

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

Post by xnview »

XnView Classic is non unicode, but strange that i have not same issue
Pierre.
User avatar
dma_k
Posts: 96
Joined: Tue Apr 14, 2009 8:50 am

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

Post 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.
You do not have the required permissions to view the files attached to this post.