recreate page
This commit is contained in:
@ -17,7 +17,7 @@ class Picture():
|
||||
def __init__(self, picture_path: Path, page = None, raw: Path|None = None, albums_name: list[str] = None, is_repertoried: bool = True):
|
||||
self._large: Path = picture_path
|
||||
self._small: Path = Path(picture_path.get_absolute_path()[:-4] + "_small.jpg")
|
||||
self._export_file: Path = Path(picture_path.get_absolute_path() + ".out.pp3")
|
||||
self._profile_file: Path = Path(picture_path.get_absolute_path() + ".out.pp3")
|
||||
self._raw: Path|None = raw
|
||||
self._page: Page = page
|
||||
self._albums_name: list[str] = albums_name or []
|
||||
@ -39,8 +39,8 @@ class Picture():
|
||||
def get_large(self):
|
||||
return self._large
|
||||
|
||||
def get_export_file(self):
|
||||
return self._export_file
|
||||
def get_profile_file(self):
|
||||
return self._profile_file
|
||||
|
||||
def gen_small(self):
|
||||
im = Image.open(self._large.get_absolute_path()).convert("RGB")
|
||||
|
Reference in New Issue
Block a user