mirror of
https://github.com/usetrmnl/byos_fastapi.git
synced 2026-04-29 13:44:09 -07:00
image path tweaks
This commit is contained in:
@@ -16,6 +16,7 @@ services:
|
||||
LANG: "en_US.UTF-8"
|
||||
LC_ALL: "en_US.UTF-8"
|
||||
TZ: "Europe/Lisbon"
|
||||
RANDOM_IMAGE_ROOT: "/data/Pictures"
|
||||
# CALIBRATION_PLUGIN_ENABLED: "true"
|
||||
# PHOTO_GRADING_ENABLED: "true"
|
||||
# ASSETS_ROOT: "web"
|
||||
|
||||
@@ -11,7 +11,8 @@ from .base import PhotographicPlugin, PluginOutput
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
DEFAULT_IMAGE_ROOT = Path(os.environ.get('HOME', '~')).expanduser() / 'Pictures' / 'Samurai Jack'
|
||||
DEFAULT_IMAGE_ROOT = os.getenv('RANDOM_IMAGE_ROOT', Path(os.environ.get('HOME', '~')).expanduser() / 'Pictures')
|
||||
|
||||
SUPPORTED_EXTENSIONS = {'.jpg', '.jpeg', '.png', '.bmp', '.gif'}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user