使用Azure网站上的Node.js进行图像处理 [英] Image manipulation using Node.js on Azure website

查看:206
本文介绍了使用Azure网站上的Node.js进行图像处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Node.js开发一个Web项目,用户可以通过将其上传到服务器来设置他们的个人资料图像。

I'm developing a web project using Node.js where users can set their profile image by uploading it to the server.

我需要对这些图像执行基本操作(调整大小和裁剪),然后将它们存储到blob中。

I need to perform basic manipulation on those images (resize and crop), and then store them into a blob.

我通常使用GraphicsMagic或ImageMagick来完成这类任务,但我想在Microsoft Azure网站上发布这个项目。

I usually use GraphicsMagic or ImageMagick to achieve this kind of tasks, but I want to publish this project on Microsoft Azure website.

是否有一种已知且安全的方式使用Node.js操作图像服务器到Azure网站?

Is there a known and safe way to manipulate images serverside into an Azure website using Node.js?

推荐答案

你可以将节点模块与Azure网站一起使用。但是,您无法在网站上安装任何第三方应用程序(因此没有ImageMagick或图形魔术)。

You can use node modules with Azure Websites. However you cannot install any third party apps on the Web Sites (thus no ImageMagick or Graphics Magic).

在野外观察时,您可能会发现一些本机节点模块,不需要外部组件来操作图像,如 lwip ,可能还有更多。只需找到不依赖外部第三方库的模块,并且完全自包含。

Looking out in the wild, you may find some native node modules that does not require external components to manipulate images like the lwip and probably some more. Just find your module that is not dependent on external third party libraries and is fully self contained.

这篇关于使用Azure网站上的Node.js进行图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆