mtx::common::ThumbnailInfo struct

Metadata about an image thumbnail.

Public variables

uint64_t h
The height of the thumbnail in pixels.
uint64_t w
The width of the thumbnail in pixels.
uint64_t size
Size of the thumbnail in bytes.
std::string mimetype
The mimetype of the thumbnail, e.g. image/jpeg.

Friends

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