File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33IMG=" $( mktemp --tmpdir " ${USER} -system.lock-screen.XXXXXXXX.png" ) "
44scrot -o " $IMG "
5- convert " $IMG " -scale 10% -scale 1000% " $IMG "
5+ magick " $IMG " -scale 10% -scale 1000% " $IMG "
66i3lock -i " $IMG "
77rm " $IMG "
88screen.off
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments