fn main() { let paths = [ "_images/_psd_stil_test/test_2/Emboss.psd", "_images/_psd_stil_test/test_2/inner bevel.psd", "_images/_psd_stil_test/test_2/drop shadow.psd", "_images/_psd_stil_test/test_2/inner glow.psd", "_images/_psd_stil_test/test_2/inner shadow.psd", "_images/_psd_stil_test/test_2/stroke.psd", "_images/_psd_stil_test/test_2/test_2.psd", ]; for path in &paths { println!("\n=== {} ===", std::path::Path::new(path).file_name().unwrap().to_str().unwrap()); let layers = match hcie_psd::import_psd(std::path::Path::new(path)) { Ok(l) => l, Err(e) => { println!(" FAILED: {}", e); continue; } }; for l in &layers { println!(" Layer: '{}' {}x{} visible={} effects={}", l.name, l.width, l.height, l.visible, l.effects.len()); for e in &l.effects { println!(" {} enabled={}", e.effect_name(), e.is_enabled()); println!(" {:?}", e); } } } }