Init commit
Currently will generate dirs and all the thumbnails and view sizes of images
This commit is contained in:
commit
4e6cf1d499
13 changed files with 795 additions and 0 deletions
15
photoalbum/config.py
Normal file
15
photoalbum/config.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from dataclasses import dataclass, field
|
||||
from typing import Iterator
|
||||
|
||||
DEFAULT_CONFIG_PATH = "photoalbum.config.json"
|
||||
|
||||
|
||||
@dataclass
|
||||
class Config:
|
||||
# Size of thumbnails when looking at a folder page
|
||||
thumbnail_size: tuple[int, int] = (128, 128)
|
||||
|
||||
# Size of the image when looking at the standalone image page
|
||||
view_size: tuple[int, int] = (1920, 1080)
|
||||
|
||||
# TODO: to/from file classmethods
|
||||
Loading…
Add table
Add a link
Reference in a new issue