Node.js processing pictures gm (path). Resize () does not work

clipboard.png

clipboard.png
has no effect at all, and the console does not report errors.
Environment: win10,imageMagick version is 7.0. imageMagick can handle pictures on the command line.
has a god ever done similar functions

Mar.04,2021

var gm = require ('gm');

gm (' / path/to/image.jpg')
.resize (353,257)
.autoOrient ()
.write (writeStream, function (err) {
if (! err) console.log ('hooray!');
});

)
In the example of the

official website, of course you have nothing to write to the file, and this is an asynchronous method.

Menu