Discostu36 / OSM-Photos

A photo uploader for Wikimedia Commons and OpenStreetMap
GNU General Public License v3.0
28 stars 1 forks source link

Add photo feature #4

Open Discostu36 opened 2 years ago

Discostu36 commented 2 years ago

Add photography feature. This is only the basic implementation without upload functionality.

Discostu36 commented 2 years ago

Internal file naming (before upload):

Internally, a combination of OSM object ID and timestamp should be used:

{OSM-type}-{OSM-ID}-{Date}-{Time}.jpg

For example: w-220007671-20220815-123523.jpg

For the unusual case of more than one photo in the same second, a dash followed by number is added.

w-220007671-20220815-123523-1.jpg

Files that were not taken with the app but imported, get -import added at the end, because they will be handled differently after upload.

w-220007671-20220815-123523-import.jpg

Discostu36 commented 2 years ago

Standard file handling:

Photos taken with the app or imported from gallery are stored in a subfolder of the app. After upload to Wikimedia Commons, photos taken with the app are renamed and moved to 0/DCIM/OSM_Photos. The copies of imported photos are deleted.

Later, there should be a possibility to configure that behaviour. (#13)