> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/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.

ImageScaleToTotalPixels 节点用于将图像调整至指定的总像素数，同时保持原始宽高比。它提供了多种放大方法，以实现所需的像素数量。

## 输入

| 参数     | 描述                               | 数据类型           |
| ------ | -------------------------------- | -------------- |
| `图像`   | 需要放大至指定总像素数的输入图像。                | `IMAGE`        |
| `缩放算法` | 用于放大图像的方法。该方法会影响放大后图像的质量和特性。     | COMBO\[STRING] |
| `像素数量` | 以百万像素为单位的图像目标尺寸。此参数决定放大后图像的总像素数。 | `FLOAT`        |

## 输出

| 参数   | 描述                         | 数据类型    |
| ---- | -------------------------- | ------- |
| `图像` | 放大后的图像，具有指定的总像素数，并保持原始宽高比。 | `IMAGE` |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ImageScaleToTotalPixels/zh.md)
