# TinyPNG

TinyPNG uses smart lossy compression techniques to reduce the file size of your WebP, JPEG, and PNG files.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**TinyPNG** authenticates with an API key. Generate the credential in your TinyPNG account, then paste it into FlyMyAI the first time an agent uses a TinyPNG action.

[Get your TinyPNG credential →](https://tinypng.com/developers)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `API Key` | Your TinyPNG API key from https://tinypng.com/developers _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `TINYPNG_GET_COMPRESSION_COUNT` | Tool to retrieve the number of compressions made this month. use when you need to monitor your tinypng api usage. | - |
| `TINYPNG_SHRINK_AND_GET_IMAGE_ID` | Tool to shrink an image and return its tinypng image id. use when you need only the compressed image identifier from the api response location header. | `source_url` |
| `TINYPNG_TINIFY_COMPRESS_AND_CONVERT_IMAGE` | Tool to compress and convert an image. use when you need to optimize an image and change its format (avif, webp, jpeg, png). | `source`, `convert` |
| `TINYPNG_TINIFY_COMPRESS_AND_PRESERVE_METADATA` | Tool to compress an image while preserving specified metadata fields. use when critical metadata (e.g., copyright, creation date, or gps location) must be retained in the output. | `source_url` |
| `TINYPNG_TINIFY_COMPRESS_AND_STORE_IN_AZURE` | Tool to compress an image using tinify and upload it directly to azure blob storage. use when you want to optimize images and store them to azure in one step. | `source_url`, `azure_blob_url` |
| `TINYPNG_TINIFY_OUTPUT` | Tool to retrieve a compressed image by its image id. use after compressing an image to download the result. | `id` |

## Links

- [TinyPNG website](https://tinypng.com)
- [Get API key / credential](https://tinypng.com/developers)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
