init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
fn main() {
|
||||
for filename in &["blend.psd", "emboss.psd", "inner_bevel.psd", "base_test_generated_2.psd"] {
|
||||
let path_str = format!("/home/hc/Pictures/_psd_stil_test/{}", filename);
|
||||
let path = std::path::Path::new(&path_str);
|
||||
let layers = match hcie_psd::import_psd(path) {
|
||||
Ok(l) => l,
|
||||
Err(e) => { eprintln!("import_psd failed for {}: {}", filename, e); continue; }
|
||||
};
|
||||
|
||||
println!("\n=== File: {} ===", filename);
|
||||
for layer in &layers {
|
||||
if layer.effects.is_empty() { continue; }
|
||||
println!("Layer '{}':", layer.name);
|
||||
for eff in &layer.effects {
|
||||
if !eff.is_enabled() { continue; }
|
||||
println!(" Effect: {:?}", eff);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user