ESPHome 2026.9.0-dev
Loading...
Searching...
No Matches
image_format.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::runtime_image
 

Functions

const char * esphome::runtime_image::get_mime_type_for_format (ImageFormat format)
 Canonical MIME type for a format; "image/*" for AUTO/unknown.
 
std::optional< ImageFormatesphome::runtime_image::get_format_for_mime_type (const char *mime_type)
 Case-insensitive substring match of known media types; nullopt if none found.