Nodes/ComfyUI FRED Nodes v2/πŸ‘‘ FRED Auto Crop Image Native Ratio
ComfyUI Node

πŸ‘‘ FRED Auto Crop Image Native Ratio

A ComfyUI node in πŸ‘‘FRED/image/postprocessing with 18 inputs and 10 outputs.

By PoukpalaovaΒ·Created 12 months agoΒ·Updated 7 months agoΒ· 3
πŸ‘‘ FRED Auto Crop Image Native Ratio
  • image
  • preview_mask_color
  • mask_optional
  • modified_image
  • preview
  • modified_mask
  • scale_factor
  • output_width
  • output_height
  • native_width
  • native_height
  • sd_aspect_ratios
  • help
β—„Precrop_from_input_maskfalseβ–Ί
β—„aspect_ratioAuto_find_resolutionβ–Ί
β—„mask_preservefalseβ–Ί
β—„custom_width1024β–Ί
β—„custom_height1024β–Ί
β—„crop_from_centertrueβ–Ί
β—„crop_x_in_Percent0β–Ί
β—„crop_y_in_Percent0β–Ί
β—„resize_imagefalseβ–Ί
β—„resize_mode_if_upscalebilinearβ–Ί
β—„resize_mode_if_downscaleareaβ–Ί
β—„prescale_factor1.5β–Ί
β—„include_prescale_if_resizefalseβ–Ί
β—„multiple_of1β–Ί
β—„preview_mask_color_intensity0.4β–Ί
CategoryπŸ‘‘FRED/image/postprocessing

Inputs (18)

NameTypeDefaultDescription
imageIMAGEβ€”
Precrop_from_input_maskBOOLEANfalseβ€”
aspect_ratioCOMBOAuto_find_resolution28 options: custom, Auto_find_resolution, 5:12 portrait 640x1536, 9:21 portrait 576x1344, 1:2 portrait 768x1536, 9:16 portrait 768x1344, +22
mask_preserveBOOLEANfalseβ€”
custom_widthINT102464–8192β€”
custom_heightINT102464–8192β€”
crop_from_centerBOOLEANtrueβ€”
crop_x_in_PercentINT00–100β€”
crop_y_in_PercentINT00–100β€”
resize_imageBOOLEANfalseβ€”
resize_mode_if_upscaleCOMBObilinear5 options: bicubic, bilinear, nearest, nearest-exact, area
resize_mode_if_downscaleCOMBOarea5 options: bicubic, bilinear, nearest, nearest-exact, area
prescale_factorFLOAT1.50.1–8β€”
include_prescale_if_resizeBOOLEANfalseβ€”
multiple_ofCOMBO17 options: 1, 2, 4, 8, 16, 32, +1
preview_mask_color_intensityFLOAT0.40.1–1β€”
preview_mask_colorCOLOR#503555β€”
mask_optionaloptMASKβ€”

Outputs (10)

NameTypeDescription
modified_imageIMAGEβ€”
previewIMAGEβ€”
modified_maskMASKβ€”
scale_factorFLOATβ€”
output_widthINTβ€”
output_heightINTβ€”
native_widthINTβ€”
native_heightINTβ€”
sd_aspect_ratiosSTRINGβ€”
helpSTRINGβ€”