Hosting Images for my Game SOLVED

Sheograth10
29 Jan 2020, 00:14

Hi,

For my game, I'd like to add some images, but since their file sizes will be large and I'd rather not compress them, I'm trying to host them from imgur. But when I try that, I get this:

Imgur

And this is the code I'm using for it:

<img src=\'https://imgur.com/VKJ44Pq\' />

Am I doing something wrong? I'd like to trim down the game's file size by switching to hosted images.


mrangel
29 Jan 2020, 02:19

That's the address of the image's page on imgur, not the image itself.

The code you want is:

<img src="https://i.imgur.com/VKJ44Pq.png" />

When you upload an image, the link you want is the "Direct Link".


Sheograth10
29 Jan 2020, 02:23

That worked like a charm. I didn't realize I needed the direct link.

Thanks for the help.