在lambda上运行Wand并在系统中返回ImageMagick可能无法加载liblqr

时间:2019-03-15 00:49:39

标签: aws-lambda imagemagick serverless-framework wand

当在本地调用该函数时,尝试在无服务器框架中运行棒库以使用液​​体调整大小来调整图像图像的大小,效果很好。但是在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 '"
        ]
    ]
}

0 个答案:

没有答案