invoke-ai/InvokeAI

[enhancement]: Add "Fit Bbox to Layer"

Opened this issue · 2 comments

Is there an existing issue for this?

  • I have searched the existing issues

Contact Details

marict (discord)

What should this feature add?

Description:

Add a new option in the dropdown menu when right-clicking a layer, positioned underneath the existing "Fit to Bbox" option:

  • Option Name: "Fit Bbox to Layer"
  • Functionality: This option will adjust the bounding box (bbox) to the minimum rectangle that contains the contents of the selected layer while respecting the aspect ratio constraints of the bbox.

Use Case:

This feature will enable users to quickly fit the bounding box to an inpaint layer for precise adjustments, such as fine-tuning a face or other specific features, without the need to manually resize and drag the bbox around the layer contents.

Alternatives

The only way to do it right now is disable all layers except the one you care about, then click the fit bbox to layers button, then re-enable the layers.

Additional Content

No response

Is the main use case auto sizing the box to inpainting?

Is the main use case auto sizing the box to inpainting?

Yes.