bibliopixel.util.image.reshape module

bibliopixel.util.image.reshape.crop(image, top_offset=0, left_offset=0, bottom_offset=0, right_offset=0)[source]

Return an image cropped on top, bottom, left or right.

bibliopixel.util.image.reshape.resize(image, x, y, stretch=False, top=None, left=None, mode='RGB', resample=None)[source]

Return an image resized.