Add 6K too

This commit is contained in:
David Heinemeier Hansson
2026-03-25 14:25:01 +01:00
parent 5726f22471
commit a91fde6a3b
+8
View File
@@ -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"