From 6a12a8cd7b25e8fb415f2486642a7b18cb8d5f8a Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Thu, 2 Nov 2023 17:38:40 -0600 Subject: [PATCH] better canvas generation --- scripts/magick-quick | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/magick-quick b/scripts/magick-quick index 4ad5d04..c8fe8f3 100755 --- a/scripts/magick-quick +++ b/scripts/magick-quick @@ -56,8 +56,9 @@ trim() { canvas() { dialogue "Canvas size (resolution) (e.g. 1920x1080):" && read -r CANVAS_SIZE - dialogue "Canvas color (hex): " && read -r COL_CANVAS - convert -size "$CANVAS_SIZE" canvas:"$COL_CANVAS" canvas.png + dialogue "Operator [canvas (solid)/gradient (gradient)/plasma (random)]:" && read -r OP_MODE + dialogue "Canvas color (hex or name) (e.g. blue, blue-purple, darkblue):" && read -r COL_CANVAS + convert -size "$CANVAS_SIZE" "$OP_MODE":"$COL_CANVAS" canvas.png } resize() { @@ -72,6 +73,8 @@ place() { convert "$CANVAS" -gravity "$GRAV" "$IMAGE" -composite "${IMAGE%%.*}-composite.png" } +# --- File manipulation --- + metastrip() { test_image exiftool -all= "$IMAGE"