Payment system using stripe with support for subscriptions and one time payments, and can perform actions (ban user, remove from group, etc) if someone charges back the payment.
image optimizer plugin - requests
-
Features
- Automatically scales large image uploads to a more "sane" size
- Bulk-resize feature to selectively resize existing images
- Allows configuration of max width/height and jpg quality
e.g / wp plugin: https://wordpress.org/plugins/imsanity/
-
-
up
-
There is a hook for image resize which makes a plugin possible.
https://github.com/NodeBB/NodeBB/wiki/Hooks#imageAnd more from Julian.
We don't have any client-side image editing tools at the moment
https://github.com/NodeBB/NodeBB/issues/3819#issuecomment-160369705 -
As @nhl-pl says, there are some hooks that you may want to utilise. The image resize hook specifically is only called whenever
resizeImage
is called in NodeBB, which is mainly for user profile updates. If you're thinking of a more generic resizing (i.e. applicable to all locally uploaded images), then we might have to create a static hook to be fired when an image is finished uploading. -
It's worth mentioning there are some Node.js modules which can be used as dependencies.
The fastest Node.js module for resizing JPEG, PNG, WebP and TIFF images.
https://github.com/lovell/sharpAnd here an example how it can be used.
On-the-fly image resizing using Node.js and GraphicsMagick.
https://github.com/jimmynicol/image-resizer -
Alternatively, if you don't wish to add dependencies, you can use jimp, which is already installed in NodeBB:
var jimp = module.parent.require('jimp');
-
@julian don't do this or recommend doing this. Add the package to your deps and require it normally. npm can decide to install it or not.
Never rely on other modules' deps to be stable.
-
Need this plugin badly because for most of our post, we have screenshot of images.
Possible to have a plugin that can resize and compress images at the same time?
Compress images: https://tinypng.com/ has a nodejs package
-
This post is deleted! -
This post is deleted! -
@ilblog Core already resizes images, doesn't it?
-
@julian Maybe yes, we will try
-
@ilblog Hmm we have "Request Entity Too Large" error message trying to upload 1.6Mb pic. Running 1.11.1. Will ask or admins.
-
Check your config https://yourwebsite/admin/settings/uploads
-
@ilblog said in image optimizer plugin - requests:
@ilblog Hmm we have "Request Entity Too Large" error message trying to upload 1.6Mb pic. Running 1.11.1. Will ask or admins.
If you use Nginx check here for solution that worked for me.
-
Can this be repeated on nodebb?