Skip to main content
TinyPNG logo
  • Category: images & design
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 5
  • Triggers: 0
  • Slug: TINYPNG
  • Version: 20261101_00

Tools

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

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TINYPNG_SHRINK_AND_GET_IMAGE_IDShrink an image from a publicly accessible URL and return its TinyPNG image ID extracted from the response Location header.

Input Parameters

string
required
Publicly accessible URL of the image to compress.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TINYPNG_TINIFY_COMPRESS_AND_STORE_IN_AZURECompress 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

string
required
Publicly accessible URL of the source image to compress. Supports JPEG, PNG, and WebP formats.
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

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TINYPNG_TINIFY_OUTPUTTool to retrieve a compressed image by its image ID. Use after compressing an image to download the result.

Input Parameters

string
required
Identifier for the uploaded and compressed image (returned by the TinyPNG shrink API).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: TINYPNG_TRANSFORM_IMAGETransform 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

string
required
The unique identifier for the compressed image output, obtained from the Location header of the compress response.
string
Cloud storage options to save image directly to S3 or GCS. Each upload counts as additional compression.
object
Options for resizing the image.
object
Options for converting the image format.
array
Metadata to preserve: ‘copyright’, ‘creation’, ‘location’ (JPEG only). Does not count as additional compression.
object
Transformation options for stylistic changes.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not