Un site pour la promotion de catium - retour accueil
git clone git://bebou.netlib.re/site-catium
Log | Files | Refs | README |
updatescreens (527B)
1 #! /bin/sh 2 3 mkdir -p contents/screenshots 4 5 < db/galerie grep "^http" | 6 grep -v git | 7 xargs -n1 sh -c 'chromium --window-size=1000,1000 \ 8 --headless=new \ 9 --timeout=5000 \ 10 --hide-scrollbars \ 11 --disable-gpu \ 12 --disable-logging \ 13 --no-sandbox \ 14 --screenshot $1 15 mv screenshot.png contents/screenshots/$(basename $1).png' -- 16 17 18 find contents/screenshots/ -type f -not -name '*.webp' | 19 xargs -n1 sh -c 'convert $1 -resize 50% ${1%%png}webp' -- 20 21 rm contents/screenshots/*.png 22 23