{
  "slug": "png-to-jpg",
  "name": "gizza-ai/png-to-jpg",
  "version": "0.1.0",
  "title": "PNG to JPG Converter — Pick the Background Color for Transparency — gizza.ai",
  "description": "Convert PNG to JPG in your browser: transparency is flattened onto a background color you choose, with adjustable JPEG quality. Free and private — no upload.",
  "tags": [
    "png to jpg",
    "png",
    "jpg",
    "jpeg",
    "convert",
    "image converter",
    "transparency",
    "background color",
    "flatten",
    "compress"
  ],
  "category": "image",
  "urls": {
    "page": "https://gizza.ai/tools/png-to-jpg/",
    "markdown": "https://gizza.ai/tools/png-to-jpg/index.md",
    "descriptor": "https://gizza.ai/tools/png-to-jpg/tool.json",
    "deep_link_example": "https://gizza.ai/tools/png-to-jpg/?url=https://example.com/input&quality=85"
  },
  "cli": "gizza tool png-to-jpg 'url=https://example.com/input' 'quality=85'",
  "tool": {
    "description": "Convert a PNG (or any image) to JPG. JPEG has no alpha channel, so transparent areas are flattened onto a chosen background color first — fully transparent pixels become that color and semi-transparent pixels blend onto it. Provide either url (HTTP/HTTPS) or ref (id from a prior image tool call); optional background (CSS color name or hex like #FFFFFF / #FFF, default #ffffff white) and quality 1-100 (default 85). Animated inputs convert their first frame.",
    "parameters": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "url"
          ]
        },
        {
          "required": [
            "ref"
          ]
        }
      ],
      "properties": {
        "background": {
          "default": "#ffffff",
          "description": "Background color that fills transparent areas (JPEG has no transparency): a CSS color name (white, black, navy, …) or hex like #FFFFFF / #FFF. Default #ffffff (white) — what browsers show a transparent PNG on.",
          "type": "string"
        },
        "quality": {
          "default": 85,
          "description": "JPEG quality 1-100 (default 85). Higher keeps more detail but makes a bigger file; 100 is near-lossless, 60-80 is a good size/quality trade.",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "ref": {
          "description": "Reference id from a prior tool call. Use either url or ref.",
          "type": "string"
        },
        "url": {
          "description": "Image URL (HTTP/HTTPS). Use either url or ref.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}