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

two resizes into one append #853

Open
braco opened this issue Feb 22, 2023 · 0 comments
Open

two resizes into one append #853

braco opened this issue Feb 22, 2023 · 0 comments

Comments

@braco
Copy link

braco commented Feb 22, 2023

Am I mistaken in thinking this should create a collage of img1 and img2? From what I can tell this should work, but it produces a single image, not an appended collage, without throwing any errors.

  const img1 = gm(sources[0]).resize(240, 240);
  const img2 = gm(sources[1]).resize(240, 240);

  return new Promise((resolve, reject) => {
    img1.append(img2, true)
      .write(outPath, (err) => {
        if (err) reject(err);
        resolve(outPath);
      });
  });
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