{
  "tool": "workflow",
  "recipe": {
    "version": 1,
    "name": "Product squares",
    "stages": [
      {
        "type": "trim",
        "options": {
          "trim-mode": "transparent",
          "trim-color": "#ffffff",
          "trim-tolerance": 12,
          "alpha-cutoff": 0,
          "trim-margin": 0
        }
      },
      {
        "type": "resize",
        "options": {
          "width": 800,
          "height": 800,
          "fit": "fit"
        }
      }
    ],
    "export": {
      "format": "image/webp",
      "quality": 80,
      "targetKiB": 0,
      "transparent": true,
      "background": "#ffffff",
      "prefix": "product"
    }
  },
  "results": [
    {
      "source": "bottle-illustration.png",
      "name": "product-01-bottle-illustration.webp",
      "status": "ready",
      "width": 800,
      "height": 800,
      "mime": "image/webp",
      "bytes": 18196,
      "targetMet": true,
      "quality": 0.8,
      "matte": null,
      "notes": [
        "Transparency preserved in PNG / WebP.",
        "Export quality 80%."
      ],
      "stages": [
        {
          "stage": "trim",
          "before": {
            "width": 1536,
            "height": 1024
          },
          "after": {
            "width": 1489,
            "height": 962
          }
        },
        {
          "stage": "resize",
          "before": {
            "width": 1489,
            "height": 962
          },
          "after": {
            "width": 800,
            "height": 800
          }
        }
      ]
    },
    {
      "source": "product-mug.png",
      "name": "product-02-product-mug.webp",
      "status": "ready",
      "width": 800,
      "height": 800,
      "mime": "image/webp",
      "bytes": 49868,
      "targetMet": true,
      "quality": 0.8,
      "matte": null,
      "notes": [
        "Transparency preserved in PNG / WebP.",
        "Export quality 80%."
      ],
      "stages": [
        {
          "stage": "trim",
          "before": {
            "width": 1254,
            "height": 1254
          },
          "after": {
            "width": 1250,
            "height": 1254
          }
        },
        {
          "stage": "resize",
          "before": {
            "width": 1250,
            "height": 1254
          },
          "after": {
            "width": 800,
            "height": 800
          }
        }
      ]
    }
  ]
}
