mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Metadata: Option to remove existing location estimates #1723
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#1723
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HeikoGr on GitHub (Feb 25, 2023).
Originally assigned to: @lastzero on GitHub.
there should be an option to disable the placement of pictures with estimated locations on the map.
i was able to remove the pictures from the map by updateing the database as described here: #1395 (i did set lat and lon to 0, too).
Describe what problem this solves and why this would be valuable to many users
my expectation was that the pictures would disappear from the map after i unchecked the option to estimate locations.
Further thinking brought to my mind, that the actual option is related to indexing - and is no map setting.
@graciousgrey commented on GitHub (Feb 28, 2023):
The map shows all photos with lat/lng information. If you disable the location estimates this does not remove already existing estimates.
@HeikoGr commented on GitHub (Feb 28, 2023):
Yes, and it works as designed. But it would be nice to have the ability to either
@graciousgrey commented on GitHub (Feb 28, 2023):
I guess removing estimates makes more sense in this case or what do you think?
@HeikoGr commented on GitHub (Feb 28, 2023):
In my opinion: yes, removing the estimates does make more sense.
@lastzero commented on GitHub (Feb 28, 2023):
AFAIK the background worker should remove the estimates from the pictures. However, this does not happen instantly, but over time.
@HeikoGr commented on GitHub (Feb 28, 2023):
I will test it and report my mileage.
reading through the source (i might be totally wrong - i am bad at programming) in /internal/entity/photo_optimize.go it‘s only updating if
lat/lon is set orthe estimate setting is checked.@HeikoGr commented on GitHub (Mar 1, 2023):
I tested it the following way:
select * from photos where place_src = 'estimate'=> 0 entries)docker compose exec photoprism photoprism optimise -fdocker compose exec photoprism photoprism optimise -fso i might be right with my assumption, that the optimizer is only able to set/update estimated locations.
It's actually not able to unset.
as this should be a really small change i would love to make a PR in the next days/weeks by myself. (including documentation and test case)
@lastzero commented on GitHub (Mar 1, 2023):
It can take up to 7 days. I can also verify and fix this if needed, however we are currently out of the office.
@HeikoGr commented on GitHub (Mar 1, 2023):
I thought the optimize command does the same as the background worker?
It's not super important for me (i found my fix by alter the database) - i just thought the actual behaviour may not meet the normal user expectation.
@lastzero commented on GitHub (Mar 1, 2023):
Maybe if you run it with --force. Don't remember all the options.
@lastzero commented on GitHub (Mar 3, 2023):
Seems I was right about the 7 days (check was broken, but is fixed with the most recent patch):
@HeikoGr commented on GitHub (Mar 6, 2023):
@lastzero thank you for your last fix, as for now, you don't have to take action - i am still at research
little update from me on my research, even if the 7 days ar not over yet:
to be fair - the command is not documented. I got it from https://www.reddit.com/r/photoprism/comments/sec7y9/location_info/
as far as i understand the optimize command is only part of the background worker.
the worker does more then metadata:
but i can't find any code where the estimate location got deleted if the option is disabled.
back to my test database:
so i still doubt that the estimates gets deleted at the moment, but i will continue research.
@lastzero commented on GitHub (Mar 6, 2023):
Still traveling and on my phone. Once I'm back at my workstation I can sort it out for very quickly.
@HeikoGr commented on GitHub (Mar 29, 2023):
I can now for sure say that the background worker did not remove the estimated locations after unsetting the index feature "estimates".
I installed a clean instance of photoprism 3 weeks ago and set "estimates" before importing the pictures (and disabled it afterwards).
@lastzero would you like to prefer to look after it for yourself or should i try to write a PR? I was not able to set up a development environment at the moment and i am not sure which way you would prefer:
@lastzero commented on GitHub (Aug 6, 2023):
@dd900 If you need help, you are welcome to post your question in GitHub Discussions or ask in our Community Chat. Common problems can be quickly diagnosed and solved using our Troubleshooting Checklists. Silver, Gold, and Platinum members are also welcome to email us for technical support and advice.
View Support Options ›
@HeikoGr commented on GitHub (Aug 6, 2023):
your exec command is wrong. I need to run
docker exec -it photoprism-mariadb-1 bashif i want to run the bash shell interactively on the mariadb container. From there you can run mysql/mariadb shell commands.@lastzero commented on GitHub (Aug 6, 2023):
We've recently added docs that explain how to open a terminal with Portainer: https://docs.photoprism.app/getting-started/portainer/#command-line-interface
Anyhow, it would be best to discuss this on GitHub Discussions and not in the issue comments where everyone gets an email notification for every new comment. Thank you! :)
@lastzero commented on GitHub (Aug 6, 2023):
How complicated is it to follow the link and simply ask there????
@lastzero commented on GitHub (Aug 6, 2023):
👉 https://github.com/photoprism/photoprism/discussions