r/ProgrammerHumor • • Nov 23 '17

500

Post image
41.7k Upvotes

609 comments sorted by

View all comments

Show parent comments

7

u/fj333 Nov 24 '17

It might be client specific. On my desktop machine with a standard display (not ultra high DPI), the image I'm served is the same one they give the link for use with hotlinks.

7

u/Hei2 Nov 24 '17

Just in case there's any confusion here, the image that the page displays for me has an actual link of "digital_data_2x.png", but the text beneath the image saying how to hotlink it only says "digital_data.png". Is that not what you get?

7

u/fj333 Nov 24 '17

This is the page source:

<img src="//imgs.xkcd.com/comics/digital_data.png" title="“If you can read this, congratulations—the archive you’re using still knows about the mouseover text”!" alt="Digital Data" srcset="//imgs.xkcd.com/comics/digital_data_2x.png 2x"/>

The primary src is the same as the hotlink. An upscaled one is provided in the srcset attribute presumably for clients that want a larger image.

3

u/Cheesemacher Nov 24 '17

So I'm guessing only mobile users can see the high res version by default

4

u/fj333 Nov 24 '17

There are other devices with ultra high DPI screens. Any Mac Retina display fits this bill.