better canvas generation
This commit is contained in:
parent
e8f4c226ff
commit
6a12a8cd7b
1 changed files with 5 additions and 2 deletions
|
@ -56,8 +56,9 @@ trim() {
|
||||||
|
|
||||||
canvas() {
|
canvas() {
|
||||||
dialogue "Canvas size (resolution) (e.g. 1920x1080):" && read -r CANVAS_SIZE
|
dialogue "Canvas size (resolution) (e.g. 1920x1080):" && read -r CANVAS_SIZE
|
||||||
dialogue "Canvas color (hex): " && read -r COL_CANVAS
|
dialogue "Operator [canvas (solid)/gradient (gradient)/plasma (random)]:" && read -r OP_MODE
|
||||||
convert -size "$CANVAS_SIZE" canvas:"$COL_CANVAS" canvas.png
|
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() {
|
resize() {
|
||||||
|
@ -72,6 +73,8 @@ place() {
|
||||||
convert "$CANVAS" -gravity "$GRAV" "$IMAGE" -composite "${IMAGE%%.*}-composite.png"
|
convert "$CANVAS" -gravity "$GRAV" "$IMAGE" -composite "${IMAGE%%.*}-composite.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# --- File manipulation ---
|
||||||
|
|
||||||
metastrip() {
|
metastrip() {
|
||||||
test_image
|
test_image
|
||||||
exiftool -all= "$IMAGE"
|
exiftool -all= "$IMAGE"
|
||||||
|
|
Loading…
Reference in a new issue