From cd995319bf521536910a2432e9706661289ba4cb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 12 Jan 2026 11:50:07 +0100 Subject: [PATCH] Add img2jpg-medium --- default/bash/functions | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/default/bash/functions b/default/bash/functions index 1839e242..ee6b7a54 100644 --- a/default/bash/functions +++ b/default/bash/functions @@ -58,7 +58,7 @@ img2jpg() { img="$1" shift - magick "$img" $@ -quality 95 -strip ${img%.*}-optimized.jpg + magick "$img" $@ -quality 95 -strip ${img%.*}-converted.jpg } # Transcode any image to JPG image that's great for sharing online without being too big @@ -66,7 +66,14 @@ img2jpg-small() { img="$1" shift - magick "$img" $@ -resize 1080x\> -quality 95 -strip ${img%.*}-optimized.jpg + magick "$img" $@ -resize 1080x\> -quality 95 -strip ${img%.*}-small.jpg +} +# Transcode any image to JPG image that's great for sharing online without being too big +img2jpg-medium() { + img="$1" + shift + + magick "$img" $@ -resize 1800x\> -quality 95 -strip ${img%.*}-medium.jpg } # Transcode any image to compressed-but-lossless PNG