class_docstr: Converter for images
class_docstr_tok: ["Converter","for","images"]
docstr: Resize image smaller, not retaining aspect ratio.
  
  For image reduction, reduce size to fit smallest of the dimensions and
  crop the larger dimension as necessary. Crop centering is based on
  center of image.
docstr_tok: ["Resize","image","smaller",",","not","retaining","aspect","ratio",".","For","image","reduction",",","reduce","size","to","fit","smallest","of","the","dimensions","and","crop","the","larger","dimension","as","necessary",".","Crop","centering","is","based","on","center","of","image","."]
code: def _resize_thumbnail_and_crop(self):
      """Resize image smaller, not retaining aspect ratio.
  
      For image reduction, reduce size to fit smallest of the dimensions and
      crop the larger dimension as necessary. Crop centering is based on
      center of image."""
  
      logging.debug("Reducing image size and cropping as necessary.")
      return ImageOps.fit(
          image=self._orig_img,
          size=self._desired_size,
          centering=self._position,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl import logging
  from PIL import Image
  from PIL import ImageOps
label_desc: Use image node_id 4 for calling the ImageConverter obj's underlying member method code with example usage: obj._resize_thumbnail_and_crop() and returns: ImageOps