jpaolin/aws-lambda-s3-wkhtmltopdf

wkhtmltoimage

natemacinnes-okta opened this issue · 5 comments

Hi,

I am trying to build the wkhtmltoimage in order to use the corresponding wkhtmltoimage binary that will function on Amazon Linux AMI and I am having trouble. I was hoping you could provide the one that was built when creating the wkhtmltopdf binary found the the repo!

Thanks,
Nathan

UPDATE
The most recent wkhtmltopdf and wkhtmltoimage binaries for CentOS 6 work on Amazon Linux AMI, the AMI used in AWS Lambda.

were you able to get image conversion working. if so could you please share how i can package and use it in java or python?

Hey @ranjeetsinghr, I was able to use the binaries for CentOS 6 that I included in the package.
I was using Node.js 8, so my package won't work for you.
You can package binaries with your lambda function by following these instructions.
Then you may have to configure the library you are using to find the wkhtmltopdf and wkhtmltoimage binaries, this usually through environment variables, but is library dependent.
Java library
Python library

i can use node as well. I probbaly can call node lambda from other one. if i include rpmc for centos will it give me access to whtmlimage as well?