meitu-image-adapt

Adapt user-provided images to target sizes while preserving the main subject.

28|2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/meitu/meitu-skills --skill meitu-image-adapt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: meitu-image-adapt
Source: https://github.com/meitu/meitu-skills/tree/main/skills/meitu-image-adapt
Command: npx skills add https://github.com/meitu/meitu-skills --skill meitu-image-adapt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

将用户提供的图片智能适配到目标宽高(像素),主体保持不变形、内容完整,背景延展无接缝。

Core Features & Use Cases

  • 自动尺寸解析与适配:可根据明确像素、平台预设或比例自动确定输出尺寸,确保主体不变形。
  • 输入输出安全与预检:在执行前验证图片可访问性、尺寸合理性和输出边界,避免浪费资源。
  • 输出与交付:保持主体比例,背景自然扩展,结果可直接用于社媒封面、图文配图等场景。

Quick Start

Provide the image URL or file and the target width and height to start the adaptation.

Frequently Asked Questions about meitu-image-adapt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resize an image for social media without distorting the main subject?

Image resizing without distortion adapts your provided image to target dimensions by preserving the main subject's proportions while naturally extending the background. This ensures content remains complete and undistorted for social media posts or banners.

Can I use platform presets to adapt images to specific aspect ratios?

You can adapt images using platform presets, explicit pixel dimensions, or aspect ratios. The Skill automatically parses these inputs to determine the output size, ensuring the adapted image fits the required platform specifications without manual calculations.

Do I need credentials for meitu-cli to perform image adaptation?

Yes, you need valid credentials for meitu-cli to execute the image adaptation process. The Skill relies on this CLI tool to process the provided image URL or file and generate the adapted output.

What is the best way to handle output directory management when adapting images?

The best way to handle output directories is through robust validation and error handling before execution. The Skill prechecks image accessibility, dimension rationality, and output boundaries to avoid wasting resources and ensure safe delivery.

Why does image adaptation fail when the input image is inaccessible?

Image adaptation fails because the Skill performs a pre-execution validation to check input image accessibility. If the provided image URL or file cannot be accessed, the process halts to prevent resource waste and output errors.