Move to 'magick convert'. 'convert' is deprecated. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 1cc171a58c17959aba8d62cf95f2949c97ce3cf3 DIR parent 838464e6686f9641a9818bc5a2aa85aae6624a2a HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Mon, 23 Sep 2024 20:41:45 +0200 Move to 'magick convert'. 'convert' is deprecated. Diffstat: M annna-message-common | 2 +- M antidepressant | 2 +- M image-search | 2 +- M pointer | 4 ++-- M putin-os | 2 +- M revpointer | 4 ++-- M satanic-ritual | 2 +- M tshirt-design | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -1306,7 +1306,7 @@ case "${text}" in image/webp) # deface does not like webp. Make it png. newinpath="$(mktemp -u -p /tmp "${infile%.*}XXXXX.png")" - convert "${inpath}" "${newinpath}" >/dev/null 2>&1 + magick convert "${inpath}" "${newinpath}" >/dev/null 2>&1 inpath="${newinpath}" outfile="${outfile%.*}.png" DIR diff --git a/antidepressant b/antidepressant @@ -20,7 +20,7 @@ case "$mimetype" in die "file type '${mimetype}' not supported";; esac -convert /br/gopher/memecache/c++-anti-depressant.jpg \ +magick convert /br/gopher/memecache/c++-anti-depressant.jpg \ \( "${in}" -resize 200x100 \) \ -gravity center -geometry -240+200 \ -composite "$2" DIR diff --git a/image-search b/image-search @@ -35,7 +35,7 @@ get_image() { return ;; image/*) - convert "$out" "${out}.tmp.jpg" + magick convert "$out" "${out}.tmp.jpg" mv "${out}.tmp.jpg" "$out" return ;; DIR diff --git a/pointer b/pointer @@ -24,7 +24,7 @@ image/png*) # imagemagick text draw on png files is broken, # tested on gentoo imagemagick version 7.1.0-48 in="$(mktemp tmp.XXXXXXXX.jpg)" - convert "$1" "$in" + magick convert "$1" "$in" if [ $? -gt 0 ]; then rm "${in}" @@ -43,7 +43,7 @@ esac n="${1##*/}" n="${n%.*}" tmp="$(mktemp tmp.XXXXXXXXX.jpg)" -convert \ +magick convert \ \( \ +append \ "${in}" \ DIR diff --git a/putin-os b/putin-os @@ -20,7 +20,7 @@ case "$mimetype" in die "file type '${mimetype}' not supported";; esac -convert /home/annna/bin/modules/filter-media/putin-computing.png \ +magick convert /home/annna/bin/modules/filter-media/putin-computing.png \ \( "${in}" \ -matte \ -virtual-pixel transparent \ DIR diff --git a/revpointer b/revpointer @@ -24,7 +24,7 @@ image/png*) # imagemagick text draw on png files is broken, # tested on gentoo imagemagick version 7.1.0-48 in="$(mktemp tmp.XXXXXXXX.jpg)" - convert "$1" "$in" + magick convert "$1" "$in" if [ $? -gt 0 ]; then rm "${in}" @@ -43,7 +43,7 @@ esac n="${1##*/}" n="${n%.*}" tmp="$(mktemp tmp.XXXXXXXXX.jpg)" -convert \ +magick convert \ \( \ +append \ "${in}" \ DIR diff --git a/satanic-ritual b/satanic-ritual @@ -20,7 +20,7 @@ case "$mimetype" in die "file type '${mimetype}' not supported";; esac -convert /home/annna/bin/modules/filter-media/ritual.jpg \ +magick convert /home/annna/bin/modules/filter-media/ritual.jpg \ \( "${in}" \ -matte \ -virtual-pixel transparent \ DIR diff --git a/tshirt-design b/tshirt-design @@ -61,7 +61,7 @@ case "$shirt" in die "unknown tshirt: $tshirt";; esac -convert "$shirt" \ +magick convert "$shirt" \ \( "${in}" \ -matte \ -virtual-pixel transparent \