在没有前端的 aws 节点服务器中将 html 转换为图像
Convert html to image in aws node server without frontend
我想在 Node.js 中将以下 HTML 转换为 PNG 图像。
<html>
<b>Bold text</b>
</html>
这个HTML当然是一个例子。
现在我的项目在 aws elastic beanstalk 中。我试过使用诸如 node-server-screenshot 之类的包,它们完全符合我的要求,但只能在本地工作。
有没有办法在 aws 中做到这一点?
这是一个无服务器堆栈的示例,以及如何按照您所说的进行操作。有了最佳实践。
https://svdgraaf.nl/2016/09/28/Serverless-Screenshot-Service-With-Lambda.html
我想在 Node.js 中将以下 HTML 转换为 PNG 图像。
<html>
<b>Bold text</b>
</html>
这个HTML当然是一个例子。 现在我的项目在 aws elastic beanstalk 中。我试过使用诸如 node-server-screenshot 之类的包,它们完全符合我的要求,但只能在本地工作。
有没有办法在 aws 中做到这一点?
这是一个无服务器堆栈的示例,以及如何按照您所说的进行操作。有了最佳实践。
https://svdgraaf.nl/2016/09/28/Serverless-Screenshot-Service-With-Lambda.html