Skip to main content
Glama

TinyPNG MCP by usefulapi

Resize, convert or keep metadata of a compressed image

tinypng_transform_image

WRITE (uses quota): apply a resize, a format conversion and/or metadata preservation to an image compressed earlier (the output_url from tinypng_compress_image, valid about 48 hours). Returns the resulting type, byte size, width, height and Compression-Count; the image itself is returned too when include_image is true and it is under 1 MB. Resize: method scale (give width OR height), or fit / cover / thumb (give width AND height); images are never scaled up. Convert: one or more of image/webp, image/jpeg, image/png, image/avif, image/jxl (several = the smallest is returned) or / (the smallest of WebP, JPEG, PNG); converting a transparent image to JPEG needs a background colour. Preserve: copyright, creation, location (location is JPEG only) keeps that metadata, which makes the file slightly larger. Each call is a fresh request: resize and convert each count one extra compression on your monthly Tinify quota, preserve is free. Tinify returns the bytes only (no new URL), so only include_image gives you the transformed file, and only when it is under 1 MB. POST /output/{id}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
preserveNoMetadata to keep: copyright, creation, location (JPEG only).
backgroundNoBackground for transparent areas when converting to a type without transparency (JPEG): "#rrggbb", "white" or "black". Only with convert_to.
convert_toNoTarget type(s), e.g. ["image/webp"]. Several = the smallest result is returned. ["*/*"] = the smallest of WebP, JPEG, PNG.
output_urlYesThe output_url returned by tinypng_compress_image (https://api.tinify.com/output/<id>), or just the id. Outputs are kept by Tinify for about 48 hours.
resize_widthNoTarget width in pixels.
include_imageNoAlso return the resulting image (only when it is under 1 MB). Default false: sizes only.
resize_heightNoTarget height in pixels.
resize_methodNoResize method. scale: width or height; fit/cover/thumb: width and height.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.