mtx::common::ImageInfo struct

Metadata about an image.

Public variables

uint64_t h
The height of the image in pixels.
uint64_t w
The width of the image in pixels.
uint64_t size
Size of the image in bytes.
ThumbnailInfo thumbnail_info
Metadata about the image referred to in thumbnail_url.
std::string thumbnail_url
The URL to a thumbnail of the image.
std::string mimetype
The mimetype of the image, e.g. image/jpeg.
std::optional<crypto::EncryptedFile> thumbnail_file
Encryption members. If present, they replace thumbnail_url.
std::string blurhash
experimental blurhash, see MSC2448

Friends

void from_json(const nlohmann::json& obj, ImageInfo& info)
Deserialization method needed by nlohmann::json.
void to_json(nlohmann::json& obj, const ImageInfo& info)
Serialization method needed by nlohmann::json.