git » armlfs-site.git » main » tree

[main] / gen-media.sh

#!/bin/bash
set -e
set -x
cd original-media
# Add *.jpg if we add .jpg media
MEDIA=$(echo *.png)
cd ../content/pages
for m in $MEDIA; do
	mnoext="${m%.*}"
	magick ../../original-media/$m -quality 80 -resize 760 -interlace JPEG ${mnoext}_inline.jpg
	magick ../../original-media/$m -quality 96 -interlace JPEG ${mnoext}_full.jpg
done