Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > Comfyui-Qwen-Image-Prompt-Rewrite-T8 > Qwen Image 2.1 PE Canvas T8

ComfyUI Node: Qwen Image 2.1 PE Canvas T8

Class Name

QwenPECanvasT8

Category
Qwen Image 2.1/Prompt Rewrite
Author
T8mars (Account age: 1761days)
Extension
Comfyui-Qwen-Image-Prompt-Rewrite-T8
Latest Updated
2026-10-11
Github Stars
0.05K

How to Install Comfyui-Qwen-Image-Prompt-Rewrite-T8

Install this extension via the ComfyUI Manager by searching for Comfyui-Qwen-Image-Prompt-Rewrite-T8
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui-Qwen-Image-Prompt-Rewrite-T8 in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Qwen Image 2.1 PE Canvas T8 Description

Facilitates image generation with specified aspect ratios and resolutions within a pixel budget.

Qwen Image 2.1 PE Canvas T8:

The QwenPECanvasT8 node is designed to facilitate the generation of image dimensions and latent space representations based on a given prompt and resolution. It is part of the Qwen Image 2.1 suite, which focuses on prompt rewriting and image generation. This node is particularly useful for artists and creators who want to maintain specific aspect ratios and resolutions while generating images. By leveraging the node's capabilities, you can ensure that your images are generated within a specified pixel budget, preserving the desired aspect ratio and scaling appropriately. The node automatically adjusts the dimensions to fit within the constraints, making it an essential tool for managing image size and quality in AI-driven art projects.

Qwen Image 2.1 PE Canvas T8 Input Parameters:

pe_result

The pe_result parameter is a structured input that contains the results from a previous prompt evaluation process. It includes information such as aspect ratio and image dimensions, which are crucial for determining the final output size. This parameter ensures that the canvas adheres to the desired aspect ratio and follows any specific instructions from the prompt evaluation.

resolution

The resolution parameter defines the pixel budget for the canvas, essentially setting the maximum number of pixels the generated image can have. It is an integer value that influences the scaling of the image dimensions. The default value is 512, but it can be adjusted to fit the needs of your project, with a typical range from 0 to 4096. A higher resolution allows for more detailed images but requires more computational resources.

follow_input_size

The follow_input_size parameter is a boolean that determines whether the generated image should maintain the original input size or be scaled to fit within the specified resolution. When set to True, the node will attempt to preserve the input dimensions as much as possible, scaling only when necessary to fit within the pixel budget. This is useful for maintaining the integrity of the original image size while still adhering to resolution constraints.

Qwen Image 2.1 PE Canvas T8 Output Parameters:

width

The width output provides the final width of the generated image after all scaling and adjustments have been applied. It is an integer value that reflects the width in pixels, ensuring that the image fits within the specified resolution and aspect ratio constraints.

height

The height output gives the final height of the generated image, similar to the width output. It is an integer value representing the height in pixels, adjusted to maintain the desired aspect ratio and fit within the resolution limits.

latent

The latent output is a representation of the image in latent space, which is used for further processing or generation tasks. This output is crucial for AI models that require latent space inputs to generate or modify images, providing a compact and efficient representation of the image data.

ratio_source

The ratio_source output is a string that indicates the source of the aspect ratio used for the image generation. It provides insight into whether the aspect ratio was derived from the original input, a predefined setting, or another source, helping users understand the basis for the image dimensions.

Qwen Image 2.1 PE Canvas T8 Usage Tips:

  • To maintain the original aspect ratio of your images, set follow_input_size to True. This ensures that the image dimensions are preserved as much as possible while still fitting within the resolution constraints.
  • Experiment with different resolution values to find the optimal balance between image detail and computational efficiency. Higher resolutions provide more detail but require more resources.

Qwen Image 2.1 PE Canvas T8 Common Errors and Solutions:

"aspect ratio is too extreme for the selected canvas budget"

  • Explanation: This error occurs when the desired aspect ratio cannot be accommodated within the specified resolution, leading to dimensions that are either too large or too small.
  • Solution: Adjust the resolution parameter to allow for a larger pixel budget or modify the aspect ratio to be less extreme, ensuring it fits within the resolution constraints.

Qwen Image 2.1 PE Canvas T8 Related Nodes

Go back to the extension to check out more related nodes.
Comfyui-Qwen-Image-Prompt-Rewrite-T8
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Qwen Image 2.1 PE Canvas T8