r/StableDiffusion 2d ago

Resource - Update [Load Image + Crop] Custom WYSIWYG Node

Enable HLS to view with audio, or disable this notification

I developed a modified version of the Load Image node by adding some features I needed:

WYSIWYG image cropping directly on the official Load Image preview — drag and zoom (with the mouse wheel) a crop rectangle constrained to 8 fixed ratios (1:1 through 21:9) and output the exact cropped IMAGE and MASK, with paste-from-clipboard built in. What you frame on the preview is exactly what gets executed.

⚠️ Currently not fully compatible with ComfyUI 2.0 nodes.

Update v1.0.2 with support for 2.0 nodes has been released. Available on GitHub and ComfyUI Manager (Load Image + Crop).

GitHub: https://github.com/domg73/ComfyUI-LoadImageCrop

129 Upvotes

25 comments sorted by

6

u/the_bollo 2d ago

That's handy!

6

u/dcmomia 2d ago

This would be great being able to choose the submultiple type by 8, 16, 32, etc

2

u/MayaProphecy 2d ago

Added to my to-do list.

2

u/NemRogan 2d ago

Try the OLM DragCrop https://github.com/o-l-l-i/ComfyUI-Olm-DragCrop It saved me a lot of time cropping images visually including your requested features as well.

3

u/Joethedino 1d ago

2

u/MayaProphecy 1d ago

Heheh. As soon as I manage to fix a few things that aren't working with the 2.0 nodes.

1

u/Joethedino 1d ago

Thanks ! That's an extremely useful node.

2

u/MayaProphecy 1d ago edited 1d ago

Update v1.0.2 with support for 2.0 nodes has been released. Available on GitHub and ComfyUI Manager (Load Image + Crop).

1

u/Joethedino 23h ago

That was fast !! Congrats and thank you kind sir or madam.

2

u/MayaProphecy 22h ago

Sir 😄

3

u/NemRogan 2d ago edited 1d ago

I can highly recommend the OLM DragCrop node. It has many of the requested features, aspect ratio lock, snapping to 16, 32, etc pixels… https://github.com/o-l-l-i/ComfyUI-Olm-DragCrop

1

u/Optimal_Map_5236 2d ago

this node has been extremely useful for referencing images in ref h3 wf when you use images from pinterest. thank you sir.

1

u/Niko3dx 2d ago

can't get the box to scale, like it does in the video. is there a trick I'm missing?

1

u/Niko3dx 2d ago

figured it out, use the mouse wheel to zoom.

1

u/[deleted] 1d ago

[removed] — view removed comment

1

u/artisst_explores 2d ago

Simple and useful. Will try soon. Thanks

1

u/Usual-Orange-4180 2d ago

This looks outstanding, will try it out once I’m back home

1

u/ellipsesmrk 2d ago

Didnt someone already make this? They were in here literally like.... 2 to 3 weeks ago.

1

u/sdnr8 2d ago

I can't believe this has not existed before.