Remove /volume1 from path
In DSM 7 the path mounted for SSH is /photo and does not have the real path in it anymore.
This commit is contained in:
parent
39b88a4df9
commit
a26b128fba
10 changed files with 460 additions and 207 deletions
5
edit.py
5
edit.py
|
@ -6,6 +6,8 @@ import numpy as np
|
|||
import exif
|
||||
from geopy.geocoders import Nominatim
|
||||
from datetime import datetime
|
||||
import pathlib
|
||||
from heic2jpeg import heic2jpeg
|
||||
|
||||
def wait_with_check_closing(win_name):
|
||||
"""
|
||||
|
@ -33,6 +35,9 @@ class Image:
|
|||
print("editing", path)
|
||||
self.w = w
|
||||
self.h = h
|
||||
if pathlib.Path(path).suffix.lower() == ".heic":
|
||||
h2j = heic2jpeg.Heic2Jpeg(path)
|
||||
path = h2j.safe()
|
||||
self.path = path
|
||||
self.image = cv2.imread(self.path)
|
||||
self.geolocator = Nominatim(user_agent="jeena-synology-pictures")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue