# HitPaw General Image Enhance

This node enhances low-resolution images by upscaling them to super-resolution, removing artifacts and noise. It uses an external API to process the image and can automatically adjust the input size to stay within processing limits. The maximum allowed output size is 32 megapixels.

## Inputs

| Parameter | Description | Data Type | Required | Range |
|-----------|-------------|-----------|----------|-------|
| `model` | The enhancement model to use. The `generative_portrait` model is optimized for portraits, while `generative` is a general-purpose model. | STRING | Yes | `"generative_portrait"`<br>`"generative"` |
| `image` | The input image to be enhanced. | IMAGE | Yes | - |
| `upscale_factor` | The factor by which to upscale the image's dimensions. A factor of 1 means no upscaling, 2 doubles the dimensions, and 4 quadruples them. | INT | Yes | `1`<br>`2`<br>`4` |
| `auto_downscale` | Automatically downscale input image if output would exceed the limit. When enabled, the node will attempt to reduce the input image size or reduce the upscale factor to fit within the 32 megapixel output limit. (default: `False`) | BOOLEAN | No | - |

**Note:** The node will raise an error if the calculated output size (input height × upscale_factor × input width × upscale_factor) exceeds 32,000,000 pixels (32MP) and `auto_downscale` is disabled. When `auto_downscale` is enabled, the node will attempt to downscale the input image to fit within the limit before applying the requested upscale factor. If downscaling by more than 2x would be required, the node will instead reduce the upscale factor.

## Outputs

| Output Name | Description | Data Type |
|-------------|-------------|-----------|
| `image` | The enhanced and upscaled output image. | IMAGE |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/HitPawGeneralImageEnhance/en.md)

---
**Source fingerprint (SHA-256):** `effdb98c6400d3b4e3ad238be7049187af6512efacad45996f2a49a0b18b67b3`
