Global Rank · of 601 Skills
byted-las-image-resample AI Agent Skill
View Source: bytedance/agentkit-samples
SafeInstallation
npx skills add bytedance/agentkit-samples --skill byted-las-image-resample 10
Installs
LAS-IMAGE-RESAMPLE (las_image_resample)
本 Skill 用于调用 LAS 图像重采样算子,对输入图像进行尺寸重采样(仅支持降采样),并将结果保存到用户指定的 TOS 目录。
POST https://operator.las.cn-beijing.volces.com/api/v1/process同步处理
快速开始
在本 skill 目录执行:
python3 scripts/skill.py --help执行图像重采样
# 从 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: 目标尺寸 [width, height],默认 [200, 200]--target-dpi: 目标 DPI [x, y],默认 [72, 72]--method: 插值方法,支持 nearest/bilinear/bicubic/lanczos,默认 lanczos--image-suffix: 输出格式,.jpg 或 .png,默认 .jpg
插值方法说明
nearest: 速度最快,适合像素风格图像bilinear: 速度与质量平衡bicubic: 更平滑的高质量缩放lanczos: 抗锯齿效果更好,适合照片(推荐)
常见问题
- 仅支持降采样:target_size 的宽高不得超过原图
- 输入图像格式支持:JPEG/PNG/TIFF
- 输入图像大小限制:文件大小不超过 100MB,像素总数不超过 225,000,000
- 确保 TOS 路径有读写权限
- API Key 需通过环境变量
LAS_API_KEY或env.sh配置
Installs
Security Audit
View Source
bytedance/agentkit-samples
More from this source
Power your AI Agents with
the best open-source models.
Drop-in OpenAI-compatible API. No data leaves Europe.
Explore Inference APIGLM
GLM 5
$1.00 / $3.20
per M tokens
Kimi
Kimi K2.5
$0.60 / $2.80
per M tokens
MiniMax
MiniMax M2.5
$0.30 / $1.20
per M tokens
Qwen
Qwen3.5 122B
$0.40 / $3.00
per M tokens
How to use this skill
Install byted-las-image-resample by running npx skills add bytedance/agentkit-samples --skill byted-las-image-resample in your project directory. Run the install command above in your project directory. The skill file will be downloaded from GitHub and placed in your project.
No configuration needed. Your AI agent (Claude Code, Cursor, Windsurf, etc.) automatically detects installed skills and uses them as context when generating code.
The skill enhances your agent's understanding of byted-las-image-resample, helping it follow established patterns, avoid common mistakes, and produce production-ready output.
What you get
Skills are plain-text instruction files — not executable code. They encode expert knowledge about frameworks, languages, or tools that your AI agent reads to improve its output. This means zero runtime overhead, no dependency conflicts, and full transparency: you can read and review every instruction before installing.
Compatibility
This skill works with any AI coding agent that supports the skills.sh format, including Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider, and other tools that read project-level context files. Skills are framework-agnostic at the transport level — the content inside determines which language or framework it applies to.
Chat with 100+ AI Models in one App.
Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.