[英]How to add additional Azure Blob Storage output to ImageResizer functionapp?
While creating a ImageResizer function app on azure portal for accomplishing image resizing functionalities I see only two Azure Blob Storage outputs: 在azure门户上创建ImageResizer函数应用程序以完成图像大小调整功能时,我仅看到两个Azure Blob存储输出:
Path 1: sample-images-sm/{name} 路径1:sample-images-sm / {name}
Path 2: sample-images-md/{name} 路径2:sample-images-md / {name}
Here my requirement is generate images of different sizes with the following combination: 在这里,我的要求是使用以下组合生成不同大小的图像:
<width,height> : (260,260) , (280,150) , (340,140), (115,140), (76,140)
Can anyone help me to know how to add additional Azure Blob Storage output to the existing list. 谁能帮助我知道如何将其他Azure Blob存储输出添加到现有列表中。
Go ahead and create a Function based on those settings. 继续并基于这些设置创建一个功能。
Then navigate to Integrate tab on the left and click New Output on the right: 然后导航至左侧的“集成”选项卡,然后单击右侧的“新建输出”:
Select Azure Blob Storage and then fill the fields similar to this: 选择“ Azure Blob存储”,然后填充类似于以下内容的字段:
Finally, change the code to add an extra parameter: 最后,更改代码以添加额外的参数:
public static void Run(
Stream image, // input blob, large size
Stream imageSmall,
Stream imageMedium,
Stream imageMy) // output blobs
{
// ...
// use imageMy to write another size of image
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.