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

Dilate & Erode morphology #3183

Closed
masotrix opened this issue Apr 8, 2022 · 1 comment
Closed

Dilate & Erode morphology #3183

masotrix opened this issue Apr 8, 2022 · 1 comment
Labels

Comments

@masotrix
Copy link

masotrix commented Apr 8, 2022

Question about an existing feature

What are you trying to achieve?

I am trying to dilate a black signature in a white transparent image after resizing it because it seems much thinner after the transformation

When you searched for similar issues, what did you find that might be related?

I found an old issue #1719 that seems to be not resolved, but would like to know if there is a workaround

Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question

// current
const scaledImg = await sharp(imBuffer).resize(130, 90);

// desired
const scaledImg = await sharp(imBuffer).resize(130, 90).dilate(1);

Please provide sample image(s) that help explain this question

Here is the original version of the signature

SIGNATURE

And here is the scaled version, which we would like to dilate to make it thicker

smaillSignature

@lovell
Copy link
Owner

lovell commented Apr 9, 2022

Let's continue to track this at the existing, future possible enhancement at #1719

@lovell lovell closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants