当在本地调用该函数时,尝试在无服务器框架中运行棒库以使用液体调整大小来调整图像图像的大小,效果很好。但是在Lambda上运行会导致以下错误:
{
"errorMessage": "delegate library support not built-in `' (LQR) @ error/resize.c/LiquidRescaleImage/1884\n\nImageMagick in the system is likely to be impossible to load liblqr. You might not install liblqr, or ImageMagick may not compiled with liblqr.",
"errorType": "MissingDelegateError",
"stackTrace": [
[
"/var/task/handler.py",
123,
"imageprocess",
"liquid.liquid_rescale(width, height)"
],
[
"/var/task/wand/image.py",
865,
"wrapped",
"result = function(self, *args, **kwargs)"
],
[
"/var/task/wand/image.py",
3322,
"liquid_rescale",
"str(e) + '\\n\\nImageMagick in the system is likely to be '"
]
]
}