Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command failed #864

Open
seongjin605 opened this issue Sep 12, 2023 · 2 comments
Open

Command failed #864

seongjin605 opened this issue Sep 12, 2023 · 2 comments

Comments

@seongjin605
Copy link

seongjin605 commented Sep 12, 2023

Hello,

We're using gm
However, we are getting a Command failed error in command.js.
What can we do to fix this?

Thanks!

The code in question does the following:

            gm()
                .command('convert')
                .in('+adjoin')
                .in(`./${inputFile}`)
                .write(`./${originalFileName}/${originalFileName}_%d.jpg`, function (err) {
                    if (err) {
                        reject(err);
                    }
                    resolve();
                });
            });

Error Log:

Error: Command failed: \n at ChildProcess.onExit (/app/node_modules/gm/lib/command.js:318:17)\n at ChildProcess.emit (node:events:513:28)\n at ChildProcess.emit (node:domain:489:12)\n at maybeClose (node:internal/child_process:1091:16)\n at ChildProcess._handle.onexit (node:internal/child_process:302:5)

Dockerfile:

FROM node:18.16.0-alpine3.16

RUN sed 's/https/http/g' -i /etc/apk/repositories

RUN apk update && apk add bash
RUN apk add --no-cache git
RUN apk add g++ make py3-pip
RUN apk add --no-cache imagemagick graphicsmagick

WORKDIR /app
ADD . /app/

RUN npm i npm@9 -g

ENTRYPOINT ["npm", "run", "start"]

Our Versions are:

@jasrusable
Copy link

I am having the same problem. Any updates?

@seongjin605
Copy link
Author

I am having the same problem. Any updates?

I migrated to sharp because there seems to be no support for this library anymore. 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants