ImageMagick, convert to magick.

This commit is contained in:
#root_informatica 2024-08-25 23:15:50 -03:00
parent f04155dc30
commit 08cf4338b5

View file

@ -19,7 +19,7 @@ import -w root $TMPIMG
# color extractor
colext() {
convert $TMPIMG -colors $NC -depth 6 -format '%c' -alpha off histogram:info:- | awk -v RS="" '{print $11,$7,$3}' | tr -d '#'
magick $TMPIMG -colors $NC -depth 6 -format '%c' -alpha off histogram:info:- | awk -v RS="" '{print $11,$7,$3}' | tr -d '#'
}
# if the image file exists, extract the colors and store them temporarily