pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.18k stars 86 forks source link

Longitude coordinate not saved properly #533

Closed mentalblock closed 1 year ago

mentalblock commented 1 year ago

Describe the bug When using the Gelocation feature, it appears that if the longitude is a negative number, it saves as a positive number. This results in the location being on the other side of the world.

To Reproduce Steps to reproduce the behavior: Perform a location search for Geolocation feature. In my case, I typed joshua tree. This photo was taken in Joshua Tree, California. I selected the first result from the search.

The form correctly filled out coordinates as "34.126526, -116.320935". I hit save and all is well. I then reopen the image and look at its map location and it is written in Chinese and the pin is in a city in China. The metadata shows that the longitude is "116.320935".

I tried removing the metadata, saving, and repeating the process to no avail.

Screenshots image

The screenshot was obtained by selecting the result which filled in the coordinates as "34.126526, -116.320935". ( Then I did another search for joshua tree to make the scenario more clear.)

After saving and reviewing the image, I see this as the pin on the map.

image

I then take a look at the gelocation data: image

Platform (please complete the following information):

Additional context Using Postgres

Important: Are all of the following are true?

All true

pulsejet commented 1 year ago

This was fixed in https://github.com/pulsejet/memories/commit/9e7a6a0bd128e0fb00f5774df2732562964323a4 Look for the next release ;)

mentalblock commented 1 year ago

Thank you for the quick response and all the hard work.