mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -9,23 +9,23 @@ EXIF_TAG_ORIENTATION_TO_TRANSPOSE_METHODS: dict[int, list]
|
||||
IMAGE_MAX_RESOLUTION: float
|
||||
|
||||
class ImageProcess:
|
||||
base64_source: bytes
|
||||
source: bytes
|
||||
operationsCount: int
|
||||
image: Image | Literal[False]
|
||||
original_format: str
|
||||
def __init__(self, base64_source: bytes, verify_resolution: bool = ...) -> None: ...
|
||||
def __init__(self, source: bytes, verify_resolution: bool = ...) -> None: ...
|
||||
def image_quality(self, quality: int = ..., output_format: str = ...) -> bytes | Literal[False]: ...
|
||||
def image_base64(self, quality: int = ..., output_format: str = ...) -> bytes | Literal[False]: ...
|
||||
def resize(self, max_width: int = ..., max_height: int = ...) -> ImageProcess: ...
|
||||
def crop_resize(self, max_width: int, max_height: int, center_x: float = ..., center_y: float = ...) -> ImageProcess: ...
|
||||
def colorize(self) -> ImageProcess: ...
|
||||
|
||||
def image_process(base64_source: bytes, size: tuple[int, int] = ..., verify_resolution: bool = ..., quality: int = ..., crop: str | None = ..., colorize: bool = ..., output_format: str = ...) -> bytes: ...
|
||||
def image_process(source: bytes, size: tuple[int, int] = ..., verify_resolution: bool = ..., quality: int = ..., crop: str | None = ..., colorize: bool = ..., output_format: str = ...) -> bytes: ...
|
||||
def average_dominant_color(colors: list[tuple[Any, Any]], mitigate: int = ..., max_margin: int = ...) -> tuple[Any, Any]: ...
|
||||
def image_fix_orientation(image: Image) -> Image: ...
|
||||
def binary_to_image(source: bytes) -> Image: ...
|
||||
def base64_to_image(base64_source: bytes) -> Image: ...
|
||||
def image_apply_opt(image: Image, format: str | None, **params) -> bytes: ...
|
||||
def image_to_base64(image: Image, format: str | None, **params) -> bytes: ...
|
||||
def image_apply_opt(image: Image, output_format: str | None, **params) -> bytes: ...
|
||||
def image_to_base64(image: Image, output_format: str | None, **params) -> bytes: ...
|
||||
def is_image_size_above(base64_source_1: bytes, base64_source_2: bytes) -> bool: ...
|
||||
def image_guess_size_from_field_name(field_name: str) -> tuple[int, int]: ...
|
||||
def image_data_uri(base64_source: bytes) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user