Skip to content

Image Format

immichpy.client.generated.models.image_format.ImageFormat

Bases: str, Enum

Image format

from_json classmethod

from_json(json_str: str) -> Self

Create an instance of ImageFormat from a JSON string

Source code in immichpy/client/generated/models/image_format.py
31
32
33
34
@classmethod
def from_json(cls, json_str: str) -> Self:
    """Create an instance of ImageFormat from a JSON string"""
    return cls(json.loads(json_str))