如何判断GIF是否是动图
用记事本(或其他文本工具)打开图像文件,若是单图像会发现JFIF的标识,若为动图,则会出现GIF。


char strGIF[3];
memcpy( strGIF, pbyImageBuffer, 3 );
string strImgType(strGIF);
if ( strImgType.compare("GIF") == 0 ) ///< 动态GIF图,不支持
{
cout << "can't process!" << endl;
}