recreate page

This commit is contained in:
2025-04-23 20:49:58 +02:00
parent 55bc1b36d1
commit bb0973917d
4 changed files with 88 additions and 56 deletions

View File

@ -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")