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. On Corsair up to about 700 KB comes back inline as base64 and a larger image comes back as fileId, a Files id; without a host that keeps files the image comes back inline as base64 up to 100 MB, or contentOmitted beyond it.
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. A returned image comes back like images.output: inline up to about 700 KB on Corsair, as fileId beyond it.
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