[backport cloud/1.39] fix: hide output images for ImageCropV2 node (#8884)

Backport of #8873 to `cloud/1.39`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8884-backport-cloud-1-39-fix-hide-output-images-for-ImageCropV2-node-3076d73d365081318305fe9d100dcd8f)
by [Unito](https://www.unito.io)

Co-authored-by: Terry Jia <terryjia88@gmail.com>
Co-authored-by: pythongosssss <125205205+pythongosssss@users.noreply.github.com>
This commit is contained in:
Comfy Org PR Bot
2026-02-15 22:01:56 +09:00
committed by GitHub
parent 557075178e
commit ce5283f880

View File

@@ -6,6 +6,7 @@ useExtensionService().registerExtension({
async nodeCreated(node) {
if (node.constructor.comfyClass !== 'ImageCropV2') return
node.hideOutputImages = true
const [oldWidth, oldHeight] = node.size
node.setSize([Math.max(oldWidth, 300), Math.max(oldHeight, 450)])
}