Skip to content

Instantly share code, notes, and snippets.

@dekokun
Created August 20, 2012 11:05
Show Gist options
  • Save dekokun/3403222 to your computer and use it in GitHub Desktop.
Save dekokun/3403222 to your computer and use it in GitHub Desktop.
gifアニメかどうかを判定
function is_anime(){
local image=$1
image_count=`identify $image | wc -l`
if [ $image_count -gt 1 ]; then
return 0
else
return 1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment