ol-th / pdf-img-convert.js

Simple node package to convert a PDF into images.
MIT License
161 stars 38 forks source link

Dependencies are too large #37

Closed ilyai closed 1 year ago

ilyai commented 1 year ago

I tried to use the package in an AWS Lambda but couldn't deploy it because, when extracted, function code combined with layers exceeds the maximum allowed size. I've checked that after installation of this package ./node_modules/ grows by more than 120Mb, which seems quite a lot. Is it possible to reduce it?

ol-th commented 1 year ago

I've whitelisted only the essential files to be included from npm. Hopefully this helps with your issue.

spencerAEE commented 1 year ago

This issue is still occurring as of now. I confirmed that the version I'm using has the whitelisted package.json file and my Lambda packages are still too large to be deployed. I've tried changing my Node version for the Lambda but that was no help either.