对ImgBB图片上传服务的支持

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
image
(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 个赞

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 个赞

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

1 个赞

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

1 个赞

Darn. Still a great deal for backups.

1 个赞

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.

很希望这能成为一个插件/组件——这已经实现了吗?

听起来不像。

我猜开发这样一个插件需要花费 500-1000 美元,这相当于很多年的 Digital Ocean Spaces(或 为上传配置 S3 兼容对象存储提供商 中提到的其他几个提供商)的使用费用。事实上,如果这个插件存在的话,使用 Spaces 可能比支付维护费用更便宜。

1 个赞