Updated to 1.1.0Fixes a crash with newer node versions. Added the query protocol to the game dropdown.
[nodebb-plugin-imgur] Imgur Plugin
@henrywright How many images do you host? 20 GB would be enough for some years for a small forum.
Henry Wright last edited by
@prog currently 3 images in total. 1 of which is my site logo. I take your point hehe
I'm surprised DO doesn't have a feature to pay for more disk space separate from upgrading to the next tier. It's a little crazy actually.
I'm pretty sure if you pay for the next tier. Your storage doesn't change. Thought it was just ram. Guess I've never really looked. A CDN is definitely a better option than self hosting. Keeps the requests to your VPS down.
Would be great if images went through compressor.io before being uploaded to imgur. Wouldn't be so good with high quality images. Guesa you could just do it with the jpgs. Since they're already compressed.
A CDN is definitely a better option than self hosting. Keeps the requests to your VPS down.
Not in every case. I have an overpowered server with a SSD and my visitors are from smaller country, which keeps the user-server distance small. I also have more control over the images, but imgur is really good and I would take if I hadn't such a server.
Would be great if images went through compressor.io before being uploaded to imgur.
That is a very good idea, I like tinypng.com though
MJ last edited by
Using it, works great, the only problem is, i can't upload GIF files. Is this only me, or are more people having this problem?
Hi guys i follow the instruction to installed the plug in but when i tried to up load I get, How did you guys overcome this? or did I miss any steps?
@linan2332 Did you follow the steps in the plugins setup page in ACP?
Yes, i follow the steps in https://github.com/barisusakli/nodebb-plugin-imgur
register a new user, authorize the application with secret and client id. Everything proceed with no error
@linan2332 after you entered the client id and secret in the plugin ACP page and clicked enter..... it takes you to imgur website to authorize... after you authorize it... did it return back to the same ACP plugin page?
@pichalite Yes it did, and then I tried to upload an image and show the above error. I also tried to restart nodebb but is still the same
@linan2332 well then I have no idea what else to do... works fine for me in two separate installations.
I dig into the logs and find the following error, does this help..?
8/1 04:05  - [31merror[39m: /api/admin/uploadlogo
at refreshToken (/app/node_modules/nodebb-plugin-imgur/index.js:102:20)
at Request._callback (/app/node_modules/nodebb-plugin-imgur/index.js:216:13)
at Request.self.callback (/app/node_modules/request/request.js:198:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/app/node_modules/request/request.js:1035:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (/app/node_modules/request/request.js:962:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
Anyone know why this error happens? When I try and upload a gif it will produce this error. Though i'm able to upload the gif directly if I upload via Imgur. Also happens when I try and upload a pic from my phone.
@torn2 you need to increase the file size limit in your nginx config file.
@baris Thanks for the help. That fixed it!
Published 1.0.16 with a fix for token refreshing. If you are on 1.0.15 you should update.
Published 1.0.17 with another fix for refresh tokens.
TaLoche last edited by
Hello and thanks for the great plugin!
I've noticed that since my upgrade to Nodebb v1.4.x when uploading an image with the imgur plugin, before I had a lovely percent progression, 1% to 100% now I just have a "100%" mention next to the imgur link being generated.
Is there a way to correct this or did I do something wrong?
oPignonLibre last edited by
@baris First of all thanks for the great work. Is there any plan to update this plugin ? Since imgur provides way to get thumbnails link by appending a simple letter suffix to the basename, here are 3 features I can suggest.
- Adding an option for the user to choose one of the available imgur thumbnails instead of the full size image
- Adding an option for an admin to choose a mandatory maximum thumbnail size
- Best would be adding an option so the plugin create a clickable thumbnail that link to the full size image, i.e. something like
Surely I'm not the sole nodeBB admin with some photo heavy threads that would like to force the user to use the huge thumbnail (which in reality is only 1024x1024) instead of the full size image so that mobile and low bandwith users can load the pages faster.