Invalid Parameter - -resize npm ImageMagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
bealefay
Posts: 1
Joined: 2020-02-06T20:58:32-07:00
Authentication code: 1152

Invalid Parameter - -resize npm ImageMagick

Post by bealefay »

Hello, https://www.analpornvideos.xxx/
I intend to resize any image from localPath to thumbPath to 100x100:

Code: Select all

im.convert([localPath, '-resize', '100x100', thumbPath], function (err, stdout, stderr) {
                                if (err) {
                                    console.log('error in resizing user id proof image ===>>>', err);
                                    reject(err);
                                } else {
                                    resolve(imageName);
                                }
And I get error as follows:

Code: Select all

error in resizing user id proof image ===>>> { Error: Command failed: Invalid Parameter - -resize

    at ChildProcess.<anonymous> (C:\Users\Bidchat\Documents\GrassdoorWebService\node_modules\imagemagick\imagemagick.js:88:15)
    at ChildProcess.emit (events.js:180:13)
    at ChildProcess.emit (domain.js:421:20)
    at maybeClose (internal/child_process.js:936:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) timedOut: false, killed: false, code: 4, signal: null }
Help is appreciated.
Last edited by bealefay on 2020-03-16T03:24:25-07:00, edited 1 time in total.

snibgo
Posts: 12894
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Invalid Parameter - -resize npm ImageMagick

Post by snibgo »

What version of IM, on what platform? I suppose your platform is Windows.

If you use IM v7, I suggest you use "magick", not "convert".
bealefay wrote:Command failed: Invalid Parameter
This message doesn't come from ImageMagick "convert". Instead, it comes from Microsoft Windows "convert". You are running the wrong program.
snibgo's IM pages: im.snibgo.com

Post Reply