diff --git a/zsh/scripts b/zsh/scripts index a122b61..4db1727 100644 --- a/zsh/scripts +++ b/zsh/scripts @@ -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 +} \ No newline at end of file