> This page is for Workforce.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# TinyPNG

**Authentication:** API key. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow.

## Sample use cases

* Compress `https://cdn.acme.com/blog/header.png` and report the size reduction.
* Resize the product photo at `https://cdn.acme.com/p/1042.jpg` to 800 by 800 pixels.
* Convert the homepage hero image to WebP.

## Available Tools

#### compress_image

Compress a PNG, JPEG, WebP or AVIF with TinyPNG, either from base64 bytes (image_base64) or from a public URL (image\_...

#### get_compressed_image

Download a compressed image by output_id and return it base64-encoded. Use this after compress_image when no resize o...

#### resize_image

Resize a compressed image and return the result base64-encoded. Use compress_image first to get an output_id. resize\_...

#### convert_image

Convert a compressed image to another format (WebP, JPEG, PNG, AVIF, or '*/*' for whichever is smallest) and return i...