Home Assistant Unofficial Reference 2024.12.1
img_util.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.camera.img_util.TurboJPEGSingleton
 

Namespaces

 homeassistant.components.camera.img_util
 

Functions

tuple[int, int]|None homeassistant.components.camera.img_util.find_supported_scaling_factor (int current_width, int current_height, int target_width, int target_height)
 
bytes homeassistant.components.camera.img_util.scale_jpeg_camera_image (Image cam_image, int width, int height)
 

Variables

 homeassistant.components.camera.img_util._LOGGER = logging.getLogger(__name__)
 
int homeassistant.components.camera.img_util.JPEG_QUALITY = 75
 
list homeassistant.components.camera.img_util.SUPPORTED_SCALING_FACTORS = [(7, 8), (3, 4), (5, 8), (1, 2), (3, 8), (1, 4), (1, 8)]