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

Using in Google Firebase Function #87

Open
samazadi opened this issue Dec 23, 2020 · 2 comments
Open

Using in Google Firebase Function #87

samazadi opened this issue Dec 23, 2020 · 2 comments

Comments

@samazadi
Copy link

samazadi commented Dec 23, 2020

I'm getting permission errors when using it in a Firebase Function:

Error: Command failed: identify-im6.q16: not authorized `/tmp/magick-11MhuZ7RCzH5fc' @ error/constitute.c/ReadImage/412.

Has anybody managed to deploy it to a Firebase function and use it? How I'm using it:

const PAGE_NUMBER = -1; // -1 is to convert all pages
const storeAsImage = pdf2pic.fromBuffer(fileBuffer, options);
storeAsImage.setGMClass(true);
const convertedFileData: WriteImageResponse[] = await storeAsImage.bulk(PAGE_NUMBER);
@luke-rogers
Copy link

@samazadi appreciate this was a while ago now but did you ever solve this?

@samazadi
Copy link
Author

@luke-rogers oh man, from what i vaguely remember i came to the conclusion that it cant be run serverless. I havent looked too closely into this but If your goal is pdf/image manipulation in a serverless fashion you may be able to come up with something using puppeteer or playwright

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants