vkit.engine.image.type
1# Copyright 2022 vkit-x Administrator. All Rights Reserved. 2# 3# This project (vkit-x/vkit) is dual-licensed under commercial and SSPL licenses. 4# 5# The commercial license gives you the full rights to create and distribute software 6# on your own terms without any SSPL license obligations. For more information, 7# please see the "LICENSE_COMMERCIAL.txt" file. 8# 9# This project is also available under Server Side Public License (SSPL). 10# The SSPL licensing is ideal for use cases such as open source projects with 11# SSPL distribution, student/academic purposes, hobby projects, internal research 12# projects without external distribution, or other projects where all SSPL 13# obligations can be met. For more information, please see the "LICENSE_SSPL.txt" file. 14import attrs 15 16 17@attrs.define 18class ImageEngineRunConfig: 19 height: int 20 width: int 21 disable_resizing: bool = False
class
ImageEngineRunConfig:
ImageEngineRunConfig(height: int, width: int, disable_resizing: bool = False)
2def __init__(self, height, width, disable_resizing=attr_dict['disable_resizing'].default): 3 self.height = height 4 self.width = width 5 self.disable_resizing = disable_resizing
Method generated by attrs for class ImageEngineRunConfig.