image optimizer plugin - requests
-
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 -
@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
-
Can this be repeated on nodebb?
https://blog.discourse.org/2021/07/faster-user-uploads-on-discourse-with-rust-webassembly-and-mozjpeg/