ESPHome 2026.9.0-dev
Loading...
Searching...
No Matches
image_format.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4
6
23
27std::optional<ImageFormat> get_format_for_mime_type(const char *mime_type);
28
29} // namespace esphome::runtime_image
const char * format
const char * get_mime_type_for_format(ImageFormat format)
Canonical MIME type for a format; "image/*" for AUTO/unknown.
std::optional< ImageFormat > get_format_for_mime_type(const char *mime_type)
Case-insensitive substring match of known media types; nullopt if none found.
ImageFormat
Image format types that can be decoded dynamically.
@ AUTO
Format is supplied per decode, e.g.