class_docstr: Constructs a GLPN image processor.
  
  Args:
      do_resize (`bool`, *optional*, defaults to `True`):
          Whether to resize the image's (height, width) dimensions, rounding them down to the closest multiple of
          `size_divisor`. Can be overridden by `do_resize` in `preprocess`.
      size_divisor (`int`, *optional*, defaults to 32):
          When `do_resize` is `True`, images are resized so their height and width are rounded down to the closest
          multiple of `size_divisor`. Can be overridden by `size_divisor` in `preprocess`.
      resample (`PIL.Image` resampling filter, *optional*, defaults to `Resampling.BILINEAR`):
          Resampling filter to use if resizing the image. Can be overridden by `resample` in `preprocess`.
      do_rescale (`bool`, *optional*, defaults to `True`):
          Whether or not to apply the scaling factor (to make pixel values floats between 0. and 1.). Can be
          overridden by `do_rescale` in `preprocess`.
code: def __init__(
      self,
      do_resize: bool = True,
      size_divisor: int = 32,
      resample=PILImageResampling.BILINEAR,
      do_rescale: bool = True,
      **kwargs,
  ) -> None:
      self.do_resize = do_resize
      self.do_rescale = do_rescale
      self.size_divisor = size_divisor
      self.resample = resample
      super().__init__(**kwargs)
  
file_path: transformers/src/transformers/models/glpn/image_processing_glpn.py
imports: from typing import List, Optional, Union
  import numpy
  import PIL.Image
  from ...image_processing_utils import BaseImageProcessor, BatchFeature
  from ...image_transforms import resize, to_channel_dimension_format
  from ...image_utils import ChannelDimension, PILImageResampling, get_image_size, infer_channel_dimension_format, is_scaled_image, make_list_of_images, to_numpy_array, valid_images
  from ...utils import TensorType, logging
label_desc: Use image node_id 1 to create a new GLPNImageProcessor object from inherited base classes: BaseImageProcessor with example: obj = GLPNImageProcessor(do_resize, size_divisor, resample, do_rescale)