trim_pad_image

trim_pad_image(filename, padding=20)[source]

Trims and pads an image.

Parameters:
  • filename (str) – The filename of the image to be acted on.
  • padding (int) – The number of pixels in padding to add to the image after the image has been trimmed.