From f8482fdad7f4b73efa1e029530f5256fda5d8d06 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 12 Aug 2025 13:05:36 +0200 Subject: [PATCH] Make a function to create a smaller webshare version --- default/bash/functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/default/bash/functions b/default/bash/functions index 670c77db..538f607f 100644 --- a/default/bash/functions +++ b/default/bash/functions @@ -50,3 +50,8 @@ transcode-video-4K() { transcode-png2jpg() { magick $1 -quality 95 -strip ${1%.*}.jpg } + +# Transcode PNG to JPG image that's great for sharing online without being too big +transcode-png2jpg-1080() { + magick $1 -resize 1080x\> -quality 95 -strip ${1%.*}.jpg +}