vllm.multimodal.image ¶
convert_image_mode ¶
rescale_image_size ¶
Rescale the dimensions of an image by a constant factor.
Source code in vllm/multimodal/image.py
rgba_to_rgb ¶
rgba_to_rgb(
image: Image,
background_color: tuple[int, int, int] | list[int] = (
255,
255,
255,
),
) -> Image
Convert an RGBA image to RGB with filled background color.