export_jpg module
- class ooodev.draw.filter.export_jpg.ExportJpg(pixel_width, pixel_height, logical_width=-1, logical_height=-1, quality=75, color_mode=True)[source]
- Parameters:
pixel_width (int) –
pixel_height (int) –
logical_width (int) –
logical_height (int) –
quality (int) –
color_mode (bool) –
- __init__(pixel_width, pixel_height, logical_width=-1, logical_height=-1, quality=75, color_mode=True)[source]
Constructor.
- Parameters:
pixel_width (int) – Pixel Width.
pixel_height (int) – Pixel Height.
logical_width (int) – Logical Width - Usually that same as
pixel_width
.logical_height (int) – Logical Height - Usually that same as
pixel_height
.quality (int) – Compression value from
1
to100
. Higher Quality, larger file size. Default is75
.color_mode (bool) – Color Mode.
- static from_dict(dict)[source]
- Return type:
- Parameters:
dict (ExportJpgT) –
- class ooodev.draw.filter.export_jpg.ExportJpgT(*args, **kwargs)[source]
Draw Image Export Data for Jpg.
pixel_width: Pixel Width.
pixel_height: Pixel Height.
logical_width: Logical Width - Usually that same as
pixel_width
.logical_height: Logical Height - Usually that same as
pixel_height
.quality: Compression value from
1
to100
. Higher Quality, larger file size. Default is75
.color_mode: Color Mode.
- color_mode: bool
- logical_height: int
- logical_width: int
- pixel_height: int
- pixel_width: int
- quality: int