use std::path::Path; fn main() { let psd_path = "/home/hc/Pictures/Forest Text Effect/Text.psd"; let layers: Vec = match psd::import_psd(Path::new(psd_path)) { Ok(l) => l, Err(e) => { eprintln!("import_psd failed: {}", e); return; } }; if layers.is_empty() { eprintln!("No layers imported."); return; } println!("=== Layer Summary ==="); for (i, layer) in layers.iter().enumerate() { let fx_summary: Vec = layer.effects.iter() .map(|e| format!("{}({})", e.effect_name(), if e.is_enabled() { "on" } else { "off" })) .collect(); println!("{:2}: name='{}', blend={:?}, opacity={:.3}, visible={}, fx=[{}]", i, layer.name, layer.blend_mode, layer.opacity, layer.visible, fx_summary.join(", ")); } println!("=== End Summary ==="); println!("\nCompositing requires hcie-composite — not available in this crate."); println!("Run the equivalent example in hcie-io or hcie-text instead."); }