From e288092084442c05186ea34bf20aa8af1ce034e1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 25 Mar 2026 14:20:25 +0100 Subject: [PATCH] Adjust sizes and quality --- default/bash/fns/transcoding | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/default/bash/fns/transcoding b/default/bash/fns/transcoding index ea33c75b..8a31f2b0 100644 --- a/default/bash/fns/transcoding +++ b/default/bash/fns/transcoding @@ -13,10 +13,10 @@ img2jpg() { img="$1" shift - magick "$img" "$@" -quality 95 -strip "${img%.*}-converted.jpg" + magick "$img" "$@" -quality 75 -strip "${img%.*}-converted.jpg" } -# Transcode any image to a small JPG (max 1080px wide) that's great for sharing online +# Transcode any image to a small JPG (max 1080px wide) img2jpg-small() { img="$1" shift @@ -24,12 +24,12 @@ img2jpg-small() { magick "$img" "$@" -resize 1080x\> -quality 95 -strip "${img%.*}-small.jpg" } -# Transcode any image to a medium JPG (max 1800px wide) that's great for sharing online +# Transcode any image to a 4K JPG (max 2160px wide) img2jpg-medium() { img="$1" shift - magick "$img" "$@" -resize 1800x\> -quality 95 -strip "${img%.*}-medium.jpg" + magick "$img" "$@" -resize 2160x\> -quality 75 -strip "${img%.*}-medium.jpg" } # Transcode any image to compressed-but-lossless PNG