Compress Image to Target File Size
技能 活跃Compress an image to fit within a specific file size in bytes using quality-first compression.
Compress images to meet specific file size constraints for web, email, or platform upload limits using an intelligent quality-first approach.
功能
- Compress images to a target file size in bytes
- Quality-first compression algorithm
- Supports image compression via URL
- Provides SDK examples in multiple languages
使用场景
- Reduce image file size for email attachments
- Meet CMS or platform upload size limits
- Optimize images for mobile app asset budgets
- Prepare images for web performance optimization
非目标
- Performing image editing beyond compression (resizing, cropping)
- Watermarking or adding overlays to images
- Generating images from scratch
工作流
- Provide image URL and target file size in bytes
- Call the Iteration Layer API with the compress_to_size operation
- Receive the compressed image buffer and MIME type
先决条件
- Iteration Layer API key
Security
- warning:Secret ManagementAPI keys are expected to be provided but are shown as placeholders in examples, with the risk of hardcoding or insecure handling if not managed properly by the user.
安装
请先添加 Marketplace
/plugin marketplace add iterationlayer/skills/plugin install skills@iterationlayer-skills质量评分
类似扩展
Baoyu Compress Image
100Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image", "optimize image", "convert to webp", or reduce image file size.
Watermark An Image
100Apply a text watermark to a photo using layer-based image composition for brand protection and copyright.
Image Transformation API
100Transform images with resize, crop, smart crop, upscale, remove background, and 20+ operations.
X Twitter Scraper
100当用户需要通过 Xquik 获取 X (Twitter) 数据或执行需要确认的 X 操作时使用:推文搜索、用户查找、关注者提取、媒体下载、监控、Webhook、MCP、SDK、发布、点赞、私信和个人资料更新。需要 Xquik API 密钥。切勿索要 X 登录凭据。
Slack
100Use the Slack tool to react, pin/unpin, send, edit, delete messages, or fetch Slack member info.
Github
100Use gh for GitHub issues, PR status, CI/logs, comments, reviews, releases, and API queries.