Skip to content

Instantly share code, notes, and snippets.

View toFrankie's full-sized avatar
🤔

Frankie toFrankie

🤔
  • China, GuangZhou
View GitHub Profile
@toFrankie
toFrankie / gif_info.sh
Created June 1, 2024 12:43
Used to obtain GIF image information
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=""