gemini feat: optimize drawing performance by caching layer styles during strokes and improve UI/UX for layer styles and menus, improved drop shadow
This commit is contained in:
@@ -7,7 +7,7 @@ use image;
|
||||
|
||||
fn main() {
|
||||
// Load PSD
|
||||
let psd_path = "/home/hc/Pictures/_test_images/example3/Example3-mini.psd";
|
||||
let psd_path = "_images/_test_images/example3/Example3-mini.psd";
|
||||
let layers: Vec<hcie_protocol::Layer> = match hcie_psd::import_psd(std::path::Path::new(psd_path)) {
|
||||
Ok(l) => l,
|
||||
Err(e) => {
|
||||
@@ -234,7 +234,7 @@ fn main() {
|
||||
println!("Saved composite to {}", out_path);
|
||||
|
||||
// Diff against reference PNG
|
||||
let ref_path = "/home/hc/Pictures/_test_images/example3/Example3-mini.png";
|
||||
let ref_path = "_images/_test_images/example3/Example3-mini.png";
|
||||
if std::path::Path::new(ref_path).exists() {
|
||||
let ref_img = image::open(ref_path).unwrap().to_rgba8();
|
||||
let ref_pixels = ref_img.as_raw();
|
||||
|
||||
Reference in New Issue
Block a user