comfyui_image2oss
使用阿里云oss上的图片,或者保存结果图片至阿里云oss
Nodes (8)
Pull images out of an Alibaba OSS bucket and straight into your graph
Load from OSS without ever typing your Alibaba secret key
Skip the upload, just paste links
Stored your masks as image channels? This pulls them back as a real MASK
Ship your generated images straight to Alibaba Cloud OSS — keys and all
Send ComfyUI outputs to Alibaba OSS without hardcoding cloud keys
The upload node that stamps a mandatory 'Ai生成' label — China-law edition
Upload to Alibaba OSS with a China-law 'Ai生成' watermark baked in
comfyui_image2oss
功能
获取图片
- image2oss 保存图片到阿里云oss上,使用自建服务阿里云AK&SK&Token
- image2oss-sts-service 保存图片到阿里云oss上,使用自建服务获取阿里云AK&SK&Token
- image2oss-tag 保存图片到阿里云oss上,并添加"Ai生成"的水印,使用阿里云AK&SK(支持ststoken)
- image2oss-tag-sts-service 保存图片到阿里云oss上,并添加"Ai生成"的水印,使用自建服务阿里云AK&SK&Token
- oss2image 从阿里云oss上获取图片,使用阿里云AK&SK(支持ststoken)
- oss2image-sts-service 从阿里云oss上获取图片,使用自建服务阿里云AK&SK&Token
- url2image 从url获取图片
internal
若运行环境位于阿里云 VPC 内,可设置环境变量 OSS_INTERNAL=1,LoadImageFromURL 会把杭州 OSS 公网地址自动替换为内网地址:
zhiyi-image.oss-cn-hangzhou.aliyuncs.com
->
zhiyi-image.oss-cn-hangzhou-internal.aliyuncs.com
默认保持 false,避免集群外环境无法访问内网 endpoint。
Quickstart
- 安装 ComfyUI.
- 安装 ComfyUI-Manager
- 运行
comfy node registry-install image2oss或直接下载插件到comfyui的custom_nodes目录 - 重启 ComfyUI.
参数说明
filename
格式为字符串列表,这个列表中每个字符串是图片在oss时的对象名称,必须包含完整oss路径. 注意:保存图片到oss时,这里是个列表,可以通过image输入多张图片,与filename列表数量保持一致
access_key_id
阿里云ak
access_key_secret
阿里云ak对应的密钥
security_token
阿里云STS安全令牌
sts_service_url
获取阿里云ak信息的地址 返回数据格式为:
{
"requestId": "非必要",
"success": true,
"errorMessage": "",
"data": {
"accessKeyId": "阿里云AK",
"accessKeySecret": "阿里云SK",
"securityToken": "阿里云STS安全令牌",
"expiration": "2025-04-29T14:37:56Z",
"arn": "非必要",
"assumedRoleId": "非必要"
}
}
bucket_name
阿里云 bucket 名称
endpoint
AI标记
中国法规要求,ai生成内容必须添加ai相关标记,标准如下: