| 87 | { |
| 88 | |
| 89 | Expected<Image> fromPng( const std::filesystem::path& path ) |
| 90 | { |
| 91 | std::ifstream in( path, std::ios::binary ); |
| 92 | if ( !in ) |
| 93 | return unexpected( "Cannot open file " + utf8string( path ) ); |
| 94 | |
| 95 | return addFileNameInError( fromPng( in ), path ); |
| 96 | } |
| 97 | |
| 98 | Expected<MR::Image> fromPng( std::istream& in ) |
| 99 | { |
no test coverage detected