From a91fde6a3bf657c2604082d6b1c3e0c9499358f7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 25 Mar 2026 14:25:01 +0100 Subject: [PATCH] Add 6K too --- default/bash/fns/transcoding | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/default/bash/fns/transcoding b/default/bash/fns/transcoding index a3783aa2..6f5b6a59 100644 --- a/default/bash/fns/transcoding +++ b/default/bash/fns/transcoding @@ -32,6 +32,14 @@ img2jpg-medium() { magick "$img" "$@" -resize 2160x\> -quality 85 -strip "${img%.*}-medium.jpg" } +# Transcode any image to a 6K JPG (max 3160px wide) +img2jpg-large() { + img="$1" + shift + + magick "$img" "$@" -resize 3160x\> -quality 85 -strip "${img%.*}-large.jpg" +} + # Transcode any image to compressed-but-lossless PNG img2png() { img="$1"