# TinyPNG

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

- **Category:** images & design
- **Auth:** API_KEY
- **Tools:** 6
- **Triggers:** 0
- **Slug:** `TINYPNG`
- **Version:** 20260211_00

## Tools

### Get TinyPNG Compression Count

**Slug:** `TINYPNG_GET_COMPRESSION_COUNT`

Tool to retrieve the number of compressions made this month. Use when you need to monitor your TinyPNG API usage.

### Shrink and get image ID

**Slug:** `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.

### Compress and Convert Image

**Slug:** `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).

### Compress and preserve metadata

**Slug:** `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.

### Compress and Store Image in Azure

**Slug:** `TINYPNG_TINIFY_COMPRESS_AND_STORE_IN_AZURE`

Compress an image using the Tinify API and upload the optimized result directly to Azure Blob Storage in a single operation. The image is first compressed by Tinify, then uploaded to the specified Azure Blob URL using the provided SAS token. Use this when you need to optimize images and store them in Azure without intermediate steps. Supports JPEG, PNG, and WebP image formats.

### Download Compressed Image

**Slug:** `TINYPNG_TINIFY_OUTPUT`

Tool to retrieve a compressed image by its image ID. Use after compressing an image to download the result.
