jpeg resize script

This commit is contained in:
Jan Jastrow 2022-02-10 21:29:04 +01:00
parent 950e351f77
commit ccb2cfb2e6
1 changed files with 4 additions and 0 deletions

View File

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