1

https://i.sstatic.net/0JRqu.png doesn't auto download, and is returned with Content-Type: image/png.

https://i.sstatic.net/0JRqus.png autodownloads, and is returned with Content-Type: application/octet-stream.

Same goes for 1V6MW, 1YRVj, 1mT9e, 2Ad36, 2eyGW, 2sZIn (this one is a gif at original size), 2z7WW, 3KPFC, 3gRfJ.

For the record, the reason I find this noteworthy is because the vast majority of images hosted on i.sstatic.net return the same Content-Type for both their original and small thumbnail images. Some return different types (usually JPEG), but this smaller subset of those is even weirder.

... Why?

9
  • 3
    What does "auto download" means?
    – rene
    Commented Jan 20 at 10:51
  • 4
    Appending ‘s’ changes the size. I assume imgur just renders the image and streams it instead of saving a copy. There are more postfixes than ‘s’ btw
    – ColleenV
    Commented Jan 20 at 11:45
  • 1
    No clue why it does, but can confirm the odd behaviour. 0JRqu.png just appears in the browser, 0JRqus.png insists on downloading.
    – Tetsujin
    Commented Jan 20 at 13:51
  • @ColleenV I know. that's why I used the right-ish word "thumbnail suffix"
    – starball
    Commented Jan 20 at 15:44
  • @ColleenV I fail to see why it couldn't render it on the fly and send it as image/jpeg or image/png, or whatever the image format of the original image is.
    – starball
    Commented Jan 20 at 15:54
  • 3
    I'd say it's just a rare bug on imgur side when they create the thumbnail version, same root cause as the peeking duck. So sometimes the image is just ruined, sometimes it cause the server to set wrong content type to it. I'm afraid only imgur developers can confirm or fix that. Commented Jan 20 at 16:12
  • 2
    how is this question not about the software that powers the stack exchange sites?
    – starball
    Commented Jan 21 at 7:48
  • About being off topic I can see the reasoning: the bug is on imgur side, SE can't do anything to fix it. But it's in the gray zone for being on topic here, as it's a third party service SE is using (soon to be "used") so in theory SE can approach imgur and ask them about it. Commented Jan 22 at 9:25
  • If it's any consolation, I can confirm that your image with the s appended to it still returns application/octet-stream from Imgur. However, the new image service replacing Imgur returns the image with the correct content-type when using the thumbnails or s query parameter at the end of the image url.
    – Troy Gould StaffMod
    Commented May 1 at 22:23

0

You must log in to answer this question.

Browse other questions tagged .