闲社服务运行正常AI智能体自动化平台
b

字节图像重采样

技能标识:byted-las-image-resample

|

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

字节图像重采样

LAS-IMAGE-RESAMPLE (lasimageresample)

本 Skill 用于调用 LAS 图像重采样算子,对输入图像进行尺寸重采样(仅支持降采样),并将结果保存到用户指定的 TOS 目录。

  • - POST https://operator.las.cn-beijing.volces.com/api/v1/process 同步处理

快速开始

在本 skill 目录执行:

bash
python3 scripts/skill.py --help

执行图像重采样

bash

从 URL 输入


python3 scripts/skill.py process \
--image https://example.com/sample.jpg \
--tos-dir tos://bucket/output/ \
--target-size 1024 1024 \
--method lanczos

从 TOS 输入

python3 scripts/skill.py process \ --image tos://bucket/input/sample.jpg \ --tos-dir tos://bucket/output/ \ --target-size 800 600

参数说明

  • - --image: 输入图像(URL 或 TOS 路径)
  • --tos-dir: 输出 TOS 目录
  • --target-size: 目标尺寸 [宽度, 高度],默认 [200, 200]
  • --target-dpi: 目标 DPI [x, y],默认 [72, 72]
  • --method: 插值方法,支持 nearest/bilinear/bicubic/lanczos,默认 lanczos
  • --image-suffix: 输出格式,.jpg 或 .png,默认 .jpg

插值方法说明

  • - nearest: 速度最快,适合像素风格图像
  • bilinear: 速度与质量平衡
  • bicubic: 更平滑的高质量缩放
  • lanczos: 抗锯齿效果更好,适合照片(推荐)

常见问题

  • - 仅支持降采样:targetsize 的宽高不得超过原图
  • 输入图像格式支持:JPEG/PNG/TIFF
  • 输入图像大小限制:文件大小不超过 100MB,像素总数不超过 225,000,000
  • 确保 TOS 路径有读写权限
  • API Key 需通过环境变量 LASAPI_KEY 或 env.sh 配置

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 byted-las-image-resample-1776020656 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 byted-las-image-resample-1776020656 技能

通过命令行安装

skillhub install byted-las-image-resample-1776020656

下载

⬇ 下载 byted-las-image-resample v1.0.0(免费)

文件大小: 7.61 KB | 发布时间: 2026-4-13 09:37

v1.0.0 最新 2026-4-13 09:37
byted-las-image-resample v1.0.0

- Initial release of an image resampling operator for downsampling images.
- Supports resizing to target dimensions and changing image DPI settings.
- Four interpolation methods available: nearest, bilinear, bicubic, and lanczos.
- Accepts input images from URL, TOS, base64, or binary.
- Output can be saved in JPG or PNG format to a specified TOS directory.
- Requires LAS_API_KEY for authentication.
返回顶部