code: def process(
      self,
      pp: scripts_postprocessing.PostprocessedImage,
      enable,
      mindim,
      maxdim,
      minarea,
      maxarea,
      objective,
      threshold,
  ):
      if not enable:
          return
  
      cropped = multicrop_pic(
          pp.image,
          mindim,
          maxdim,
          minarea,
          maxarea,
          objective,
          threshold,
      )
      if cropped is not None:
          pp.image = cropped
      else:
          print(
              f"skipped {pp.image.width}x{pp.image.height} image (can't find suitable size within error threshold)"
          )
  
file_path: stable-diffusion-webui/scripts/processing_autosized_crop.py
imports: from PIL import Image
  from modules import scripts_postprocessing, ui_components
  import gradio
label_desc: Use image node_id 2 for calling the ScriptPostprocessingAutosizedCrop obj's underlying member method code with example usage: obj.process(pp, enable, mindim, maxdim, minarea, maxarea, objective, threshold) without return types