Tinypng

Learn how to use Tinypng with Composio

Overview

Enum

TINYPNG

Description

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

Authentication Details

base64_encoded_auth
stringRequired

Actions

Tool to retrieve the number of compressions made this month. use when you need to monitor your tinypng api usage.

Action Parameters

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

source_url
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to compress and convert an image. use when you need to optimize an image and change its format (avif, webp, jpeg, png).

Action Parameters

convert
objectRequired
source
stringRequired
transform
object

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

preserve
array
source_url
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

azure_blob_url
stringRequired
source_url
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a compressed image by its image id. use after compressing an image to download the result.

Action Parameters

id
stringRequired

Action Response

data
object
error
string
successful
boolean