Abstract API · Schema

ImageProcessingResponse

Image processing result

AvatarsCompany EnrichmentContactsCurrenciesEmail ValidationExchange RatesIBAN ValidationImage ProcessingIP GeolocationIP IntelligencePhone ValidationPublic HolidaysScreenshotsTimezonesVAT ValidationWeb Scraping

Properties

Name Type Description
original_size integer Original file size in bytes
new_size integer Processed file size in bytes
saved_bytes integer Bytes saved by processing
saved_percent number Percentage of size reduction
url string URL to download the processed image
View JSON Schema on GitHub

JSON Schema

abstract-api-imageprocessingresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ImageProcessingResponse",
  "title": "ImageProcessingResponse",
  "type": "object",
  "description": "Image processing result",
  "properties": {
    "original_size": {
      "type": "integer",
      "description": "Original file size in bytes",
      "example": 102400
    },
    "new_size": {
      "type": "integer",
      "description": "Processed file size in bytes",
      "example": 51200
    },
    "saved_bytes": {
      "type": "integer",
      "description": "Bytes saved by processing",
      "example": 51200
    },
    "saved_percent": {
      "type": "number",
      "description": "Percentage of size reduction",
      "example": 50.0
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to download the processed image",
      "example": "https://dl.abstractapi.com/processed/abc123.webp"
    }
  }
}