Add image compression

This commit is contained in:
2024-12-04 20:42:59 +01:00
parent c5f6b1bf80
commit 00381a20d0
186 changed files with 196 additions and 173 deletions

12
utils/compress_pdfs.sh Normal file
View File

@ -0,0 +1,12 @@
cd $1
for f in *.pdf; do
echo "Rewriting $f"
name="${f%.*}"
magick \
-density 200 \
$name.pdf \
-quality 50 \
-flatten \
$name.jpg
done