PhotoCraft: An open-source, photo editor written by scratch in pure Rust
IO: route declared Photoshop extensions through is_psd_input.
Vikram Bhaskaran26cdfae307c3
diff --git a/crates/io/src/lib.rs b/crates/io/src/lib.rsindex 7c67ab497..7050cffd7 100644--- a/crates/io/src/lib.rs+++ b/crates/io/src/lib.rs@@ -302,7 +302,9 @@ fn import_stages(name: &str, bytes: &[u8], ctl: &photocraft_raster::Interrupt, mif affinity::is_affinity(bytes) || affinity::has_extension(name) {return affinity::import(name, bytes);}- if PSD_EXTS.iter().any(|e| has_extension(name, e)) {+ // Same predicate as above; the magic case already returned, so this routes the declared+ // `.psd`/`.psb`/`.psdt` extensions that are not Affinity containers.+ if is_psd_input(name, bytes) {return import_psd(name, bytes, ctl);}if ora::is_ora(bytes) || has_extension(name, "ora") {