# inference.topaz.gigapixel-standard-2.upscale.v1

Source: https://docs.prodia.com/job-types/inference-topaz-gigapixel-standard-2-upscale-v1/

The `inference.topaz.gigapixel-standard-2.upscale.v1` job upscales and enhances an input image using Topaz Gigapixel Standard 2.

```json
{
    "type": "inference.topaz.gigapixel-standard-2.upscale.v1",
    "config": {
        "image": "reference.png"
    }
}
```

Additional configuration:

- `width` (integer)
- `height` (integer)
- `face_recovery` (boolean; default `False`)
- `subject_detection` (string; one of `foreground`, `background`, `all`)

This job type is also available under its partner alias `inference.partner.topaz.gigapixel-standard-2.upscale.v1`.

## Schema

```json
{
	"type": "object",
	"required": [
		"type"
	],
	"properties": {
		"type": {
			"type": "string"
		},
		"config": {
			"type": "object",
			"properties": {
				"image": {
					"description": "The filename of the input image to upscale.",
					"type": "string",
					"format": "filename",
					"example": "input.png"
				},
				"width": {
					"description": "Desired output width in pixels. If omitted, Topaz determines the output size.",
					"type": "integer",
					"minimum": 1,
					"maximum": 32000,
					"examples": [
						2048,
						4096
					]
				},
				"height": {
					"description": "Desired output height in pixels. If omitted, Topaz determines the output size.",
					"type": "integer",
					"minimum": 1,
					"maximum": 32000,
					"examples": [
						2048,
						4096
					]
				},
				"face_recovery": {
					"description": "Enhance facial features and recover detail in faces.",
					"type": "boolean",
					"default": false
				},
				"subject_detection": {
					"description": "Target enhancement to a specific area of the image.",
					"type": "string",
					"enum": [
						"foreground",
						"background",
						"all"
					]
				}
			}
		}
	},
	"$schema": "https://json-schema.org/draft/2020-12/schema"
}
```
