Support for ImgBB image upload service

AI-generated summary

The discussion revolves around integrating ImgBB’s image hosting service into Discourse to save disk space. nekodroid highlights that ImgBB’s current implementation lacks a toolbar icon and embeds images as small links, differing from Discourse’s native upload behavior. Suggestions include building a plugin or theme component to handle uploads properly itsbhanusharma, though riking notes Discourse downloads remote images by default — requiring ImgBB to be added to disabled image download domains if used. itsbhanusharma later clarifies their idea was to mirror S3-style embedding, but admits it’s overkill. Alternatives like Backblaze B2 (free 10GB) are proposed pfaffman, though noted to have limited free outbound transfer (1GB/day) itsbhanusharma. nekodroid affirms their original intent and offers a small budget (~$10) for development. wendellverli expresses interest in such a plugin, but pfaffman estimates development costs at $500–$1000 — far exceeding the cost of using affordable S3-compatible storage like DigitalOcean Spaces over time. No such plugin exists yet, and using existing object storage is deemed more cost-effective.

Hello there

ImgBB.com provides support for websites to upload their images on their servers :

Upload plugin — ImgBB

I found this feature pretty interesting since it would allow site owners to save a lot of disk space.

Unfortunately this won’t implement properly into discourse, first because no icon appears in the text area toolbar for the “Upload images” button


(see the little greyed area at the middle)

Second, this will just implement the image as a small link, in a different way than the default image upload feature built in Discourse.

Could this be implemented as a plugin ?

This can be implemented as a plugin. If you have a budget, try posting in Marketplace

A theme component should suffice for the upload component, but by default Discourse will download remote images to ensure they aren’t deleted.

Make sure to add imgbb to disabled image download domains after checking their policy about when images are deleted if you implement this upload widget.

4 Likes

I had a different idea when I said plugin.

e.g.
Upload to Composer > file is saved to imgBB > Embedded into discourse like discourse already implements image uploads to S3.

I guess that was an overkill idea :stuck_out_tongue:

3 Likes

I would instead try using backblaze b2 for an S3 bucket. The first 10gb is free.

1 Like

I guess they only allow 1GB transfer out per day for free.

1 Like

Darn. Still a great deal for backups.

1 Like

Yes that’s what I meant

Other answers were helpful as well tho

I don’t have much of a budget but I believe this would be useful for everyone.

I could put like ten dollars into it, else.

Would love for this to be a plugin / component - has this been implemented?

It doesn’t sound like it.

I’d guess that such a plugin will cost $500-1000 to develop, which is pretty many years of Digital Ocean Spaces (or any of the serveral others in Configure an S3 compatible object storage provider for uploads). In fact, it would probably be cheaper to use Spaces than to pay to maintain the described plugin if it existed.

1 Like