diff --git a/static/img/fotos/datentraeger_240.webp b/static/img/fotos/datentraeger_240.webp new file mode 100644 index 0000000..b82d29b Binary files /dev/null and b/static/img/fotos/datentraeger_240.webp differ diff --git a/static/img/fotos/datentraeger_360.webp b/static/img/fotos/datentraeger_360.webp new file mode 100644 index 0000000..33666bd Binary files /dev/null and b/static/img/fotos/datentraeger_360.webp differ diff --git a/static/img/fotos/datentraeger_480.webp b/static/img/fotos/datentraeger_480.webp new file mode 100644 index 0000000..9ac5c5a Binary files /dev/null and b/static/img/fotos/datentraeger_480.webp differ diff --git a/static/img/fotos/laptop_matte_240.webp b/static/img/fotos/laptop_matte_240.webp new file mode 100644 index 0000000..8ab7a80 Binary files /dev/null and b/static/img/fotos/laptop_matte_240.webp differ diff --git a/static/img/fotos/laptop_matte_360.webp b/static/img/fotos/laptop_matte_360.webp new file mode 100644 index 0000000..435d7d2 Binary files /dev/null and b/static/img/fotos/laptop_matte_360.webp differ diff --git a/static/img/fotos/laptop_matte_480.webp b/static/img/fotos/laptop_matte_480.webp new file mode 100644 index 0000000..03321d6 Binary files /dev/null and b/static/img/fotos/laptop_matte_480.webp differ diff --git a/static/img/fotos/thumbnail.py b/static/img/fotos/thumbnail.py new file mode 100755 index 0000000..0b9c7c1 --- /dev/null +++ b/static/img/fotos/thumbnail.py @@ -0,0 +1,12 @@ +#!/usr/bin/python3 +import sys +import pathlib +import subprocess + +SIZES = [(320, 240), (480, 360), (640, 480)] + +image_path = pathlib.Path(sys.argv[1]) +for width, height in SIZES: + thumb_name = image_path.with_name(f"{image_path.stem}_{height}.webp") + print(f"Generating {width}x{height} at {thumb_name}") + subprocess.run(["convert", str(image_path), "-resize", f"{width}x{height}", thumb_name]) diff --git a/templates/_base.html b/templates/_base.html index f4e4a87..4dfbab1 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -1,5 +1,5 @@ - + diff --git a/templates/index.html b/templates/index.html index 8777639..473daab 100644 --- a/templates/index.html +++ b/templates/index.html @@ -77,7 +77,15 @@

- Laptop zur Reparatur geöffnet auf einer Arbeitsunterlage + + Laptop zur Reparatur geöffnet auf einer Arbeitsunterlage +
@@ -108,7 +116,15 @@

- Geöffnetes Gehäuse eines SSD Datenträgers + + Geöffnetes Gehäuse eines SSD Datenträgers +