mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-14 17:37:46 +00:00
fix: align BOUNDING_BOX type with backend and target ImageCropV2 node (#8531)
## Summary - Update imageCrop extension to target new ImageCropV2 comfyClass - Fix BOUNDING_BOX io_type mismatch (was BOUNDINGBOX, backend sends BOUNDING_BOX) - Keep old ImageCrop node_id unchanged for backward compatibility BE Changes is https://github.com/Comfy-Org/ComfyUI/pull/11594 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8531-fix-align-BOUNDING_BOX-type-with-backend-and-target-ImageCropV2-node-2fa6d73d36508160a06ad06108b8a15e) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -4,7 +4,7 @@ useExtensionService().registerExtension({
|
||||
name: 'Comfy.ImageCrop',
|
||||
|
||||
async nodeCreated(node) {
|
||||
if (node.constructor.comfyClass !== 'ImageCrop') return
|
||||
if (node.constructor.comfyClass !== 'ImageCropV2') return
|
||||
|
||||
const [oldWidth, oldHeight] = node.size
|
||||
node.setSize([Math.max(oldWidth, 300), Math.max(oldHeight, 450)])
|
||||
|
||||
Reference in New Issue
Block a user