# Imgur images broken

**URL:** https://meta.discourse.org/t/imgur-images-broken/152509
**Category:** Support
**Created:** [May 24, 2020, 7:38am UTC](https://meta.discourse.org/t/imgur-images-broken/152509 "2020-05-24T07:38:38Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [May 24, 2020, 7:38am UTC](https://meta.discourse.org/t/imgur-images-broken/152509/1 "2020-05-24T07:38:38Z")

</div>

We have an issue that is driving me crazy.

**Problem:** images hosted at imgur are frequently broken.

Example:

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/4/e/4e7fa7d3025ed1bbdca1477f8c3f92e6f3c8559a.png)

Reloading the page via CTRL-F5 makes the images show up, however, since we are having this issue in many topics, this workaround is not really acceptable.

First observed beginning of September 2019 with images from [dslreports.com](http://dslreports.com) and FF69.0 (on Windows)  
Issue is still present today with FF 76.0.1 and Discourse 2.5.0.beta4

### Observations of a different user

- Confirmation using FF 69.0 on macOS 10.12.6…
  - The normal page load is missing the images as reported.
  - Cmd-Shift-R (reload with Shift key down) causes the images to appear
  - Cmd-R (just normal reload) - no images again.

- Chrome Version 77.0.3865.75: Same behavior
  - Cmd-R-no images
  - Cmd-Shift-R has images.

- Safari Version 12.1.2 (12607.3.10) always displays images

### Example topics

- Topic for testing: [Broken imgur images (for testing only) - Site Feedback and Other Questions - OpenWrt Forum](https://forum.openwrt.org/t/broken-imgur-images-for-testing-only/64723)  
**Observation #1:** When I created this topic, **only the “Linked BBCode” wasn’t showing up**  
**Observation #2:** After logging out, closing FF, reopening FF and revisiting this topic again, **all imgur images are broken.** (The first image is not hosted at imgur and is therefore working)
- other topic where this issue is visible: [How to setup bridge on OpenWrt Nanostation M2 - Network and Wireless Configuration - OpenWrt Forum](https://forum.openwrt.org/t/how-to-setup-bridge-on-openwrt-nanostation-m2/64668)

Any clues what could cause this issue and how it can be resolved?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 24, 2020, 5:52pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/2 "2020-05-24T17:52:08Z")

</div>

Do the images post ok here? Try the same image link in a reply here.

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [May 24, 2020, 9:34pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/3 "2020-05-24T21:34:37Z")

</div>

Good idea!

## Imgur

Image link:  
[![Imgur](https://global.discourse-cdn.com/meta/original/3X/a/c/ac4c851d1dd553acc27c783dc777b264f594f35c.jpeg "imgur.com") ](https://imgur.com/6UadCq3)

Direct link:

 ![](https://global.discourse-cdn.com/meta/original/3X/a/c/ac4c851d1dd553acc27c783dc777b264f594f35c.jpeg)

Markdown link:  
[Imgur](https://meta.discourse.org/uploads/short-url/oAe4ec2Wl59ohJsE3L6nlRdabPS.jpeg)

BBCode

 ![](https://global.discourse-cdn.com/meta/original/3X/a/c/ac4c851d1dd553acc27c783dc777b264f594f35c.jpeg)

Linked BBcode → does not work!  
[![](https://global.discourse-cdn.com/meta/original/3X/a/c/ac4c851d1dd553acc27c783dc777b264f594f35c.jpeg)](https://imgur.com/6UadCq3)

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [May 24, 2020, 9:35pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/4 "2020-05-24T21:35:28Z")

</div>

That’s what I see now (no CTRL-F5 pressed yet):

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/a/4/a46b286ca89778f7ec900e13df47327dfcfec1e6.png)

After CTRL-F5 → All images visible.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [May 24, 2020, 10:15pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/5 "2020-05-24T22:15:07Z")

</div>

Works for me on firefox and chrome, with or without ublock origin activated.

Couldn’t it come from your personnal settings on those browsers (some addons can be very sensitive with out-domain images)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 24, 2020, 10:26pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/6 "2020-05-24T22:26:10Z")

</div>

Try in a different web browser, one you don’t normally use. That will rule out any local browser customizations.

If that doesn’t work, try on your cellphone with wifi disabled, which will rule out your local network.

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [May 29, 2020, 3:34pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/7 "2020-05-29T15:34:55Z")

</div>

I will collect data also from other users over the weekend and report back.

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [June 16, 2020, 5:31pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/8 "2020-06-16T17:31:04Z")

</div>

Sorry, took a little longer to come back to this topic.

Interesting observations of today:

Test-topic: [Broken imgur images (for testing only) - Site Feedback and Other Questions - OpenWrt Forum](https://forum.openwrt.org/t/broken-imgur-images-for-testing-only/64723?u=tmomas)

## Firefox

- Freshly opened FF, not logged in, visiting the test-topic: All images in the first posting are working
- Freshly opened FF, **logged in** , visiting the test-topic: Last image in the first posting is not working

## Chrome

- Freshly opened Chrome, not logged in, visiting the test-topic: Last image in the first posting is **not working**
- Freshly opened Chrome, logged in, visiting the test-topic: Last image in the first posting is **not working**

This is repeatable.

EDIT: Above results are for internet access via cable. Just to rule out that it is a connection problem, I crosschecked via mobile phone tethering: same result.

As you can see, for FF it makes a difference if I’m logged in or not; Chrome however doesn’t care, it doesn’t show the last image in any case.

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [June 16, 2020, 5:45pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/9 "2020-06-16T17:45:58Z")

</div>

## Root cause

Linked BBcode → does not work!  
`[url=https://imgur.com/6UadCq3]![](upload://oAe4ec2Wl59ohJsE3L6nlRdabPS.jpeg)[/url]`  
[![](https://global.discourse-cdn.com/meta/original/3X/a/c/ac4c851d1dd553acc27c783dc777b264f594f35c.jpeg)](https://imgur.com/6UadCq3)

Linked BBcode → **does work!**  
`[url=https://imgur.com/6UadCq3][img]http` **`s`** `://i.imgur.com/6UadCq3.jpg[/img][/url]`  
[![](https://global.discourse-cdn.com/meta/original/3X/a/c/ac4c851d1dd553acc27c783dc777b264f594f35c.jpeg)](https://imgur.com/6UadCq3)

Is there any reason for imgur to omit the ‘s’ in the image link?

For the ones who can not see this issue:

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/5/7/57d8651d190dcc981afd5d70b87fbd35148e2231.jpeg)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 16, 2020, 5:53pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/10 "2020-06-16T17:53:26Z")

</div>

Where did you obtain that BBCode without HTTPS ?

Any way, a couple of tips:

- Enabling `download remote images to local` and removing imgur from `disabled image download domains` settings will ensure this never happens by hosting all images locally.

- Don’t know who hosts this forum, but it definitely is not following our [Discourse official Standard Installation](https://meta.discourse.org/t/discourse-official-standard-installation/142537) guide. Because of that it doesn’t have HTTP/2 enable so everyone get a slower site.

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [June 16, 2020, 5:55pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/11 "2020-06-16T17:55:47Z")

</div>

> [@Falco](#):
>
> Where did you obtain that BBCode without HTTPS ?

From the imgur website.

@thess Can you comment on the other two points Rafael mentions?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 16, 2020, 6:05pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/12 "2020-06-16T18:05:18Z")

</div>

> [@tmomas](#):
>
> From the imgur website.

Oh so that is the BBCode generated by imgur when looking into your own image, and using their “Linked Format”.

Well, that is something imgur controls, and nothing we can do about it. Also, we already have workarounds for HTTP content by downloading and serving media locally. Nothing else for us to do.

---

<div class="post-metadata">

### Author: ![thess](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thess/32/121467_2.png) [@thess](https://meta.discourse.org/u/thess)
#### Post date: [June 16, 2020, 8:15pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/13 "2020-06-16T20:15:27Z")

</div>

> [@Falco](#):
>
> - Enabling `download remote images to local` and removing imgur from `disabled image download domains` settings will ensure this never happens by hosting all images locally.

I would prefer to not host images locally unless absolutely necessary.

> [@Falco](#):
>
> Don’t know who hosts this forum, but it definitely is not following our [Discourse official Standard Installation](https://meta.discourse.org/t/discourse-official-standard-installation/142537) guide. Because of that it doesn’t have HTTP/2 enable so everyone get a slower site.

The site is hosted by DigitalOcean. I did the installation in 2016 on Debian 8 with what was available then. And… HTTP/2 has AFAIK always been enabled.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 16, 2020, 8:21pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/14 "2020-06-16T20:21:32Z")

</div>

> [@thess](#):
>
> I would prefer to not host images locally unless absolutely necessary.

That is not really necessary. I believe 99% of the people will just just copy and paste images into composer for most of their needs. ++ ~~select area and + into the composer.~~

 

Also copying the image from imgur, or the URL of it works just fine. This report is just a minor corner case.

You can also use [Replace a string in all posts](https://meta.discourse.org/t/replace-a-string-in-all-posts/48729) to correct all old http imgur links.

> [@thess](#):
>
> The site is hosted by DigitalOcean. I did the installation in 2016 on Debian 8 with what was available then. And… HTTP/2 has AFAIK always been enabled.

Discourse is installed in a Docker container, and we ship updates to nginx so you don’t need support on the host OS. Unless you did a custom setup with a manual reverse proxy, your should have HTTP2 out of the box just by having an up to date Discourse.

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [June 17, 2020, 7:33pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/15 "2020-06-17T19:33:23Z")

</div>

> [@Falco](#):
>
> Also copying the image from imgur, or the URL of it works just fine. This report is just a minor corner case.
> 
> You can also use [Replace a string in all posts](https://meta.discourse.org/t/replace-a-string-in-all-posts/48729) to correct all old http imgur links.

Not only imgur is affected as I found out.

Also affected (see [Broken imgur images (for testing only) - #4 by tmomas - Site Feedback and Other Questions - OpenWrt Forum](https://forum.openwrt.org/t/broken-imgur-images-for-testing-only/64723/4?u=tmomas) for screenshots):

- **dropbox** (https link, e.g. `https://www.dropbox.com/sh/ew0gap0crn30wyk/AACTBNd_oQF4pMzviYqDDtlYa/owrt1907-r11104-e752fc1ff9-20200605?dl=0`)

> **[Dropbox](https://www.dropbox.com/sh/ew0gap0crn30wyk/AACTBNd_oQF4pMzviYqDDtlYa/owrt1907-r11104-e752fc1ff9-20200605?dl=0)**

A screenshot in case you can not see the issue:

* * *

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/f/5/f5b05944821297bb699be15201a5ef2cb45e36d2.png)

* * *

_Link not found_ is contrary to what I see in the OpenWrt forum when I press CTRL-F5 (image link IS working then, and not “not found”)

- **[futurecdn.net](http://futurecdn.net)** (https link, e.g. [https://cdn.mos.cms.futurecdn.net/kSo96fYwdrfQKSvALMKqzc-970-80.png](https://cdn.mos.cms.futurecdn.net/kSo96fYwdrfQKSvALMKqzc-970-80.png))

Fixing this issue for imgur seems rather simple, although with some effort involved, and that effort has to be made regularly, as new non-working links come in.

@Falco Since the dropbox link doesn’t seem to work in the discourse forum too: Do you host images locally as advised above?

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [June 17, 2020, 9:14pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/16 "2020-06-17T21:14:33Z")

</div>

One more example for a non-imgur site that does not work with oneboxing:

`https://www.kuketz-blog.de/openwrt-update-benachrichtigung-fuer-packages/`

> **[OpenWrt: Update-Benachrichtigung für Packages](https://www.kuketz-blog.de/openwrt-update-benachrichtigung-fuer-packages/)**
>
> OpenWrt bietet aktuell keine (vernünftige) Update-Benachrichtigung für installierte Software bzw. Packages an. Das Einspielen von (Sicherheits-)Updates zählt allerdings zu einem…

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/4/a/4ab72779cabd89959f986bd1bb60005ee13a04f2.png)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 17, 2020, 9:36pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/17 "2020-06-17T21:36:37Z")

</div>

> [@tmomas](#):
>
> @Falco Since the dropbox link doesn’t seem to work in the discourse forum too: Do you host images locally as advised above?

Yes, we download images locally, which is the default Discourse behavior.

Posting links from third parties will eventually devolve into broken images, and that is why Discourse comes with this feature built-in from the early days. Of course there is a trade-off, you have to provide space for the images, either locally or using a [Object Storage](https://meta.discourse.org/t/using-object-storage-for-uploads-s3-clones/148916) service.

---

<div class="post-metadata">

### Author: ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)
#### Post date: [June 17, 2020, 11:04pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/18 "2020-06-17T23:04:17Z")

</div>

> [@Falco](#):
>
> Yes, we download images locally

Sorry for being so persistent, but I’m confused and I think I havn’t understood the problem correctly.

What confuses me:

While creating this posting and adding a link to

`https://www.kuketz-blog.de/openwrt-update-benachrichtigung-fuer-packages/`

> **[OpenWrt: Update-Benachrichtigung für Packages](https://www.kuketz-blog.de/openwrt-update-benachrichtigung-fuer-packages/)**
>
> OpenWrt bietet aktuell keine (vernünftige) Update-Benachrichtigung für installierte Software bzw. Packages an. Das Einspielen von (Sicherheits-)Updates zählt allerdings zu einem…

I see a broken image in the preview area:

* * *

— start screenshot —

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/6/8/68c27ec79aae6432e07d07369eece397ce911a82.png)  
— end screenshot —

* * *

However, at time of writing this posting, in [my previous posting](https://meta.discourse.org/t/imgur-images-broken/152509/16) I see the same link with correct image displayed:

* * *

— start screenshot —

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/d/1/d190ba4b6ddc459a52e8412ebc95d0c36e8e432f.png)  
— end screenshot —

* * *

I don’t understand why I’m seeing this issue in the discourse forum, although images are stored locally as you say.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 17, 2020, 11:51pm UTC](https://meta.discourse.org/t/imgur-images-broken/152509/19 "2020-06-17T23:51:58Z")

</div>

> [@tmomas](#):
>
> What confuses me:
> 
> While creating this posting and adding a link to
> 
> `https://www.kuketz-blog.de/openwrt-update-benachrichtigung-fuer-packages/`
> 
> I see a broken image in the preview area:

That means you have installed broken browser extensions. Can you remove all extensions and try again?
