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

Magick.Call should resolve with more information #11

Closed
cancerberoSgx opened this issue Sep 20, 2018 · 1 comment
Closed

Magick.Call should resolve with more information #11

cancerberoSgx opened this issue Sep 20, 2018 · 1 comment

Comments

@cancerberoSgx
Copy link
Collaborator

cancerberoSgx commented Sep 20, 2018

Currently Magick.Call will resolve only providing the output files. While this could be enough when working with convert the call should provide other information such as stderr , stdout, exit code. Motivation:

  • so I can call "identify" program and read its stdout
  • So I can grab all output, warnings or error messages thrown by ImageMagick itself and provide it to the user.

Something like the following would be awesome:

const {outputFiles, stdout, stderr, exitCode} = await Magick.Call(...)

exitCode will tell if IM fails (not just an empty output file list).

Thanks

@cancerberoSgx
Copy link
Collaborator Author

Now there's a new call() function that resolves with stderr, stdout, and exitCode besides the output files.
https://github.com/KnicKnic/WASM-ImageMagick#low-level-example

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