According to the Atlantic, via Gizmodo, it’s pronounced “jif” like the peanut butter. Because the folks at CompuServe, who invented the format, said so.
But I hear people say “gif” with a hard “g” sound all the time. That’s the way I’ve pronounced it over the years. I have been wrong all along.