// DIE's signature file

init("image","GIF");

function detect(bShowType,bShowVersion,bShowOptions)
{
    if(Binary.getSize()>=11)
    {
        if(Binary.compare("'GIF8'"))
        {
            sVersion=Binary.getString(3,3);
            sOptions=sOptions.append(Binary.readWord(6)+"x"+Binary.readWord(8),
                                     ((Binary.readByte(10)&7)+1)+"bpp");
            bDetected=1;
        }
    }

    return result(bShowType,bShowVersion,bShowOptions);
}
