Replies: 1 comment
-
|
Can anyone help me? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Support,
I am currently using AWS Lambda with the PHP 7.4 runtime via the Serverless Framework (with Bref). My function attempts to use the imagecreatefromwebp() function to process WebP images using the GD extension.
However, during execution, I encounter the following error in the CloudWatch logs:
ERROR: Call to undefined function imagecreatefromwebp() {"exception":"[object] (Error(code: 0): Call to undefined function imagecreatefromwebp() at /var/task/app/Http/Helpers/CommonHelper.php:5820)
From my understanding, this may be due to the GD extension not being compiled with WebP support in the PHP 7.4 Lambda runtime. I attempted to create multiple custom Lambda Layer with GD compiled with WebP support, but was unsuccessful.
Could you please clarify the following:
Does the PHP 7.4 runtime on Lambda (via Bref) include GD with WebP support?
If not, is there an official or recommended way to enable GD with WebP support in Lambda functions?
Is there any guidance or availability of precompiled binaries to assist with this use case?
This functionality is crucial for our image processing pipeline, so any help or best practices you can provide would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions