mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-04-17 19:40:07 +02:00
Compare commits
2 Commits
ad6ef5fe01
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ebce2aa21d | |||
| 4789dd6232 |
@@ -26,7 +26,7 @@
|
||||
"-p",
|
||||
"${workspaceFolder}/test",
|
||||
"-w",
|
||||
"file://${workspaceFolder}/test",
|
||||
"http://localhost/",
|
||||
"-t",
|
||||
"Pictures",
|
||||
"--theme",
|
||||
@@ -141,9 +141,6 @@
|
||||
"**/*.css": "css",
|
||||
"**/*.html.j2": "jinja-html"
|
||||
},
|
||||
"gitblame.inlineMessageEnabled": true,
|
||||
"gitblame.inlineMessageFormat": "${author.name}, ${time.ago} • ${commit.summary}",
|
||||
"gitblame.statusBarMessageFormat": "${author.name} (${time.ago})",
|
||||
"html.format.indentHandlebars": true,
|
||||
"html.format.templating": true,
|
||||
"html.format.wrapAttributes": "preserve",
|
||||
|
||||
@@ -168,8 +168,14 @@ def get_image_info(item: str, folder: str) -> ImageMetadata:
|
||||
with Image.open(file) as img:
|
||||
logger.info("extracting image information", extra={"file": file})
|
||||
width, height = img.size
|
||||
exif = img.getexif()
|
||||
xmpdata = img.getxmp()
|
||||
try:
|
||||
exif = img.getexif()
|
||||
except Exception:
|
||||
exif = None
|
||||
try:
|
||||
xmpdata = img.getxmp()
|
||||
except Exception:
|
||||
xmpdata = None
|
||||
|
||||
except UnidentifiedImageError:
|
||||
logger.error("cannot identify image file", extra={"file": file})
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
LESS=-SR hl $(ls -tr logs/*.{jsonl,jsonl.gz}) --config hl_config.yaml
|
||||
LESS=-SR hl "$(ls -tr logs/*.{jsonl,jsonl.gz})" --config hl_config.yaml
|
||||
|
||||
Reference in New Issue
Block a user