Clean repository
BIN
static/img/fotos/datentraeger.jpeg
Normal file
After Width: | Height: | Size: 5.6 MiB |
BIN
static/img/fotos/datentraeger_240.webp
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
static/img/fotos/datentraeger_360.webp
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
static/img/fotos/datentraeger_480.webp
Normal file
After Width: | Height: | Size: 93 KiB |
BIN
static/img/fotos/laptop_matte.jpeg
Normal file
After Width: | Height: | Size: 6.1 MiB |
BIN
static/img/fotos/laptop_matte_240.webp
Normal file
After Width: | Height: | Size: 70 KiB |
BIN
static/img/fotos/laptop_matte_360.webp
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
static/img/fotos/laptop_matte_480.webp
Normal file
After Width: | Height: | Size: 130 KiB |
12
static/img/fotos/thumbnail.py
Executable file
|
@ -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])
|