tinypng.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Account
getCompressionCount
account.getCompressionCount
Get the number of compressions made this calendar month
Risk: read
Images
compressAndStoreInAzure
images.compressAndStoreInAzure
Compress an image and upload the result to Azure Blob Storage through a SAS URL
Risk: write
source full type
source full type
resize full type
resize full type
convert full type
convert full type
transform full type
transform full type
output
images.output
Download a compressed image by its Tinify image ID as base64
Risk: read
Output
shrink
images.shrink
Compress an image from a URL or base64 bytes and return its Tinify image ID (uses one compression)
Risk: write
source full type
source full type
input full type
input full type
output full type
output full type
transform
images.transform
Resize, convert, fill the background of, or preserve metadata on a compressed image, optionally storing it on S3 or GCS
Risk: write
resize full type
resize full type
convert full type
convert full type
transform full type
transform full type
store full type
store full type
object
Output full type
Output full type