> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-custom-nodes-sdk-v2-frontend.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# HitPawGeneralImageEnhance - ComfyUI Built-in Node Documentation

> This node enhances low-resolution images by upscaling them to super-resolution, removing artifacts and noise.

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.  | COMBO     | 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. | COMBO     | Yes      | `1`<br />`2`<br />`4`                       |
| `auto_downscale` | Automatically downscale input image if output would exceed the limit. (default: `False`)                                                  | BOOLEAN   | No       | -                                           |

**Note:** The node raises an error if the calculated output size (input width × upscale\_factor × input height × upscale\_factor) exceeds 32,000,000 pixels (32MP) and `auto_downscale` is disabled. When `auto_downscale` is enabled, the node automatically reduces the input image size or the upscale factor (or both) so the output fits within the 32MP limit.

## 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):** `eb9adc1ac94c5fb943e3dd8f6617b21c5d3203f0d9ddb93ba1c9d4b4e63bd421`
