Introduction
Introduction Statistics Contact Development Disclaimer Help
Migrate to current imagemagick magick call. - annna - Annna the nice friendly b…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit e823b4af875fa22a646d2bfa5f8a31e8a6fb59e1
parent b8770a9e1ea0af2eca5a93dcadb7e98c5f599a0d
Author: Annna Robert-Houdin <[email protected]>
Date: Thu, 16 Oct 2025 14:36:35 +0200
Migrate to current imagemagick magick call.
Diffstat:
M annna-message-common | 2 +-
M antidepressant | 2 +-
M art-of-day | 2 +-
M fan-of-day | 2 +-
M image-search | 2 +-
M pointer | 4 ++--
M putin-os | 2 +-
M revpointer | 4 ++--
M satanic-ritual | 2 +-
M simulate-simulator | 2 +-
M tshirt-design | 2 +-
11 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -1714,7 +1714,7 @@ case "${IRC_PRIVMSG_TEXT}" in
image/webp)
# deface does not like webp. Make it png.
newinpath="$(mktemp -u -p /tmp "${infile%.*}XX…
- magick convert "${inpath}" "${newinpath}" >/de…
+ magick "${inpath}" "${newinpath}" >/dev/null 2…
inpath="${newinpath}"
outfile="${outfile%.*}.png"
diff --git a/antidepressant b/antidepressant
@@ -20,7 +20,7 @@ case "$mimetype" in
die "file type '${mimetype}' not supported";;
esac
-magick convert /br/gopher/memecache/c++-anti-depressant.jpg \
+magick /br/gopher/memecache/c++-anti-depressant.jpg \
\( "${in}" -resize 200x100 \) \
-gravity center -geometry -240+200 \
-composite "$2"
diff --git a/art-of-day b/art-of-day
@@ -18,7 +18,7 @@ arturi="$(stable-diffusion-emoji "${fortunecookie}")"
emojipath="/br/gopher/$(printf "%s\n" "${arturi}" | cut -d/ -f5-)"
artfile="art_$(LANG=C date +%Y-%m-%dT%H:%M:%S.%N%z).jpg"
artpath="/br/gopher/art/${artfile}"
-magick convert "${emojipath}" "${artpath}" 2>/dev/null
+magick "${emojipath}" "${artpath}" 2>/dev/null
arturi="gophers://bitreich.org/I/art/${artfile}"
annna-say -c "${channel}" "Today's art: ${arturi}"
diff --git a/fan-of-day b/fan-of-day
@@ -10,7 +10,7 @@ fanuri="$(stable-diffusion-emoji "computer fan on CPU beautif…
emojipath="/br/gopher/$(printf "%s\n" "${fanuri}" | cut -d/ -f5-)"
fanfile="onlyfan_$(LANG=C date +%Y_%m_%d_%H_%M_%S_%z).jpg"
fanpath="/br/gopher/onlyfans/${fanfile}"
-magick convert "${emojipath}" "${fanpath}" 2>/dev/null
+magick "${emojipath}" "${fanpath}" 2>/dev/null
onlyfansuri="gophers://bitreich.org/I/onlyfans/${fanfile}"
annna-say -c "${channel}" "Today's fan: ${onlyfansuri}"
diff --git a/image-search b/image-search
@@ -35,7 +35,7 @@ get_image() {
return
;;
image/*)
- magick convert "$out" "${out}.tmp.jpg"
+ magick "$out" "${out}.tmp.jpg"
mv "${out}.tmp.jpg" "$out"
return
;;
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)"
- magick convert "$1" "$in"
+ magick "$1" "$in"
if [ $? -gt 0 ];
then
rm "${in}"
@@ -43,7 +43,7 @@ esac
n="${1##*/}"
n="${n%.*}"
tmp="$(mktemp tmp.XXXXXXXXX.jpg)"
-magick convert \
+magick \
\( \
+append \
"${in}" \
diff --git a/putin-os b/putin-os
@@ -20,7 +20,7 @@ case "$mimetype" in
die "file type '${mimetype}' not supported";;
esac
-magick convert /home/annna/bin/modules/filter-media/putin-computing.png \
+magick /home/annna/bin/modules/filter-media/putin-computing.png \
\( "${in}" \
-matte \
-virtual-pixel transparent \
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)"
- magick convert "$1" "$in"
+ magick "$1" "$in"
if [ $? -gt 0 ];
then
rm "${in}"
@@ -43,7 +43,7 @@ esac
n="${1##*/}"
n="${n%.*}"
tmp="$(mktemp tmp.XXXXXXXXX.jpg)"
-magick convert \
+magick \
\( \
+append \
"${in}" \
diff --git a/satanic-ritual b/satanic-ritual
@@ -20,7 +20,7 @@ case "$mimetype" in
die "file type '${mimetype}' not supported";;
esac
-magick convert /home/annna/bin/modules/filter-media/ritual.jpg \
+magick /home/annna/bin/modules/filter-media/ritual.jpg \
\( "${in}" \
-matte \
-virtual-pixel transparent \
diff --git a/simulate-simulator b/simulate-simulator
@@ -20,7 +20,7 @@ do
fi
out="${img%.*}-simulator.jpg"
- magick convert -gravity NorthWest \
+ magick -gravity NorthWest \
-font "Helvetica-Narrow-Oblique" -pointsize 70 \
-stroke '#000C' -strokewidth 2 -annotate +0+10 "$q" \
-stroke none -fill white -annotate +0+10 "$q" \
diff --git a/tshirt-design b/tshirt-design
@@ -61,7 +61,7 @@ case "$shirt" in
die "unknown tshirt: $tshirt";;
esac
-magick convert "$shirt" \
+magick "$shirt" \
\( "${in}" \
-matte \
-virtual-pixel transparent \
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.