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 83 of file STBImageWriter.cpp.

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