85 is probably the sweetspot

This commit is contained in:
David Heinemeier Hansson
2026-03-25 14:22:31 +01:00
parent e288092084
commit 5726f22471
+3 -3
View File
@@ -13,7 +13,7 @@ img2jpg() {
img="$1"
shift
magick "$img" "$@" -quality 75 -strip "${img%.*}-converted.jpg"
magick "$img" "$@" -quality 85 -strip "${img%.*}-converted.jpg"
}
# Transcode any image to a small JPG (max 1080px wide)
@@ -21,7 +21,7 @@ img2jpg-small() {
img="$1"
shift
magick "$img" "$@" -resize 1080x\> -quality 95 -strip "${img%.*}-small.jpg"
magick "$img" "$@" -resize 1080x\> -quality 85 -strip "${img%.*}-small.jpg"
}
# Transcode any image to a 4K JPG (max 2160px wide)
@@ -29,7 +29,7 @@ img2jpg-medium() {
img="$1"
shift
magick "$img" "$@" -resize 2160x\> -quality 75 -strip "${img%.*}-medium.jpg"
magick "$img" "$@" -resize 2160x\> -quality 85 -strip "${img%.*}-medium.jpg"
}
# Transcode any image to compressed-but-lossless PNG