Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Merge PR #7721: fix(actions): refuse lossy fractional Crystallize ATN export

aiongg2d74af4c8eb6
diff --cc crates/engine/src/atn_cmds.rs
index 403e22d5a,aaf869225..80e49e5a8
--- a/crates/engine/src/atn_cmds.rs
+++ b/crates/engine/src/atn_cmds.rs
@@@ -3160,18 -2669,10 +3160,18 @@@ const EVENTS: &[Event] = &
"filter.other.offset",
&[F("Hrzn", "horizontal", Kind::Long), F("Vrtc", "vertical", Kind::Long), F("Fl ", "undefinedAreas", Kind::Enum("FlMd", OFFSET_FILL))]
),
- ev!("Rple", "ripple", "Ripple", "filter.distort.ripple", &[F("Amnt", "amount", Kind::Long), F("RplS", "size", Kind::Enum("RplS", RIPPLE_SIZE))]),
+ ev!("Rple", "ripple", "Ripple", "filter.distort.ripple", &[F("Amnt", "amount", Kind::ExactLong), F("RplS", "size", Kind::Enum("RplS", RIPPLE_SIZE))]),
- ev!("Crst", "crystallize", "Crystallize", "filter.pixelate.crystallize", &[F("ClSz", "cellSize", Kind::Long)]),
+ ev!("Crst", "crystallize", "Crystallize", "filter.pixelate.crystallize", &[F("ClSz", "cellSize", Kind::ExactLong)]),
Event { code: "GEfc", name: "filterGallery", label: "Filter Gallery", ids: GALLERY_IDS, from: gallery_from, to: gallery_to },
// Adjustments (Image › Adjustments).
+ Event {
+ code: "",
+ name: "adaptCorrect",
+ label: "Shadows/Highlights",
+ ids: &["image.adjustments.shadowsHighlights"],
+ from: shadows_highlights_from,
+ to: shadows_highlights_to,
+ },
Event {
code: "Lvls",
name: "levels",