This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gifinfo() { | |
# 检查是否安装了 ImageMagick | |
if ! command -v identify &>/dev/null; then | |
echo -e "\033[31mError: ImageMagick is not installed.\033[0m" | |
return 1 | |
fi | |
local num_frames=-1 | |
local filename="" |