jimp-dev/jimp

Documentation! Why none of the examples in plugins-* mention about writing the processed image back to the file-system?

Open

#897 opened on May 28, 2020

View on GitHub
 (0 comments) (1 reaction) (0 assignees)JavaScript (13,218 stars) (785 forks)batch import
documentationhelp wantedsolution in issue

Description

I stumbled upon this library when I was looking for an image manipulation lib on the server side. When I copy pasted the examples mentioned in plugins-resize, plugins-blur, it just executes! And the original image remains as it is! I was puzzled for a while and I even passed a callback with a console statement which worked fine but the input image just didn't change!

All the code examples in default plugins only shows how to read and how to apply it.

It would save a lot of beginners time if those examples had one more line that saves the output to filesystem: image.write('output.jpg');

Contributor guide