jpeg resize script

This commit is contained in:
Jan Jastrow 2022-02-10 21:29:04 +01:00
parent 950e351f77
commit ccb2cfb2e6

View File

@ -34,3 +34,7 @@ function png2web() {
rm -f "$f"; rm -f "$f";
done done
} }
function jpeg1024() {
magick "$1" -resize '1024x1024\>' -background black -flatten TGA:- | cjpeg -quality 70 -targa -outfile $1.jpg
}