#ifndef IMAGE_PROCESSOR_HH #define IMAGE_PROCESSOR_HH #include "colour.hh" #include "image_loader.hh" #include "io.hh" #include "spawner.hh" #include #include #include namespace image_processor { [[nodiscard]] std::expected peek(Process& process, std::filesystem::path const& path); [[nodiscard]] std::expected, ImageLoadError> load( Process& process, std::filesystem::path const& path, Image::Format format, uint32_t max_width = 0, uint32_t max_height = 0, std::optional background = std::nullopt); int run(std::unique_ptr reader, std::unique_ptr writer); } // namespace image_processor #endif // IMAGE_PROCESSOR_HH