17

I recently came across this image which seems like a normal GIF:

seems a gif image

Even imgur stores it as a GIF when I uploaded it here.

But when I saw the link, it was a JPEG image, unlike a GIF than what I had expected!

Here's the link: https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash3/559307_325955130827518_630404691_n.jpg

random
  • 9,774
  • 10
  • 66
  • 83
gopi1410
  • 6,567
  • 9
  • 41
  • 75

1 Answers1

21

This is actually a .gif - look at the headers of the HTTP response.

The MIME type is image/gif

So it doesn't matter what the URL says at the end - it's the MIME type that determines how your browser interprets it.

A lot of sites use this (I guess to throw off harvesters?) imgur.com often reports the wrong extension, for example. Try going to i.imgur.com/yourpic.txt - it should still show up as a proper gif.

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
Erty Seidohl
  • 4,487
  • 3
  • 33
  • 45
  • Hmm... If you're using chrome, hit f12. Then go to the "Network" tab and look for your image. Click on it, and check out the "headers" tab that appears. Not sure for other browsers, sorry. – Erty Seidohl Jul 17 '12 at 20:05
  • @gopi1410 use the chrome dev tools if you have chrome. Ctrl Shift I should bring it up. Refresh the page to catch types – Ben Brocka Jul 17 '12 at 20:05
  • C-S-i also works for Opera (Dragonfly) – sehe Jul 18 '12 at 00:07