Skip to content

Commit c164c4c

Browse files
feat(contrib): use "magick" instead of "convert" (sentriz#104)
The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"
1 parent 05d29dc commit c164c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/cliphist-wofi-img

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ read -r -d '' prog <<EOF
3030
/^[0-9]+\s<meta http-equiv=/ { next }
3131
match(\$0, /^([0-9]+)\s(\[\[\s)?binary.*(jpg|jpeg|png|bmp)/, grp) {
3232
image = grp[1]"."grp[3]
33-
system("[ -f $thumb_dir/"image" ] || echo " grp[1] "\\\\\t | cliphist decode | convert - -resize '256x256>' $thumb_dir/"image )
33+
system("[ -f $thumb_dir/"image" ] || echo " grp[1] "\\\\\t | cliphist decode | magick - -resize '256x256>' $thumb_dir/"image )
3434
print "img:$thumb_dir/"image
3535
next
3636
}

0 commit comments

Comments
 (0)