generate_thumbnail
- lib.image.generate_thumbnail(image, size=96, quality=60)
Generate a jpg thumbnail for the given image.
- Parameters:
image (
numpy.ndarray) – Three channel BGR image to convert to a jpg thumbnailsize (int) – The width and height, in pixels, that the thumbnail should be generated at
quality (int) – The jpg quality setting to use
- Returns:
The given image encoded to a jpg at the given size and quality settings
- Return type:
numpy.ndarray