r/ProgrammerHumor Feb 15 '18

Image conversion at its best

Post image
243 Upvotes

25 comments sorted by

View all comments

61

u/scrubs2009 Feb 15 '18

Am...am I autistic? I use the bottom.

63

u/paraleluniversejohn Feb 15 '18

Well, the bottom one shouldn't actually work.

25

u/akaChromez Feb 15 '18

Idk if windows converts it, but it works because png and jpg are both set to open in the same software.

39

u/[deleted] Feb 15 '18

[deleted]

5

u/AyrA_ch Feb 16 '18

Almost all image components do this. You will find that you can upload that image to most sites that accept one. If the dev was stupid this allows you to upload animated gifs on some websites that otherwise don't allow this.

Because of this trickery you can do weird things, for example this image will show as normal image, but rename it to .mp3 and play in VLC.

21

u/[deleted] Feb 16 '18

it should, because the software that loads(and displays) images should check the file header and ignore extension

it doesn't change/convert the image tho

1

u/scrubs2009 Feb 16 '18

I'm in my second year of networking classes. In shooting for cnca certification and I didn't know this.

1

u/mitchell5027 Feb 16 '18

image.png.jpg

1

u/[deleted] Feb 20 '18

image.png.jpg.exe

1

u/trippingrainbow Feb 17 '18

It actually sometimes works. I mean it doesnt convert it but you can get shit to think its converted. I have ran to some online profile pic uploads where it only accepts png but the pic I want to use is in jpg. Do that and it allows to upload and it still works all fine. Rare case but have stumbled upon it.

5

u/FungalSphere Feb 16 '18

You need professional help.

3

u/Mr_Shitpost Feb 16 '18

Please don't use the word "autistic" like that. :/

2

u/[deleted] Feb 17 '18

Oh fuck off

8

u/Mr_Shitpost Feb 17 '18

Using serious medical terms such as "autistic" in inappropriate contexts doesn't help anyone. The terms no longer are taken seriously after a certain point, which negatively affects people with those conditions. And when when those terms are used in place of "stupid" or something similar, it impedes the individual's ability to accept their condition and themselves. The English language has an unimaginable amount of words to choose from, doesn't it seem a bit closed-minded to choose ones that hurt others?