Skip to content

Commit

Permalink
Make Resize To Side input order consistent with Resize (#2414)
Browse files Browse the repository at this point in the history
* Make Resize To Side input order consistent with Resize

* Fixed param order
  • Loading branch information
RunDevelopment committed Dec 17, 2023
1 parent 503786b commit e67d839
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ def compare_conditions(b: int) -> bool:
unit="px",
),
EnumInput(SideSelection, label="Resize To"),
ResizeFilterInput(),
EnumInput(
ResizeCondition,
option_labels={
ResizeCondition.BOTH: "Upscale And Downscale",
ResizeCondition.UPSCALE: "Upscale Only",
ResizeCondition.DOWNSCALE: "Downscale Only",
},
),
).with_id(4),
ResizeFilterInput().with_id(3),
],
outputs=[
ImageOutput(
Expand Down Expand Up @@ -170,8 +170,8 @@ def resize_to_side_node(
img: np.ndarray,
target: int,
side: SideSelection,
filter: ResizeFilter,
condition: ResizeCondition,
filter: ResizeFilter,
) -> np.ndarray:
h, w, _ = get_h_w_c(img)
out_dims = resize_to_side_conditional(w, h, target, side, condition)
Expand Down

0 comments on commit e67d839

Please sign in to comment.