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

libimagequant for AWS Lambda function/Layer #2623

Closed
ZANZAAA opened this issue Mar 17, 2021 · 2 comments
Closed

libimagequant for AWS Lambda function/Layer #2623

ZANZAAA opened this issue Mar 17, 2021 · 2 comments
Labels

Comments

@ZANZAAA
Copy link

ZANZAAA commented Mar 17, 2021

What are you trying to achieve?
I want to create a Layer for a Lambda function that contains all the modules for sharp.

I've read the documentation and I've used npm install --arch=x64 --platform=linux sharp to install sharp with Linux binaries.

Now, I want to use the option 'quality' when the output is png. However it "requires libvips compiled with support for libimagequant".

I'm on windows and I don't really want to install docker. I'm trying to find a way to get libimagequant working with sharp on windows and then create a script similar to the one above when I want to deploy to AWS.

Here are a few links I've used:
kleisauke/libvips-packaging#2
#1631

Does anyone have already faced this problem?

@lovell
Copy link
Owner

lovell commented Mar 17, 2021

The forthcoming v0.28.0 will include PNG quantisation features in the prebuilt binaries - please subscribe to #2604

@lovell lovell closed this as completed Mar 17, 2021
@ZANZAAA
Copy link
Author

ZANZAAA commented Mar 17, 2021

Awesome, thanks for the quick reply :)

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