post update
Some checks failed
test / cargo test (push) Failing after 1m1s

This commit is contained in:
2024-11-06 10:02:17 +01:00
parent e44b4a099c
commit 355a4c4d04
3 changed files with 45 additions and 23 deletions

View File

@ -23,6 +23,11 @@ pub fn generate_image_with_src(
let resolutions = [(width, height, 1.)];
let exported_formats = get_export_formats(orig_img_path);
if exported_formats.is_empty() {
return Ok(orig_img_path.to_string());
}
let exported_format = *exported_formats.first().unwrap();
let path_to_generated_arc = Arc::new(path_to_generated);