New method gif2jpg.cpp#getType.