From ccb2cfb2e61dad1bd7770984b63751e98b52b80c Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 10 Feb 2022 21:29:04 +0100 Subject: [PATCH] jpeg resize script --- zsh/scripts | 4 ++++ 1 file changed, 4 insertions(+) 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