Skip to content

Commit 7d9b419

Browse files
♻️ refactor: Use magick instead of deprecated convert.
1 parent 63fe0d2 commit 7d9b419

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.bin/system.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
IMG="$(mktemp --tmpdir "${USER}-system.lock-screen.XXXXXXXX.png")"
44
scrot -o "$IMG"
5-
convert "$IMG" -scale 10% -scale 1000% "$IMG"
5+
magick "$IMG" -scale 10% -scale 1000% "$IMG"
66
i3lock -i "$IMG"
77
rm "$IMG"
88
screen.off

.config/ranger/scope.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ handle_image() {
129129
case "${mimetype}" in
130130
## SVG
131131
# image/svg+xml|image/svg)
132-
# convert -- "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
132+
# magick -- "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
133133
# exit 1;;
134134

135135
## DjVu
@@ -146,7 +146,7 @@ handle_image() {
146146
## needs rotating ("1" means no rotation)...
147147
if [[ -n "$orientation" && "$orientation" != 1 ]]; then
148148
## ...auto-rotate the image according to the EXIF data.
149-
convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
149+
magick -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
150150
fi
151151

152152
## `w3mimgdisplay` will be called for all images (unless overriden
@@ -193,7 +193,7 @@ handle_image() {
193193
--text " The quick brown fox jumps over the lazy dog. " \
194194
"${FILE_PATH}";
195195
then
196-
convert -- "${preview_png}" "${IMAGE_CACHE_PATH}" \
196+
magick -- "${preview_png}" "${IMAGE_CACHE_PATH}" \
197197
&& rm "${preview_png}" \
198198
&& exit 6
199199
else

0 commit comments

Comments
 (0)