Required local storage for URL referenced images vs. uploaded images?

AI-generated summary

Required local storage for URL referenced images vs. uploaded images

Cardinalflyer is concerned about using up allotted space for their Discourse instance and wants to know if referencing images by URL saves space compared to uploading them. Falco responds that Discourse uploads a local copy of URL-referenced images to prevent discussions from becoming useless when the original images stop working. This means that both methods use the same amount of storage.

Falco also mentions that disabling the feature to download remote images to local would result in a worse user experience over time. To mitigate storage concerns, Discourse has a sophisticated image compression feature that reduces the size of uploaded images, and users can also consider using a dedicated object storage for uploads, such as S3 or clones, which can scale independently from the forum server storage.

I’m concerned about using up the allotted space for my instance of Discourse. Although we still have substantial headroom, I like to plan ahead. I’ve suggested to my users that referencing images by URL will save us space over uploading those images.

But one user points out that it appears that Discourse uploads a local copy, even from URL referenced images.

Does the system use the same amount of storage either way? If so, asking for URL referencing instead of uploading is adding work with no benefit.

Our Community is about private aircraft. Most images are technical, related to aircraft maintenance. But some users have started sharing multiple images from their recent flights… usually boring shots of random cities from the air that look like every other picture from an airplane.

Understanding how the difference reference methods impact storage will help me guide policy. Or perhaps available storage will magically grow faster than usage? It could happen!

Yes, that is a big Discourse feature to ensure that discussions with images won’t become useless when those hotlinked images stop working in a couple of years.

You can disable it with the site setting download remote images to local, but it will result in a worse user experience over time.

Yes. Exactly.

We have a quite sophisticated image compression feature that will result on those images taken from smartphones be 50x smaller than what their size would be otherwise.

See Faster (and smaller) uploads in Discourse with Rust, WebAssembly and MozJPEG | Blog.

Another option is using a dedicated Using Object Storage for Uploads (S3 & Clones) to store those images, which can scale independently from your forum server storage.