MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ can_write()

bool MayaFlux::IO::STBImageWriter::can_write ( const std::string &  filepath) const
overridevirtual

Check whether this writer handles the given filepath.

Implements MayaFlux::IO::ImageWriter.

Definition at line 80 of file STBImageWriter.cpp.

81{
82 const auto ext = extension_of(filepath);
83 static const std::vector<std::string> supported = {
84 "png", "jpg", "jpeg", "bmp", "tga", "hdr"
85 };
86 return std::ranges::find(supported, ext) != supported.end();
87}