PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Integration: merge main (through #8562)
aionggadd0fbc706cf
diff --cc contributors/people.tomlindex 7420dafd0,42470ea22..30077a230--- a/contributors/people.toml+++ b/contributors/people.toml@@@ -205,46 -192,5 +205,49 @@@ sync_github_name = tru[people.ha1des]sync_github_name = true+[people.webdevtodayjason]+display_name = "Jason Brashear"++[people.AndreeSalazar]+real_name = "Andreé Salazar"+sync_github_name = true++[people.LorenzoFasolino]+real_name = "Lorenzo Fasolino"+display_name = "Lorenzo Fasolino"+sync_github_name = false++[people.zolyy]+real_name = "Gall Zoltan"+sync_github_name = false++[people.theshubh77]+real_name = "Shubham Bhamare"+sync_github_name = true++[people.ksaxena149]+sync_github_name = true++[people.giang17]+real_name = "Giang Nguyen"+sync_github_name = true++[people.aqibmohd271]+sync_github_name = true++[people.marcoarnulfo]+real_name = "Marco Arnulfo"+display_name = "Marco Arnulfo"+sync_github_name = false++[people.Gotix-eg]+real_name = "Ahmed Tammam"+display_name = "Gotix"+sync_github_name = true++[people.adi-1108]+real_name = "Aditya Vishwakarma"+sync_github_name = true+++ [people.benandez]+ real_name = "Martin Ball"diff --cc crates/engine/src/web_cmds.rsindex 894cdca40,9ccb5e02b..f1d8b2331--- a/crates/engine/src/web_cmds.rs+++ b/crates/engine/src/web_cmds.rs@@@ -1086,17 -1086,16 +1086,25 @@@ fn quick_export(s: &mut Session, p: &Vatarget}};+ // The name typed in the save dialog wins over Export Preferences' format: Quick Export as PNG+ // renamed to `photo.jpeg` must write a JPEG, not PNG bytes upload checks refuse (#8519).+ let fmt = match crate::file_cmds::extension(&path).as_deref() {+ None => fmt,+ Some("jpg" | "jpeg") => "jpg".into(),+ Some(e @ ("png" | "gif" | "webp")) => e.into(),+ Some(e) => return Err(bad(cmd, format!("Quick Export writes PNG, JPEG, GIF or WebP, not .{e}; use Export As"))),+ };let d = s.active().ok_or(EngineError::NoDocument)?;let doc = d.doc.clone();+ if fmt == "exr" {+ // EXR keeps floating-point scene values. The ordinary exporter converts to linear+ // light; the web/sRGB pipeline would instead clamp HDR and negative values.+ let opts = photocraft_io::ExportOptions { xmp: photocraft_io::XmpEmbed::None, ..Default::default() };+ let out = photocraft_io::export(&doc, "exr", &opts).map_err(other)?;+ write_file(&path, &out.bytes)?;+ crate::automate_cmds::fire_event(s, "export");+ return Ok(json!({"path": path, "format": fmt, "bytes": out.bytes.len(), "warnings": out.warnings}));+ }let metadata = serde_json::to_value(prefs.metadata).ok().and_then(|v| v.as_str().map(str::to_string)).unwrap_or_default();let mut o = serde_json::Map::new();o.insert(