Batch Image Super-Resolution & Enhancement

Batch upscale and enhance image quality by automatically selecting the optimal super-resolution algorithm based on content type.

meitu batch image-superres-enhance

Note: Batch processing is available from meitu-cli v2.1.1 onward. Please upgrade if you're on an older version.

Usage Examples

# Scenario 1: Directory scan mode
meitu batch image-superres-enhance \
  --input-dir ./low-res \
  --output-dir ./hd \
  --prompt "e-commerce product image" \
  --json

# Scenario 2: Config file mode
meitu batch image-superres-enhance \
  --config ./batch.image-superres-enhance.yaml \
  --output-dir ./hd \
  --json

Config File Example

version: 1
defaults:
  outputDir: ./hd
items:
  - input: ./images/low1.jpg
    prompt: scanned document
  - input: ./images/low2.jpg
    prompt: e-commerce product image

Parameter Reference

ParameterRequiredDescription
--input-dirNoInput directory, recursively scans image files
--output-dirYesOutput directory
--configNoPath to YAML/JSON config file
--concurrencyNoType: number; Default: 3; Number of parallel tasks
--max-retriesNoType: number; Default: 0; Number of retries on failure
--skip-existNoSkip existing output files
--dry-runNoPreview the plan without execution
--no-progressNoDisable per-task progress logging
--jsonNoOutput results in JSON format
--json-outputNoWrite results to a specified JSON file
--skill-nameNoSkill name for server-side attribution
--promptNoType: string; Image content description (e.g. "e-commerce product image", "scanned document")