Skip to content

Commit

Permalink
use "magick" instead of "convert"
Browse files Browse the repository at this point in the history
The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"
  • Loading branch information
Albert-aka-Albot authored Jun 28, 2024
1 parent c3be9a3 commit fbf0463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/cliphist-wofi-img
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ read -r -d '' prog <<EOF
/^[0-9]+\s<meta http-equiv=/ { next }
match(\$0, /^([0-9]+)\s(\[\[\s)?binary.*(jpg|jpeg|png|bmp)/, grp) {
image = grp[1]"."grp[3]
system("[ -f $thumb_dir/"image" ] || echo " grp[1] "\\\\\t | cliphist decode | convert - -resize '256x256>' $thumb_dir/"image )
system("[ -f $thumb_dir/"image" ] || echo " grp[1] "\\\\\t | cliphist decode | magick - -resize '256x256>' $thumb_dir/"image )
print "img:$thumb_dir/"image
next
}
Expand Down

0 comments on commit fbf0463

Please sign in to comment.