| 323 | } |
| 324 | |
| 325 | nlohmann::json ImageFileToJson(const image_source::ImageFile& file) { |
| 326 | return { |
| 327 | {"name", file.name}, |
| 328 | {"url", file.url}, |
| 329 | {"sha256", file.sha256}, |
| 330 | {"size", file.size}, |
| 331 | }; |
| 332 | } |
| 333 | |
| 334 | nlohmann::json ImageToJson(const image_source::ImageEntry& image, const std::string& images_dir) { |
| 335 | nlohmann::json files = nlohmann::json::array(); |