{
  "id": "cda934e1-5fac-49e9-8da3-73e91c3c41ec",
  "revision": 0,
  "last_node_id": 7,
  "last_link_id": 8,
  "nodes": [
    {
      "id": 1,
      "type": "LoadImage",
      "pos": [
        -974.0016132778537,
        1566.1140654894616
      ],
      "size": [
        410.7603866832164,
        526.175903695124
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1,
            4,
            7
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "topaz_wonder4_collage_lowres.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "topaz_wonder4_collage_lowres.png",
        "upload": "image"
      }
    },
    {
      "id": 2,
      "type": "TopazImageEnhanceV2",
      "pos": [
        -515.2412265946373,
        1566.1140654894616
      ],
      "size": [
        400,
        106
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "showAdvanced": true,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1
        },
        {
          "name": "output_width",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "output_width"
          },
          "link": 2
        },
        {
          "name": "output_height",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "output_height"
          },
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            6
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "TopazImageEnhanceV2"
      },
      "widgets_values": [
        "Wonder 4",
        0,
        0
      ],
      "widgets_values_named": {
        "model": "Wonder 4",
        "output_width": 0,
        "output_height": 0
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 3,
      "type": "ImageScaleBy",
      "pos": [
        -461.46380111337453,
        1975.1225707586636
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 4
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            5
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageScaleBy"
      },
      "widgets_values": [
        "nearest-exact",
        2
      ],
      "widgets_values_named": {
        "upscale_method": "nearest-exact",
        "scale_by": 2
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 4,
      "type": "GetImageSize",
      "pos": [
        -463.87373489260676,
        1848.7056716977181
      ],
      "size": [
        268.96622216789973,
        73.97565349916178
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 5
        }
      ],
      "outputs": [
        {
          "name": "width",
          "type": "INT",
          "links": [
            2
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            3
          ]
        },
        {
          "name": "batch_size",
          "type": "INT",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "GetImageSize"
      }
    },
    {
      "id": 5,
      "type": "SaveImageAdvanced",
      "pos": [
        -67.24122659463728,
        1566.1140654894616
      ],
      "size": [
        503.13990351753694,
        498.23242973804986
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 6
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": [
            8
          ]
        }
      ],
      "properties": {},
      "widgets_values": [
        "api_topaz_image_enhance_wonder4",
        "png",
        "8-bit",
        "sRGB"
      ],
      "widgets_values_named": {
        "filename_prefix": "api_topaz_image_enhance_wonder4",
        "format": "png",
        "format.bit_depth": "8-bit",
        "format.input_color_space": "sRGB"
      }
    },
    {
      "id": 6,
      "type": "ImageCompare",
      "pos": [
        483.89867692289954,
        1566.1140654894616
      ],
      "size": [
        469.66320080407945,
        506.66329967565093
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "image_a",
          "shape": 7,
          "type": "IMAGE",
          "link": 7
        },
        {
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE",
          "link": 8
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "ImageCompare"
      },
      "widgets_values": [
        [
          "",
          ""
        ]
      ],
      "widgets_values_named": {
        "compare_view": [
          "",
          ""
        ]
      }
    },
    {
      "id": 7,
      "type": "MarkdownNote",
      "pos": [
        -1679.0103789273157,
        1561.1460386314257
      ],
      "size": [
        620.9812524354631,
        629.6076024695928
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## Topaz Wonder 4: Image Upscale\n\n**Bring a small, soft image back.** Wonder 4 rebuilds plausible detail instead of stretching pixels, so a soft, lightly compressed copy returns clean at 2 to 6 times its size.\n\n---\n\n### What this graph does\n\n1. **Load Image**: the small, soft source. The bundled demo is a 512 x 512, lightly compressed copy of a 1024 x 1024 paper-collage image.\n2. **Image Scale By**: sets the target. `scale_by` 2 means twice the input, so the demo comes back at the original 1024 x 1024.\n3. **Image Size**: reads that scaled size and passes it to the node as `output_width` and `output_height`.\n4. **Topaz Image Enhance** with `model` set to `Wonder 4`: upscales to the target size.\n5. **Save Image (Advanced)** writes the result, **Compare Images** shows the soft input next to it.\n\n---\n\n### Controls\n\n| Control | What it does |\n|---|---|\n| `model` | `Wonder 4` is a single pass at the target size. `Wonder 3.5` and `Bloom 2` add their own settings, such as Low / Medium / High enhancement or a prompt |\n| `scale_by` | Upscale factor: 1x to 6x on Wonder 4 and Wonder 3.5, up to 12x on Bloom 2 |\n| `output_width` / `output_height` | Filled here from Image Size. Zero means automatic |\n| `filename_prefix` | Where the result lands in the output folder |\n\nWonder keeps the source aspect ratio: when the requested width and height disagree, the larger scale wins and the output is bigger than asked. The node accepts up to 179 megapixels and 32000 pixels per side, and it downscales the input to about 16 megapixels before sending it.\n\n### When Wonder 4 fits\n\nBuilt for small, medium, soft, noisy or compressed images: old scans, screenshots, AI thumbnails, phone crops. A graphic, textured image is a good test, since torn edges, seams and flat color fields show at once whether the model invents detail or keeps the original. For an already sharp, high resolution photo a precision upscaler keeps more of the original.\n"
      ],
      "widgets_values_named": {
        "text": "## Topaz Wonder 4: Image Upscale\n\n**Bring a small, soft image back.** Wonder 4 rebuilds plausible detail instead of stretching pixels, so a soft, lightly compressed copy returns clean at 2 to 6 times its size.\n\n---\n\n### What this graph does\n\n1. **Load Image**: the small, soft source. The bundled demo is a 512 x 512, lightly compressed copy of a 1024 x 1024 paper-collage image.\n2. **Image Scale By**: sets the target. `scale_by` 2 means twice the input, so the demo comes back at the original 1024 x 1024.\n3. **Image Size**: reads that scaled size and passes it to the node as `output_width` and `output_height`.\n4. **Topaz Image Enhance** with `model` set to `Wonder 4`: upscales to the target size.\n5. **Save Image (Advanced)** writes the result, **Compare Images** shows the soft input next to it.\n\n---\n\n### Controls\n\n| Control | What it does |\n|---|---|\n| `model` | `Wonder 4` is a single pass at the target size. `Wonder 3.5` and `Bloom 2` add their own settings, such as Low / Medium / High enhancement or a prompt |\n| `scale_by` | Upscale factor: 1x to 6x on Wonder 4 and Wonder 3.5, up to 12x on Bloom 2 |\n| `output_width` / `output_height` | Filled here from Image Size. Zero means automatic |\n| `filename_prefix` | Where the result lands in the output folder |\n\nWonder keeps the source aspect ratio: when the requested width and height disagree, the larger scale wins and the output is bigger than asked. The node accepts up to 179 megapixels and 32000 pixels per side, and it downscales the input to about 16 megapixels before sending it.\n\n### When Wonder 4 fits\n\nBuilt for small, medium, soft, noisy or compressed images: old scans, screenshots, AI thumbnails, phone crops. A graphic, textured image is a good test, since torn edges, seams and flat color fields show at once whether the model invents detail or keeps the original. For an already sharp, high resolution photo a precision upscaler keeps more of the original.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    }
  ],
  "links": [
    [
      4,
      1,
      0,
      3,
      0,
      "IMAGE"
    ],
    [
      5,
      3,
      0,
      4,
      0,
      "IMAGE"
    ],
    [
      7,
      1,
      0,
      6,
      0,
      "IMAGE"
    ],
    [
      8,
      5,
      0,
      6,
      1,
      "IMAGE"
    ],
    [
      1,
      1,
      0,
      2,
      0,
      "IMAGE"
    ],
    [
      2,
      4,
      0,
      2,
      1,
      "INT"
    ],
    [
      3,
      4,
      1,
      2,
      2,
      "INT"
    ],
    [
      6,
      2,
      0,
      5,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.48616908261366126,
      "offset": [
        1789.4267317195702,
        -968.2895784730329
      ]
    },
    "frontendVersion": "1.57.6"
  },
  "version": 0.4
}