> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TinyPNG

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

![TinyPNG logo](https://mintcdn.com/composio-preview/IA0_SoMcsWt17HEC/images/toolkits/tinypng.svg?fit=max\&auto=format\&n=IA0_SoMcsWt17HEC\&q=85\&s=59682b4fd80c8672ab5aecc0f001b463)

* **Category:** images & design
* **Auth:** API\_KEY
* **Composio-managed OAuth available?** N/A
* **Tools:** 5
* **Triggers:** 0
* **Slug:** `TINYPNG`
* **Version:** 20261101\_00

## Tools

> [accordion] 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.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Shrink and get image ID
>
> **Slug:** `TINYPNG_SHRINK_AND_GET_IMAGE_ID`
>
> Shrink an image from a publicly accessible URL and return its TinyPNG image ID extracted from the response Location header.
>
> #### Input Parameters
>
> **source\_url** `string` *required*
>
> Publicly accessible URL of the image to compress.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] 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.
>
> #### Input Parameters
>
> **source\_url** `string` *required*
>
> Publicly accessible URL of the source image to compress. Supports JPEG, PNG, and WebP formats.
>
> **azure\_blob\_url** `string` *required*
>
> Full Azure Blob Storage URL with a valid SAS (Shared Access Signature) token that has write permissions. The URL should include the target container, blob path, and SAS query parameters (sv, se, sr, sp, sig). Required SAS permissions: Write (w) and Create (c).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] 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.
>
> #### Input Parameters
>
> **id** `string` *required*
>
> Identifier for the uploaded and compressed image (returned by the TinyPNG shrink API).
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Transform Compressed Image
>
> **Slug:** `TINYPNG_TRANSFORM_IMAGE`
>
> Transform a previously compressed image by ID, with resizing, format conversion, metadata preservation, background changes, or storage to Amazon S3 or Google Cloud Storage. Returns response metadata and any cloud storage location, not transformed image bytes.
>
> #### Input Parameters
>
> **id** `string` *required*
>
> The unique identifier for the compressed image output, obtained from the Location header of the compress response.
>
> **store** `string`
>
> Cloud storage options to save image directly to S3 or GCS. Each upload counts as additional compression.
>
> **resize** `object`
>
> Options for resizing the image.
>
> **convert** `object`
>
> Options for converting the image format.
>
> **preserve** `array`
>
> Metadata to preserve: 'copyright', 'creation', 'location' (JPEG only). Does not count as additional compression.
>
> **transform** `object`
>
> Transformation options for stylistic changes.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
