Design¶
src.helpers.design.fill_empty_area(reference: ArtLayer, color: Optional[SolidColor] = None) -> ArtLayer
¶
Fills empty gaps on an art layer, such as a symbol, with a solid color.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference
|
ArtLayer
|
Reference layer to put the new fill layer underneath |
required |
color
|
SolidColor | None
|
Color of the background fill |
None
|
Source code in src\helpers\design.py
src.helpers.design.content_aware_fill_edges(layer: Optional[ArtLayer] = None, feather: bool = False) -> None
¶
Fills pixels outside art layer using content-aware fill.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer
|
ArtLayer | None
|
Layer to use for the content aware fill. Uses active if not provided. |
None
|
feather
|
bool
|
Whether to feather the selection before performing the fill operation. |
False
|
Source code in src\helpers\design.py
src.helpers.design.generative_fill_edges(layer: Optional[ArtLayer] = None, feather: bool = False, close_doc: bool = True, docref: Optional[Document] = None) -> Optional[Document]
¶
Fills pixels outside an art layer using AI powered generative fill.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer
|
ArtLayer | None
|
Layer to use for the generative fill. Uses active if not provided. |
None
|
feather
|
bool
|
Whether to feather the selection before performing the fill operation. |
False
|
close_doc
|
bool
|
Whether to close the smart layer document after the fill operation. |
True
|
docref
|
Document | None
|
Reference document, use active if not provided. |
None
|
Returns:
| Type | Description |
|---|---|
Document | None
|
Smart layer document if Generative Fill operation succeeded, otherwise None. |
Source code in src\helpers\design.py
src.helpers.design.content_aware_fill() -> None
¶
Fills the current selection using content aware fill.
Source code in src\helpers\design.py
src.helpers.design.generative_fill() -> None
¶
Call Photoshop's AI powered "Generative Fill" on the current selection.
Source code in src\helpers\design.py
src.helpers.design.repair_edges(edge: int = 6) -> None
¶
Select a small area at the edges of an image and content aware fill to repair upscale damage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
edge
|
int
|
How many pixels to select at the edge. |
6
|