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

Allow empty sharp image #505

Closed
strarsis opened this issue Jul 13, 2016 · 2 comments
Closed

Allow empty sharp image #505

strarsis opened this issue Jul 13, 2016 · 2 comments
Labels

Comments

@strarsis
Copy link

For specific applications, like with using overlayWith(...),
it may be necessary or easier to just create an wholly empty image
(maybe with specific dimensions or just 1px x 1px and extend(...) it).

However, using sharp() without any argument
results in non-functional output methods.

One workaround may be using a dummy input image -
but this unnecessarily complicates the application.

@lovell
Copy link
Owner

lovell commented Jul 13, 2016

Hello, did you see #470, a similar question?

@strarsis
Copy link
Author

strarsis commented Jul 13, 2016

Yes, this seems to be the same issue.

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