{
  "openapi": "3.0.0",
  "info": {
    "title": "Pro Image Edit API",
    "version": "1.0.0",
    "description": "Professional online image editing API for compressing, resizing, converting, and optimizing images. Free, fast, and privacy-focused.",
    "contact": {
      "name": "Pro Image Edit Support",
      "email": "support@proimageedit.com",
      "url": "https://proimageedit.com/contact"
    },
    "license": {
      "name": "API Terms of Service",
      "url": "https://proimageedit.com/terms"
    }
  },
  "servers": [
    {
      "url": "https://proimageedit.com",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "Image Compression",
      "description": "Compress images to reduce file size while maintaining quality"
    },
    {
      "name": "Image Resizing",
      "description": "Resize images to specific dimensions"
    },
    {
      "name": "Format Conversion",
      "description": "Convert images between different formats"
    },
    {
      "name": "Batch Processing",
      "description": "Process multiple images simultaneously"
    }
  ],
  "paths": {
    "/compress-images": {
      "get": {
        "tags": ["Image Compression"],
        "summary": "Image Compression Tool Page",
        "description": "Access the image compression tool to reduce file size of JPG, PNG, WebP, HEIC, and GIF images",
        "operationId": "getCompressPage",
        "responses": {
          "200": {
            "description": "Compression tool page"
          }
        }
      }
    },
    "/resize-images": {
      "get": {
        "tags": ["Image Resizing"],
        "summary": "Image Resizing Tool Page",
        "description": "Access the image resizing tool to change image dimensions",
        "operationId": "getResizePage",
        "responses": {
          "200": {
            "description": "Resize tool page"
          }
        }
      }
    },
    "/convert": {
      "get": {
        "tags": ["Format Conversion"],
        "summary": "Image Format Conversion Tool Page",
        "description": "Access the format conversion tool to convert between JPG, PNG, WebP, and HEIC formats",
        "operationId": "getConvertPage",
        "responses": {
          "200": {
            "description": "Conversion tool page"
          }
        }
      }
    },
    "/compress/jpg": {
      "get": {
        "tags": ["Image Compression"],
        "summary": "JPG Compression Tool",
        "description": "Specialized tool for compressing JPG/JPEG images",
        "operationId": "getCompressJpgPage",
        "responses": {
          "200": {
            "description": "JPG compression tool"
          }
        }
      }
    },
    "/compress/png": {
      "get": {
        "tags": ["Image Compression"],
        "summary": "PNG Compression Tool",
        "description": "Specialized tool for compressing PNG images with transparency support",
        "operationId": "getCompressPngPage",
        "responses": {
          "200": {
            "description": "PNG compression tool"
          }
        }
      }
    },
    "/compress/webp": {
      "get": {
        "tags": ["Image Compression"],
        "summary": "WebP Compression Tool",
        "description": "Specialized tool for compressing WebP images",
        "operationId": "getCompressWebpPage",
        "responses": {
          "200": {
            "description": "WebP compression tool"
          }
        }
      }
    },
    "/convert/jpg-to-png": {
      "get": {
        "tags": ["Format Conversion"],
        "summary": "JPG to PNG Converter",
        "description": "Convert JPG images to PNG format",
        "operationId": "getConvertJpgToPngPage",
        "responses": {
          "200": {
            "description": "JPG to PNG conversion tool"
          }
        }
      }
    },
    "/convert/png-to-jpg": {
      "get": {
        "tags": ["Format Conversion"],
        "summary": "PNG to JPG Converter",
        "description": "Convert PNG images to JPG format",
        "operationId": "getConvertPngToJpgPage",
        "responses": {
          "200": {
            "description": "PNG to JPG conversion tool"
          }
        }
      }
    },
    "/convert/jpg-to-webp": {
      "get": {
        "tags": ["Format Conversion"],
        "summary": "JPG to WebP Converter",
        "description": "Convert JPG images to modern WebP format for better compression",
        "operationId": "getConvertJpgToWebpPage",
        "responses": {
          "200": {
            "description": "JPG to WebP conversion tool"
          }
        }
      }
    },
    "/convert/heic-to-jpg": {
      "get": {
        "tags": ["Format Conversion"],
        "summary": "HEIC to JPG Converter",
        "description": "Convert iPhone HEIC images to universal JPG format",
        "operationId": "getConvertHeicToJpgPage",
        "responses": {
          "200": {
            "description": "HEIC to JPG conversion tool"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ImageFormats": {
        "type": "string",
        "enum": ["JPG", "JPEG", "PNG", "WebP", "HEIC", "GIF"],
        "description": "Supported image formats"
      },
      "CompressionType": {
        "type": "string",
        "enum": ["lossy", "lossless"],
        "description": "Type of compression algorithm"
      },
      "ImageProcessingFeatures": {
        "type": "object",
        "properties": {
          "compression": {
            "type": "object",
            "properties": {
              "supported_formats": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ImageFormats"
                }
              },
              "compression_types": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CompressionType"
                }
              },
              "max_file_size": {
                "type": "string",
                "example": "50MB"
              }
            }
          },
          "resizing": {
            "type": "object",
            "properties": {
              "custom_dimensions": {
                "type": "boolean",
                "example": true
              },
              "aspect_ratio_preservation": {
                "type": "boolean",
                "example": true
              },
              "preset_sizes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": ["Instagram (1080x1080)", "Facebook (1200x630)", "Twitter (1200x675)"]
              }
            }
          },
          "conversion": {
            "type": "object",
            "properties": {
              "supported_conversions": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": ["JPG→PNG", "PNG→JPG", "HEIC→JPG", "JPG→WebP"]
              }
            }
          },
          "batch_processing": {
            "type": "object",
            "properties": {
              "max_files": {
                "type": "integer",
                "example": 20
              },
              "supports_zip_download": {
                "type": "boolean",
                "example": true
              }
            }
          }
        }
      }
    }
  },
  "x-features": {
    "free_tier": {
      "description": "100% free with unlimited usage",
      "no_registration": true,
      "no_watermarks": true,
      "unlimited_processing": true
    },
    "privacy": {
      "auto_delete_files": true,
      "no_data_collection": true,
      "https_encryption": true,
      "gdpr_compliant": true
    },
    "performance": {
      "average_processing_time": "2-5 seconds",
      "compression_ratio": "up to 80%",
      "quality_retention": "95-100%"
    }
  },
  "x-use-cases": [
    "Website performance optimization",
    "Social media content preparation",
    "Email attachment size reduction",
    "E-commerce product image optimization",
    "Blog post image optimization",
    "Portfolio preparation",
    "HEIC to JPG conversion for compatibility",
    "Batch image processing for catalogs"
  ],
  "x-keywords": [
    "image compression",
    "image resize",
    "image optimizer",
    "online image editor",
    "compress images online",
    "resize photos",
    "image converter",
    "heic to jpg",
    "png to jpg",
    "webp converter",
    "batch image processing",
    "free image tools",
    "no watermark",
    "privacy focused",
    "lossless compression"
  ]
}

