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

# ImageScaleToTotalPixels - ComfyUI Built-in Node Documentation

> Complete documentation for the ImageScaleToTotalPixels node in ComfyUI. Learn its inputs, outputs, parameters and usage.

此节点设计用于将图像调整到指定的总像素数，同时保持纵横比。它提供多种方法来放大图像以实现所需的像素计数。

## 输入

| 参数名称   | 数据类型           | 作用                              |
| ------ | -------------- | ------------------------------- |
| `图像`   | `IMAGE`        | 要放大到指定总像素数的输入图像。                |
| `缩放算法` | COMBO\[STRING] | 用于放大图像的方法。它影响放大图像的质量和特性。        |
| `像素数量` | `FLOAT`        | 图像的目标大小，以百万像素为单位。这决定了放大图像的总像素数。 |

## 输出

| 参数名称 | 数据类型    | 作用                     |
| ---- | ------- | ---------------------- |
| `图像` | `IMAGE` | 具有指定总像素数的放大图像，保持原始纵横比。 |
