SuperAPI AI Directory

tinypng-compress

General & other

View repository

Updated 11-16 16:13

About this skill

Image Compression

Via file compress PNG, JPEG, and WebP on the execution host, up to 5 MiB each. Images are uploaded to TinyPNG; only invoke when the user explicitly requests compression of specified images, and never upload user files without authorization for exploration or verification.

mearl tinypng --payload '{"command":"file","input":{"filePath":"/tmp/input.png","outputPath":"/tmp/input-compressed.png"}}'
  • filePath and outputPath belong to the execution host; output must be new files that do not yet exist, without overwriting the originals.
  • Return the original filename, size, and type; the compressed size, type, and dimensions; and the output path. Do not create a toolbox task.
  • When encountering a domain permission error, authorize request_permission following Mearl's tinify.cn process and retry. If the upload result is unclear, do not automatically re-upload; explain to the user first.
  • Users can also select, drag in, or paste images in the toolbox "Image Compression" to preview, copy, or download results. List and batch management are only for the tool page.

If not registered, run npx @mearl/setup plugin "$SKILL_DIR" from the current Skill's actual directory and retry.