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

Is there a way to pass in raw flags? #2

Closed
reggi opened this issue Apr 26, 2023 · 1 comment
Closed

Is there a way to pass in raw flags? #2

reggi opened this issue Apr 26, 2023 · 1 comment

Comments

@reggi
Copy link

reggi commented Apr 26, 2023

Similar to this example here?

 const command = [
    "convert",
    "-background",
    "lightblue",
    "-fill",
    "blue",
    "-font",
    "baby-cruffy.ttf",
    "-pointsize",
    "72",
    "label:Anthony",
    "label.gif"
  ];
  console.log({ command: command.join(", "), content: inputFiles[0].content });
  //debugger;
  const processedFiles = await Magick.Call(inputFiles, command);

Or should I just use the node module? wasm-imagemagick?

Sorry I just realized there is two wasm implementations, this is the one used here @imagemagick/magick-wasm.

Can I call this in Deno directly and pass raw flags? https://deno.land/x/[email protected]/src/wasm/magick.ts?source

@reggi
Copy link
Author

reggi commented Apr 26, 2023

I'm also realizing that the underlying wasm code isn't a conversion of the command line, it's the code beneath it? Is it possible to do things like nesting side-image parenthesis the way the CLI does?

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