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

Error: Command failed: identify-im6.q16: unable to open image #25

Open
mllumiquinga194 opened this issue Sep 19, 2019 · 1 comment
Open

Comments

@mllumiquinga194
Copy link

Greetings, good morning.
I go straight to the point, he knows that I am using the library and I am having problems when I try to resize an image that does not exist on the server. Is there any way to control this behavior? I had to migrate my server and in the process I lost some images, so at the time of resizing them, they are obviously not found on the server and therefore throws me an error and my server goes down. I wish I could control the error. Currently my configuration is as follows

    app.use(qt.static(__dirname + '/../uploads', {
      cacheDir: __dirname + '/../uploads/thumbnail'
    }));
@mllumiquinga194
Copy link
Author

This is the error that is throwing me and I think it is fine because the image does not exist but what I want is to know how to control that error so that my server does not die!

{ Error: Command failed: identify-im6.q16: unable to open image `/home/marcos/Escritorio/ecomybusiness_nestjs/uploads/user-companies/73f18621aaf0eea117f652c8649263410.png': No existe el fichero o el directorio @ error/blob.c/OpenBlob/2701.

    at ChildProcess.<anonymous> (/home/marcos/Escritorio/ecomybusiness_nestjs/node_modules/imagemagick/imagemagick.js:88:15)
    at ChildProcess.emit (events.js:182:13)
    at ChildProcess.EventEmitter.emit (domain.js:441:20)
    at maybeClose (internal/child_process.js:962:16)
    at Socket.stream.socket.on (internal/child_process.js:381:11)
    at Socket.emit (events.js:182:13)
    at Socket.EventEmitter.emit (domain.js:441:20)
    at Pipe._handle.close (net.js:610:12) timedOut: false, killed: false, code: 1, signal: null }

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

1 participant