Using the PyExifTool library (https://github.com/sylikc/pyexiftool)
the absolute path to the file on Android is specified /storage/emulated/0/Download/2.jpg
Error:
"exiftool" is not found, on path or as absolute path
How to fix it?
The packaging in the APK was done through Buildozer.
On PC, the Linux code works, on Android it is no longer.
code:
import exiftool
file = '/storage/emulated/0/Download/2.jpg'
try:
with exiftool.ExifToolHelper() as et:
metadata = et.get_metadata(file)
for d in metadata:
for k, v in d.items():
print(f"{k} : {v}")
except Exception as e:
print(f"Error: {e}")