naskpy.image_processing

Functions

get_remote_image(url)

Get an image from a remote url.

resize(image, size[, crop, position, fill_color])

Resize an image to a given size.

resize_by_height(image, nh)

Resize an image by a given height :param image: Image :param nh: int :return: Image

resize_by_width(image, nw)

Resize an image by a given width :param image: Image :param nw: int :return: Image

to_square(image, side_length[, fill_color, ...])

Resize an image to a square of a given side length.