Skip to content

Commit

Permalink
feat(contrib): use "magick" instead of "convert" (#104)
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 29, 2024
1 parent 05d29dc commit c164c4c
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 c164c4c

Please sign in to comment.