Actions: map all 47 Filter Gallery effects (#10592)

Filter Gallery steps (GEfc with the effect in GEfk, or the effect's own
event) map every effect to filter.gallery.<effect>, not only Spatter:
each key in recorded order, out-of-range values clamped and missing
keys given Photoshop's defaults, enumerations, Invert and Neon Glow's
colour mapped both ways. The table is generated from the event
reference's Group A; every integer range and default matches the
effects'. Glass maps the Frosted and Canvas textures the reference
gives codes for. A setting the event cannot hold refuses the step.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hector VillarrealandClaude Opus 5.5 committed 2026-10-31 21:44:27 -06:00
1 parent 1f984bffb3
commit 5a4bd379d0
6 files changed
+720 -19

No files matched your search

+1
View File
@@ -33,6 +33,7 @@ mod events;
mod fields;
mod files;
mod steps_doc;
mod steps_gallery;
mod steps_image;
mod steps_layer;
mod steps_make;
+2
View File
@@ -619,6 +619,8 @@ pub(super) fn event_for(item: &AtnEvent) -> Option<&'static Event> {
let id = item.id();
let find = |id: &str| EVENTS.iter().find(|e| (!e.code.is_empty() && e.code.trim_end() == id.trim_end()) || e.name == id);
find(&id).or_else(|| match item {
// An effect run from its own menu item records its id as the event (#10592).
AtnEvent::Code(_) if super::steps_gallery::is_effect(&id) => find("filterGallery"),
AtnEvent::Code(_) => LEGACY_CODES.iter().find(|(code, _)| *code == id).and_then(|(_, name)| find(name)),
AtnEvent::Name(_) => None,
})
@@ -0,0 +1,573 @@
//! Photoshop's Filter Gallery steps (#10592): the `GEfc` event with the effect's id in `GEfk`
//! and its settings, for all 47 effects. Each maps to its `filter.gallery.<effect>` command with
//! the keys, limits and defaults Photoshop measures (`docs/atn.md`, Group A); a stack of several
//! effects stays a Photoshop step.
use super::descriptors::{color_desc, color_hex, desc, enm, get_bool, get_enum, get_num, get_obj, trimmed};
use super::events::pixel_target;
use super::fields::{Mapped, step};
use super::tables::{lookup, lookup_back};
use super::{D, Descriptor, Map, Value};
/// One key of an effect, in recorded order.
enum G {
/// An integer clamped to `min..=max` on import, as Photoshop clamps it, and its default.
Int(&'static str, &'static str, i32, i32, i32),
/// An enumeration (Photoshop ↔ PhotoCraft values) and Photoshop's default value. An unknown
/// value keeps the step.
Enum(&'static str, &'static str, &'static [(&'static str, &'static str)], &'static str),
Bool(&'static str, &'static str, bool),
/// A colour object ↔ `#rrggbb`.
Color(&'static str, &'static str),
}
impl G {
fn key(&self) -> &'static str {
match self {
G::Int(k, ..) | G::Enum(k, ..) | G::Bool(k, ..) | G::Color(k, _) => k,
}
}
fn param(&self) -> &'static str {
match self {
G::Int(_, p, ..) | G::Enum(_, p, ..) | G::Bool(_, p, _) | G::Color(_, p) => p,
}
}
}
/// Photoshop's effect id (`GEfk`), the command, and the effect's keys in recorded order.
/// Generated from the event reference's Group A tables; Glass maps only the textures whose
/// codes the reference gives (Frosted, Canvas).
const GALLERY: &[(&str, &str, &[G])] = &[
// Accented Edges
(
"AccE",
"filter.gallery.accentedEdges",
&[G::Int("EdgW", "edgeWidth", 1, 14, 2), G::Int("EdgB", "edgeBrightness", 0, 50, 38), G::Int("Smth", "smoothness", 1, 15, 5)],
),
// Angled Strokes
(
"AngS",
"filter.gallery.angledStrokes",
&[G::Int("DrcB", "directionBalance", 0, 100, 50), G::Int("StrL", "strokeLength", 3, 50, 15), G::Int("Shrp", "sharpness", 0, 10, 3)],
),
// Bas Relief
(
"BsRl",
"filter.gallery.basRelief",
&[
G::Int("Dtl ", "detail", 1, 15, 13),
G::Int("Smth", "smoothness", 1, 15, 3),
G::Enum(
"LghD",
"light",
&[
("LDBL", "bottomLeft"),
("LDBR", "bottomRight"),
("LDBt", "bottom"),
("LDLf", "left"),
("LDRg", "right"),
("LDTL", "topLeft"),
("LDTR", "topRight"),
("LDTp", "top"),
],
"LDBt",
),
],
),
// Chalk Charcoal
(
"ChlC",
"filter.gallery.chalkCharcoal",
&[G::Int("ChrA", "charcoalArea", 0, 20, 6), G::Int("ChlA", "chalkArea", 0, 20, 6), G::Int("StrP", "strokePressure", 0, 5, 1)],
),
// Charcoal
(
"Chrc",
"filter.gallery.charcoal",
&[G::Int("ChAm", "charcoalThickness", 1, 7, 1), G::Int("Dtl ", "detail", 0, 5, 5), G::Int("LgDr", "lightDarkBalance", 0, 100, 50)],
),
// Chrome
("Chrm", "filter.gallery.chrome", &[G::Int("Dtl ", "detail", 0, 10, 4), G::Int("Smth", "smoothness", 0, 10, 7)]),
// Colored Pencil
(
"ClrP",
"filter.gallery.coloredPencil",
&[G::Int("Pncl", "pencilWidth", 1, 24, 4), G::Int("StrP", "strokePressure", 0, 15, 8), G::Int("PprB", "paperBrightness", 0, 50, 25)],
),
// Conte Crayon
(
"CntC",
"filter.gallery.conteCrayon",
&[
G::Int("FrgL", "foregroundLevel", 1, 15, 11),
G::Int("BckL", "backgroundLevel", 1, 15, 7),
G::Enum("TxtT", "texture", &[("TxBr", "brick"), ("TxBu", "burlap"), ("TxCa", "canvas"), ("TxSt", "sandstone")], "TxCa"),
G::Int("Scln", "scaling", 50, 200, 100),
G::Int("Rlf ", "relief", 0, 50, 4),
G::Enum(
"LghD",
"light",
&[
("LDBL", "bottomLeft"),
("LDBR", "bottomRight"),
("LDBt", "bottom"),
("LDLf", "left"),
("LDRg", "right"),
("LDTL", "topLeft"),
("LDTR", "topRight"),
("LDTp", "top"),
],
"LDTp",
),
G::Bool("InvT", "invert", false),
],
),
// Craquelure
(
"Crql",
"filter.gallery.craquelure",
&[G::Int("CrcS", "crackSpacing", 2, 100, 15), G::Int("CrcD", "crackDepth", 0, 10, 6), G::Int("CrcB", "crackBrightness", 0, 10, 9)],
),
// Crosshatch
(
"Crsh",
"filter.gallery.crosshatch",
&[G::Int("StrL", "strokeLength", 3, 50, 9), G::Int("Shrp", "sharpness", 0, 20, 6), G::Int("Strg", "strength", 1, 3, 1)],
),
// Cutout
(
"Ct",
"filter.gallery.cutout",
&[G::Int("NmbL", "numberOfLevels", 2, 8, 4), G::Int("EdgS", "edgeSimplicity", 0, 10, 4), G::Int("EdgF", "edgeFidelity", 1, 3, 2)],
),
// Dark Strokes
(
"DrkS",
"filter.gallery.darkStrokes",
&[G::Int("Blnc", "balance", 0, 10, 5), G::Int("BlcI", "blackIntensity", 0, 10, 6), G::Int("WhtI", "whiteIntensity", 0, 10, 2)],
),
// Diffuse Glow
(
"DfsG",
"filter.gallery.diffuseGlow",
&[G::Int("Grns", "graininess", 0, 10, 6), G::Int("GlwA", "glowAmount", 0, 20, 10), G::Int("ClrA", "clearAmount", 0, 20, 15)],
),
// Dry Brush
("DryB", "filter.gallery.dryBrush", &[G::Int("BrsS", "brushSize", 0, 10, 2), G::Int("BrsD", "brushDetail", 0, 10, 8), G::Int("Txtr", "texture", 1, 3, 1)]),
// Film Grain
(
"FlmG",
"filter.gallery.filmGrain",
&[G::Int("Grn ", "grain", 0, 20, 4), G::Int("HghA", "highlightArea", 0, 20, 0), G::Int("Intn", "intensity", 0, 10, 10)],
),
// Fresco
("Frsc", "filter.gallery.fresco", &[G::Int("BrsS", "brushSize", 0, 10, 2), G::Int("BrsD", "brushDetail", 0, 10, 8), G::Int("Txtr", "texture", 1, 3, 1)]),
// Glass
(
"Gls",
"filter.gallery.glass",
&[
G::Int("Dstr", "distortion", 0, 20, 5),
G::Int("Smth", "smoothness", 1, 15, 3),
G::Enum("TxtT", "texture", &[("TxFr", "frosted"), ("TxCa", "canvas")], "TxFr"),
G::Int("Scln", "scaling", 50, 200, 100),
G::Bool("InvT", "invert", false),
],
),
// Glowing Edges
(
"GlwE",
"filter.gallery.glowingEdges",
&[G::Int("EdgW", "edgeWidth", 1, 14, 2), G::Int("EdgB", "edgeBrightness", 0, 20, 6), G::Int("Smth", "smoothness", 1, 15, 5)],
),
// Graphic Pen
(
"GraP",
"filter.gallery.graphicPen",
&[
G::Int("StrL", "strokeLength", 1, 15, 15),
G::Int("LgDr", "lightDarkBalance", 0, 100, 50),
G::Enum("SDir", "strokeDirection", &[("SDHz", "horizontal"), ("SDLD", "leftDiagonal"), ("SDRD", "rightDiagonal"), ("SDVt", "vertical")], "SDRD"),
],
),
// Halftone Screen
(
"HlfS",
"filter.gallery.halftonePattern",
&[
G::Int("HlSz", "size", 1, 12, 1),
G::Int("Cntr", "contrast", 0, 50, 5),
G::Enum("ScrT", "patternType", &[("ScrC", "circle"), ("ScrD", "dot"), ("ScrL", "line")], "ScrD"),
],
),
// Ink Outlines
(
"InkO",
"filter.gallery.inkOutlines",
&[G::Int("StrL", "strokeLength", 1, 50, 4), G::Int("DrkI", "darkIntensity", 0, 50, 20), G::Int("LghI", "lightIntensity", 0, 50, 10)],
),
// Mosaic Tiles
(
"MscT",
"filter.gallery.mosaicTiles",
&[G::Int("TlSz", "tileSize", 2, 100, 12), G::Int("GrtW", "groutWidth", 1, 15, 3), G::Int("LghG", "lightenGrout", 0, 10, 9)],
),
// Neon Glow
("NGlw", "filter.gallery.neonGlow", &[G::Int("Sz ", "glowSize", -24, 24, 5), G::Int("Brgh", "glowBrightness", 0, 50, 15), G::Color("Clr ", "glowColor")]),
// Note Paper
(
"NtPr",
"filter.gallery.notePaper",
&[G::Int("ImgB", "imageBalance", 0, 50, 25), G::Int("Grns", "graininess", 0, 20, 10), G::Int("Rlf ", "relief", 0, 25, 11)],
),
// Ocean Ripple
("OcnR", "filter.gallery.oceanRipple", &[G::Int("RplS", "rippleSize", 1, 15, 9), G::Int("RplM", "rippleMagnitude", 0, 20, 9)]),
// Paint Daubs
(
"PntD",
"filter.gallery.paintDaubs",
&[
G::Int("Sz ", "brushSize", 1, 50, 8),
G::Int("Shrp", "sharpness", 0, 40, 7),
G::Enum(
"BrsT",
"brushType",
&[("BrDR", "darkRough"), ("BrSm", "simple"), ("BrSp", "sparkle"), ("BrbW", "wideBlurry"), ("BrsL", "lightRough"), ("BrsW", "wideSharp")],
"BrSm",
),
],
),
// Palette Knife
(
"PltK",
"filter.gallery.paletteKnife",
&[G::Int("StrS", "strokeSize", 1, 50, 25), G::Int("StDt", "strokeDetail", 1, 3, 3), G::Int("Sftn", "softness", 0, 10, 0)],
),
// Patchwork
("Ptch", "filter.gallery.patchwork", &[G::Int("SqrS", "squareSize", 0, 10, 4), G::Int("Rlf ", "relief", 0, 25, 8)]),
// Photocopy
("Phtc", "filter.gallery.photocopy", &[G::Int("Dtl ", "detail", 1, 24, 7), G::Int("Drkn", "darkness", 1, 50, 8)]),
// Plaster
(
"Plst",
"filter.gallery.plaster",
&[
G::Int("ImgB", "imageBalance", 0, 50, 20),
G::Int("Smth", "smoothness", 1, 15, 2),
G::Enum(
"LghP",
"light",
&[
("LPBL", "bottomLeft"),
("LPBr", "bottomRight"),
("LPBt", "bottom"),
("LPLf", "left"),
("LPRg", "right"),
("LPTL", "topLeft"),
("LPTR", "topRight"),
("LPTp", "top"),
],
"LPTp",
),
],
),
// Plastic Wrap
(
"PlsW",
"filter.gallery.plasticWrap",
&[G::Int("HghS", "highlightStrength", 0, 20, 15), G::Int("Dtl ", "detail", 1, 15, 9), G::Int("Smth", "smoothness", 1, 15, 7)],
),
// Poster Edges
(
"PstE",
"filter.gallery.posterEdges",
&[G::Int("EdgT", "edgeThickness", 0, 10, 2), G::Int("EdgI", "edgeIntensity", 0, 10, 1), G::Int("Pstr", "posterization", 0, 6, 2)],
),
// Reticulation
(
"Rtcl",
"filter.gallery.reticulation",
&[G::Int("Dnst", "density", 0, 50, 12), G::Int("BlcL", "foregroundLevel", 0, 50, 40), G::Int("WhtL", "backgroundLevel", 0, 50, 5)],
),
// Rough Pastels
(
"RghP",
"filter.gallery.roughPastels",
&[
G::Int("StrL", "strokeLength", 0, 40, 6),
G::Int("StDt", "strokeDetail", 1, 20, 4),
G::Enum("TxtT", "texture", &[("TxBr", "brick"), ("TxBu", "burlap"), ("TxCa", "canvas"), ("TxSt", "sandstone")], "TxCa"),
G::Int("Scln", "scaling", 50, 200, 100),
G::Int("Rlf ", "relief", 0, 50, 20),
G::Enum(
"LghD",
"light",
&[
("LDBL", "bottomLeft"),
("LDBR", "bottomRight"),
("LDBt", "bottom"),
("LDLf", "left"),
("LDRg", "right"),
("LDTL", "topLeft"),
("LDTR", "topRight"),
("LDTp", "top"),
],
"LDBt",
),
G::Bool("InvT", "invert", false),
],
),
// Smudge Stick
(
"SmdS",
"filter.gallery.smudgeStick",
&[G::Int("StrL", "strokeLength", 0, 10, 2), G::Int("HghA", "highlightArea", 0, 20, 0), G::Int("Intn", "intensity", 0, 10, 10)],
),
// Spatter
("Spt", "filter.gallery.spatter", &[G::Int("SprR", "sprayRadius", 0, 25, 10), G::Int("Smth", "smoothness", 1, 15, 5)]),
// Sponge
(
"Spng",
"filter.gallery.sponge",
&[G::Int("BrsS", "brushSize", 0, 10, 2), G::Int("Dfnt", "definition", 0, 25, 12), G::Int("Smth", "smoothness", 1, 15, 5)],
),
// Sprayed Strokes
(
"SprS",
"filter.gallery.sprayedStrokes",
&[
G::Int("StrL", "strokeLength", 0, 20, 12),
G::Int("SprR", "sprayRadius", 0, 25, 7),
G::Enum("SDir", "strokeDirection", &[("SDHz", "horizontal"), ("SDLD", "leftDiagonal"), ("SDRD", "rightDiagonal"), ("SDVt", "vertical")], "SDRD"),
],
),
// Stained Glass
(
"StnG",
"filter.gallery.stainedGlass",
&[G::Int("ClSz", "cellSize", 2, 50, 10), G::Int("BrdT", "borderThickness", 1, 20, 4), G::Int("LghI", "lightIntensity", 0, 10, 3)],
),
// Stamp
("Stmp", "filter.gallery.stamp", &[G::Int("LgDr", "lightDarkBalance", 0, 50, 25), G::Int("Smth", "smoothness", 1, 50, 5)]),
// Sumie
(
"Smie",
"filter.gallery.sumiE",
&[G::Int("StrW", "strokeWidth", 3, 15, 10), G::Int("StrP", "strokePressure", 0, 15, 2), G::Int("Cntr", "contrast", 0, 40, 16)],
),
// Texturizer
(
"Txtz",
"filter.gallery.texturizer",
&[
G::Enum("TxtT", "texture", &[("TxBr", "brick"), ("TxBu", "burlap"), ("TxCa", "canvas"), ("TxSt", "sandstone")], "TxCa"),
G::Int("Scln", "scaling", 50, 200, 100),
G::Int("Rlf ", "relief", 0, 50, 4),
G::Enum(
"LghD",
"light",
&[
("LDBL", "bottomLeft"),
("LDBR", "bottomRight"),
("LDBt", "bottom"),
("LDLf", "left"),
("LDRg", "right"),
("LDTL", "topLeft"),
("LDTR", "topRight"),
("LDTp", "top"),
],
"LDTp",
),
G::Bool("InvT", "invert", false),
],
),
// Torn Edges
(
"TrnE",
"filter.gallery.tornEdges",
&[G::Int("ImgB", "imageBalance", 0, 50, 25), G::Int("Smth", "smoothness", 1, 15, 11), G::Int("Cntr", "contrast", 1, 25, 17)],
),
// Underpainting
(
"Undr",
"filter.gallery.underpainting",
&[
G::Int("BrsS", "brushSize", 0, 40, 6),
G::Int("TxtC", "textureCoverage", 0, 40, 16),
G::Enum("TxtT", "texture", &[("TxBr", "brick"), ("TxBu", "burlap"), ("TxCa", "canvas"), ("TxSt", "sandstone")], "TxCa"),
G::Int("Scln", "scaling", 50, 200, 100),
G::Int("Rlf ", "relief", 0, 50, 4),
G::Enum(
"LghD",
"light",
&[
("LDBL", "bottomLeft"),
("LDBR", "bottomRight"),
("LDBt", "bottom"),
("LDLf", "left"),
("LDRg", "right"),
("LDTL", "topLeft"),
("LDTR", "topRight"),
("LDTp", "top"),
],
"LDTp",
),
G::Bool("InvT", "invert", false),
],
),
// Water Paper
(
"WtrP",
"filter.gallery.waterPaper",
&[G::Int("FbrL", "fiberLength", 3, 50, 15), G::Int("Brgh", "brightness", 0, 100, 60), G::Int("Cntr", "contrast", 0, 100, 80)],
),
// Watercolor
(
"Wtrc",
"filter.gallery.watercolor",
&[G::Int("BrsD", "brushDetail", 1, 14, 9), G::Int("ShdI", "shadowIntensity", 0, 10, 1), G::Int("Txtr", "texture", 1, 3, 1)],
),
// Grain
(
"Grn",
"filter.gallery.grain",
&[
G::Int("Intn", "intensity", 0, 100, 40),
G::Int("Cntr", "contrast", 0, 100, 50),
G::Enum(
"Grnt",
"grainType",
&[
("GrCn", "contrasty"),
("GrSf", "soft"),
("GrSp", "speckle"),
("GrSr", "sprinkles"),
("GrSt", "stippled"),
("GrnC", "clumped"),
("GrnE", "enlarged"),
("GrnH", "horizontal"),
("GrnR", "regular"),
("GrnV", "vertical"),
],
"GrnR",
),
],
),
];
pub(super) const GALLERY_IDS: &[&str] = &[
"filter.gallery.accentedEdges",
"filter.gallery.angledStrokes",
"filter.gallery.basRelief",
"filter.gallery.chalkCharcoal",
"filter.gallery.charcoal",
"filter.gallery.chrome",
"filter.gallery.coloredPencil",
"filter.gallery.conteCrayon",
"filter.gallery.craquelure",
"filter.gallery.crosshatch",
"filter.gallery.cutout",
"filter.gallery.darkStrokes",
"filter.gallery.diffuseGlow",
"filter.gallery.dryBrush",
"filter.gallery.filmGrain",
"filter.gallery.fresco",
"filter.gallery.glass",
"filter.gallery.glowingEdges",
"filter.gallery.graphicPen",
"filter.gallery.halftonePattern",
"filter.gallery.inkOutlines",
"filter.gallery.mosaicTiles",
"filter.gallery.neonGlow",
"filter.gallery.notePaper",
"filter.gallery.oceanRipple",
"filter.gallery.paintDaubs",
"filter.gallery.paletteKnife",
"filter.gallery.patchwork",
"filter.gallery.photocopy",
"filter.gallery.plaster",
"filter.gallery.plasticWrap",
"filter.gallery.posterEdges",
"filter.gallery.reticulation",
"filter.gallery.roughPastels",
"filter.gallery.smudgeStick",
"filter.gallery.spatter",
"filter.gallery.sponge",
"filter.gallery.sprayedStrokes",
"filter.gallery.stainedGlass",
"filter.gallery.stamp",
"filter.gallery.sumiE",
"filter.gallery.texturizer",
"filter.gallery.tornEdges",
"filter.gallery.underpainting",
"filter.gallery.waterPaper",
"filter.gallery.watercolor",
"filter.gallery.grain",
];
/// Whether `code` is a Filter Gallery effect's id. The reference has each effect recorded as
/// its own event too (Filter › Artistic › Cutout…), carrying the same `GEfk` and settings.
pub(super) fn is_effect(code: &str) -> bool {
GALLERY.iter().any(|(c, _, _)| *c == code.trim_end())
}
/// A Filter Gallery step: the effect `GEfk` names, every key clamped or looked up, Photoshop's
/// default for what it leaves out. An unknown effect, value or key keeps the Photoshop step.
pub(super) fn gallery_from(d: &Descriptor) -> Mapped {
effect_step(d).unwrap_or(Mapped::Unsupported { harmless: false })
}
fn effect_step(d: &Descriptor) -> Option<Mapped> {
let effect = get_enum(d, "GEfk")?;
let (_, id, keys) = GALLERY.iter().find(|(code, _, _)| *code == effect)?;
let known: Vec<&str> = keys.iter().map(|k| k.key().trim_end()).chain(["GEfk"]).collect();
if !d.items.iter().all(|(k, _)| known.contains(&trimmed(k).as_str())) {
return None;
}
let mut p = Map::new();
for k in keys.iter() {
let v = match k {
G::Int(key, _, min, max, default) => Value::from(get_num(d, key).map_or(*default, |n| n.round().clamp(f64::from(*min), f64::from(*max)) as i32)),
G::Enum(key, _, table, default) => Value::from(lookup(table, &get_enum(d, key).unwrap_or_else(|| (*default).to_string()))?),
G::Bool(key, _, default) => Value::from(get_bool(d, key).unwrap_or(*default)),
G::Color(key, _) => match get_obj(d, key) {
Some(c) => Value::from(color_hex(c)?),
None => continue,
},
};
p.insert(k.param().into(), v);
}
Some(step(id, Value::Object(p)))
}
/// Every key in recorded order, Photoshop's default (which is the command's) for what the step
/// leaves out. A setting the event has no key for (the Sketch effects' pinned colours, a mask
/// target), a fraction in an integer key or a value without a Photoshop code refuses the step.
pub(super) fn gallery_to(id: &str, p: &Value) -> Option<Descriptor> {
let (code, _, keys) = GALLERY.iter().find(|(_, cmd, _)| *cmd == id)?;
let allowed: Vec<&str> = keys.iter().map(G::param).chain(["target"]).collect();
if !pixel_target(p) || !p.as_object().is_none_or(|m| m.iter().all(|(k, v)| v.is_null() || allowed.contains(&k.as_str()))) {
return None;
}
let mut d = desc("null").with("GEfk", enm("GEft", code));
for k in keys.iter() {
let v = p.get(k.param()).filter(|v| !v.is_null());
let out = match k {
G::Int(_, _, _, _, default) => {
let n = v.map_or(Some(f64::from(*default)), Value::as_f64)?;
if n.fract() != 0.0 || !(f64::from(i32::MIN)..=f64::from(i32::MAX)).contains(&n) {
return None;
}
D::Integer(n as i32)
}
G::Enum(key, _, table, default) => enm(key, v.map_or(Some(*default), |v| v.as_str().and_then(|s| lookup_back(table, s)))?),
G::Bool(_, _, default) => D::Boolean(v.map_or(Some(*default), Value::as_bool)?),
// The colour the effect replays with when the step names none is the session's, which
// the event cannot record.
G::Color(..) => D::Descriptor(color_desc(v?.as_str()?)?),
};
d = d.with(k.key(), out);
}
Some(d)
}
+1 -18
View File
@@ -290,24 +290,7 @@ const REFINE_OUTPUT: &[(&str, &str)] = &[
("selectionOutputToSelection", "selection"),
];
/// Filter Gallery effects (`GEfc` with the effect in `GEfk`): Photoshop's effect code, the
/// command, and its fields. A stack of several effects stays unsupported.
const GALLERY: &[(&str, &str, &[F])] = &[("Spt", "filter.gallery.spatter", &[F("SprR", "sprayRadius", Kind::Long), F("Smth", "smoothness", Kind::Long)])];
pub(super) const GALLERY_IDS: &[&str] = &["filter.gallery.spatter"];
pub(super) fn gallery_from(d: &Descriptor) -> Mapped {
let Some(effect) = get_enum(d, "GEfk") else { return Mapped::Unsupported { harmless: false } };
match GALLERY.iter().find(|(code, _, _)| *code == effect).and_then(|(_, id, fields)| Some((*id, fields_from(d, fields)?))) {
Some((id, p)) => step(id, Value::Object(p)),
None => Mapped::Unsupported { harmless: false },
}
}
pub(super) fn gallery_to(id: &str, p: &Value) -> Option<Descriptor> {
let (code, _, fields) = GALLERY.iter().find(|(_, cmd, _)| *cmd == id)?;
fields_to(p, fields, desc("null").with("GEfk", enm("GEft", code)))
}
pub(super) use super::steps_gallery::{GALLERY_IDS, gallery_from, gallery_to};
/// Select and Mask as Photoshop CC 2015.5 and later record it (`smartBrushWorkspace`); the
/// older Refine Edge event is [`REFINE_EDGE`], which is also what Select and Mask exports as.
+141
View File
@@ -645,6 +645,61 @@ fn every_mapped_command_exports_and_imports_back() {
("filter.distort.ripple", json!({"amount": 50, "size": "medium"})),
("filter.pixelate.crystallize", json!({"cellSize": 5})),
("filter.gallery.spatter", json!({"sprayRadius": 7, "smoothness": 15})),
("filter.gallery.accentedEdges", json!({"edgeWidth": 14, "edgeBrightness": 50, "smoothness": 15})),
("filter.gallery.angledStrokes", json!({"directionBalance": 100, "strokeLength": 50, "sharpness": 10})),
("filter.gallery.basRelief", json!({"detail": 15, "smoothness": 15, "light": "bottomLeft"})),
("filter.gallery.chalkCharcoal", json!({"charcoalArea": 20, "chalkArea": 20, "strokePressure": 5})),
("filter.gallery.charcoal", json!({"charcoalThickness": 7, "detail": 0, "lightDarkBalance": 100})),
("filter.gallery.chrome", json!({"detail": 10, "smoothness": 10})),
("filter.gallery.coloredPencil", json!({"pencilWidth": 24, "strokePressure": 15, "paperBrightness": 50})),
(
"filter.gallery.conteCrayon",
json!({"foregroundLevel": 15, "backgroundLevel": 15, "texture": "brick", "scaling": 200, "relief": 50, "light": "bottomLeft", "invert": true}),
),
("filter.gallery.craquelure", json!({"crackSpacing": 100, "crackDepth": 10, "crackBrightness": 10})),
("filter.gallery.crosshatch", json!({"strokeLength": 50, "sharpness": 20, "strength": 3})),
("filter.gallery.cutout", json!({"numberOfLevels": 8, "edgeSimplicity": 10, "edgeFidelity": 3})),
("filter.gallery.darkStrokes", json!({"balance": 10, "blackIntensity": 10, "whiteIntensity": 10})),
("filter.gallery.diffuseGlow", json!({"graininess": 10, "glowAmount": 20, "clearAmount": 20})),
("filter.gallery.dryBrush", json!({"brushSize": 10, "brushDetail": 10, "texture": 3})),
("filter.gallery.filmGrain", json!({"grain": 20, "highlightArea": 20, "intensity": 0})),
("filter.gallery.fresco", json!({"brushSize": 10, "brushDetail": 10, "texture": 3})),
("filter.gallery.glass", json!({"distortion": 20, "smoothness": 15, "texture": "canvas", "scaling": 200, "invert": true})),
("filter.gallery.glowingEdges", json!({"edgeWidth": 14, "edgeBrightness": 20, "smoothness": 15})),
("filter.gallery.graphicPen", json!({"strokeLength": 1, "lightDarkBalance": 100, "strokeDirection": "horizontal"})),
("filter.gallery.halftonePattern", json!({"size": 12, "contrast": 50, "patternType": "circle"})),
("filter.gallery.inkOutlines", json!({"strokeLength": 50, "darkIntensity": 50, "lightIntensity": 50})),
("filter.gallery.mosaicTiles", json!({"tileSize": 100, "groutWidth": 15, "lightenGrout": 10})),
("filter.gallery.neonGlow", json!({"glowSize": 24, "glowBrightness": 50, "glowColor": "#336699"})),
("filter.gallery.notePaper", json!({"imageBalance": 50, "graininess": 20, "relief": 25})),
("filter.gallery.oceanRipple", json!({"rippleSize": 15, "rippleMagnitude": 20})),
("filter.gallery.paintDaubs", json!({"brushSize": 50, "sharpness": 40, "brushType": "darkRough"})),
("filter.gallery.paletteKnife", json!({"strokeSize": 50, "strokeDetail": 1, "softness": 10})),
("filter.gallery.patchwork", json!({"squareSize": 10, "relief": 25})),
("filter.gallery.photocopy", json!({"detail": 24, "darkness": 50})),
("filter.gallery.plaster", json!({"imageBalance": 50, "smoothness": 15, "light": "bottomLeft"})),
("filter.gallery.plasticWrap", json!({"highlightStrength": 20, "detail": 15, "smoothness": 15})),
("filter.gallery.posterEdges", json!({"edgeThickness": 10, "edgeIntensity": 10, "posterization": 6})),
("filter.gallery.reticulation", json!({"density": 50, "foregroundLevel": 50, "backgroundLevel": 50})),
(
"filter.gallery.roughPastels",
json!({"strokeLength": 40, "strokeDetail": 20, "texture": "brick", "scaling": 200, "relief": 50, "light": "bottomLeft", "invert": true}),
),
("filter.gallery.smudgeStick", json!({"strokeLength": 10, "highlightArea": 20, "intensity": 0})),
("filter.gallery.sponge", json!({"brushSize": 10, "definition": 25, "smoothness": 15})),
("filter.gallery.sprayedStrokes", json!({"strokeLength": 20, "sprayRadius": 25, "strokeDirection": "horizontal"})),
("filter.gallery.stainedGlass", json!({"cellSize": 50, "borderThickness": 20, "lightIntensity": 10})),
("filter.gallery.stamp", json!({"lightDarkBalance": 50, "smoothness": 50})),
("filter.gallery.sumiE", json!({"strokeWidth": 15, "strokePressure": 15, "contrast": 40})),
("filter.gallery.texturizer", json!({"texture": "brick", "scaling": 200, "relief": 50, "light": "bottomLeft", "invert": true})),
("filter.gallery.tornEdges", json!({"imageBalance": 50, "smoothness": 15, "contrast": 25})),
(
"filter.gallery.underpainting",
json!({"brushSize": 40, "textureCoverage": 40, "texture": "brick", "scaling": 200, "relief": 50, "light": "bottomLeft", "invert": true}),
),
("filter.gallery.waterPaper", json!({"fiberLength": 50, "brightness": 100, "contrast": 100})),
("filter.gallery.watercolor", json!({"brushDetail": 14, "shadowIntensity": 10, "texture": 3})),
("filter.gallery.grain", json!({"intensity": 100, "contrast": 100, "grainType": "contrasty"})),
(
"select.refineEdge",
json!({"radius": 0, "smartRadius": false, "smooth": 2, "feather": 0.5, "contrast": 15, "shiftEdge": -100, "decontaminate": false, "output": "layerMask"}),
@@ -3175,3 +3230,89 @@ fn long_names_are_clipped_instead_of_copied_into_every_diagnostic() {
assert_eq!(imp.unsupported.len(), 50);
assert!(imp.unsupported.iter().all(|u| u.action.chars().count() == MAX_NAME_CHARS));
}
/// A Filter Gallery step as Photoshop records it: `GEfc` with the effect in `GEfk`, or the
/// effect's own event carrying the same key.
fn gallery_step(event: &str, effect: &str, d: Descriptor) -> Mapped {
let d = d.with("GEfk", enm("GEft", effect));
let event = AtnEvent::Code(event.as_bytes().try_into().unwrap());
(events::event_for(&event).unwrap_or_else(|| panic!("{effect} is unknown")).from)(&d)
}
fn gallery_params(m: Mapped) -> (String, Value) {
match m {
Mapped::Steps(mut s) if s.len() == 1 => s.remove(0),
_ => panic!("kept"),
}
}
/// The Filter Gallery effects load with Photoshop's defaults for missing keys and its clamping,
/// from `GEfc` or from the effect's own event, play, and save back as `GEfc` with every key in
/// recorded order (#10592).
#[test]
fn gallery_effect_steps_load_clamp_play_and_save_back() {
let edges = desc("null").with("EdgW", D::Integer(3)).with("EdgB", D::Integer(20)).with("Smth", D::Integer(7));
assert_eq!(
gallery_params(gallery_step("GEfc", "AccE", edges.clone())),
("filter.gallery.accentedEdges".into(), json!({"edgeWidth": 3, "edgeBrightness": 20, "smoothness": 7}))
);
// Run from its own menu item, the effect's id is the event.
assert_eq!(gallery_params(gallery_step("AccE", "AccE", edges.clone())).0, "filter.gallery.accentedEdges");
// Missing keys take Photoshop's defaults; enumerations, booleans and colours map.
assert_eq!(gallery_params(gallery_step("GEfc", "BsRl", desc("null"))).1, json!({"detail": 13, "smoothness": 3, "light": "bottom"}));
let pastels = desc("null").with("TxtT", enm("TxtT", "TxBr")).with("LghD", enm("LghD", "LDTR")).with("InvT", D::Boolean(true));
let p = gallery_params(gallery_step("GEfc", "RghP", pastels)).1;
assert_eq!((p["texture"].as_str(), p["light"].as_str(), p["invert"].as_bool()), (Some("brick"), Some("topRight"), Some(true)));
let glow = desc("null").with("Clr ", D::Descriptor(color_desc("#33cc66").unwrap()));
assert_eq!(gallery_params(gallery_step("GEfc", "NGlw", glow)).1["glowColor"], "#33cc66");
// Out-of-range values are clamped as Photoshop clamps them.
let wide = desc("null").with("EdgW", D::Integer(99)).with("EdgB", D::Integer(-5));
let p = gallery_params(gallery_step("GEfc", "AccE", wide)).1;
assert_eq!((p["edgeWidth"].as_i64(), p["edgeBrightness"].as_i64()), (Some(14), Some(0)));
// Saved back as `GEfc`, with `GEfk` first and every key in recorded order.
let item = export_item("filter.gallery.accentedEdges", &json!({"edgeWidth": 3, "edgeBrightness": 20, "smoothness": 7}), "S").unwrap();
assert_eq!(item.event.id(), "GEfc");
let mut expected = vec![(Id::new("GEfk"), enm("GEft", "AccE"))];
expected.extend(edges.items);
assert_eq!(item.descriptor.unwrap().items, expected);
// They play.
let mut s = Session::new();
s.execute("file.new", json!({"width": 24, "height": 24})).unwrap();
s.execute("filter.render.clouds", json!({})).unwrap();
for (code, effect) in [("AccE", "accentedEdges"), ("Ct ", "cutout"), ("Plst", "plaster")] {
let (id, p) = gallery_params(gallery_step("GEfc", code, desc("null")));
assert_eq!(id, format!("filter.gallery.{effect}"));
s.actions.list.push(Action::new(code, vec![(id, p)]));
let played = s.execute("actions.play", json!({"action": code})).unwrap();
assert_eq!(played["ran"], 1, "{code}: {played}");
}
}
/// What the effects cannot play keeps the Photoshop step: an unknown effect or value, a Glass
/// texture the reference gives no code for, a key the effect does not have (#10592).
#[test]
fn gallery_effect_steps_the_commands_cannot_play_are_kept() {
let kept = |m: Mapped| matches!(m, Mapped::Unsupported { harmless: false });
assert!(kept(gallery_step("GEfc", "Zzzz", desc("null"))));
assert!(kept(gallery_step("GEfc", "BsRl", desc("null").with("LghD", enm("LghD", "LDCn")))));
assert!(kept(gallery_step("GEfc", "Gls ", desc("null").with("TxtT", enm("TxtT", "TxBr")))));
assert!(kept(gallery_step("GEfc", "AccE", desc("null").with("Rds ", D::Integer(3)))));
}
/// What the event cannot hold refuses the step: a fraction in an integer key, the colours a
/// Sketch effect pinned, a value with no Photoshop code, Neon Glow without its colour (#10592).
#[test]
fn gallery_effect_steps_that_cannot_be_written_are_refused() {
for (id, params) in [
("filter.gallery.accentedEdges", json!({"edgeWidth": 2.5})),
("filter.gallery.charcoal", json!({"foreground": "#000000"})),
("filter.gallery.glass", json!({"texture": "blocks"})),
("filter.gallery.neonGlow", json!({"glowSize": 5})),
("filter.gallery.cutout", json!({"target": "mask"})),
] {
assert!(export_item(id, &params, "S").is_none(), "{id} {params} exported");
}
assert!(export_item("filter.gallery.glass", &json!({"texture": "frosted"}), "S").is_some());
}
+2 -1
View File
@@ -1,6 +1,6 @@
# File-format parity
> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-26 · **Change:** minor (TIFFs up to 300,000 px a side open, decoded a group of rows at a time into the layer, #8169; embedded AI/PDF/EPS save-back retains native format with a source-bound SVG display preview; PSD Filter Gallery: Halftone Pattern dot/circle/line settings survive PSD/PSB saves (#8940); Save for Web writes WebP, lossy or lossless, #6391; Photoshop's `MTrn` merged-transparency marker, from a layered TIFF saved with Save Transparency, marks the merged transparency, #8877; layered TIFF writes the TySh text version and descriptor in PSD big-endian order while the header, matrix, warp and bounds keep container order, #9098; layered TIFF writes Photoshop's 14-byte global layer mask, so Photoshop opens the layers instead of only the composite, #9095; legacy PSD point text placed from the layout ink box after font resolution, #6094; `.atn`: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430; `.asl` layer style libraries read and written, #1051; JPEG Options on File › Save, Save As and Save a Copy, FILE-215-19 partial (no Matte, progressive Scans or size preview); 32-bit Hue/Saturation unclipped and Colorize as Photoshop does them, Photoshop-oracle floor 190/258, #5781; JPEG Options on Save As and Save a Copy, FILE-215-19; TIFF compression for scripted saves, `tiffCompression`, #5301; the Nikon D4 white level follows the sample depth (12 and 14 bit), #5978; Apply Layer Comp action mapping, #7101; Cineon write: 10-bit gray/RGB; animated WebP frames load into video layers, #1198; Photoshop mixed-order TIFF type geometry, #4758; DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); PSD smart filters: 53 filters (39 more: Pinch, Polar Coordinates, Ripple, Spherize, Twirl, Wave, ZigZag, Invert, Blur, Surface Blur, Smart Sharpen, Diffuse, Wind, Offset, Mezzotint, Clouds, Difference Clouds, Fibers, Lens Flare and others) plus Hue/Saturation and Perspective Warp mapped both ways, #6296, #6298, #6300, #6302, #6304, #6314, #6316, #6267, #6268, FILE-215-2; large-file fixtures: a 20 MP layered PSD, a 150-layer layout, a 2 GB PSD and a 4.4 GB PSB generated at test time and round-tripped, FILE-216-2 done, #5107; earlier: smart objects keep Photoshop's Cylinder warp through re-renders and saves, #4112; PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding; Amiga IFF write: 24-plane ILBM, Save As `.iff`; PSD stores spot channels as Photoshop does, ink 0 = solid, and numbers them in 1053, #7415 split; TIFF writes and reads alpha and spot channels as extra samples with Photoshop's channel resources, PSD output unchanged, FILE-215-7, FILE-215-17's TIFF part, #7415; Photoshop's `MTrn` merged-transparency marker, from a layered TIFF saved with Save Transparency, marks the merged transparency) · **Target:** Adobe Photoshop 2026
> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-31 · **Change:** minor (`.atn`: all 47 Filter Gallery effects load, play and save back with Photoshop's keys, limits and defaults, #10592; TIFFs up to 300,000 px a side open, decoded a group of rows at a time into the layer, #8169; embedded AI/PDF/EPS save-back retains native format with a source-bound SVG display preview; PSD Filter Gallery: Halftone Pattern dot/circle/line settings survive PSD/PSB saves (#8940); Save for Web writes WebP, lossy or lossless, #6391; Photoshop's `MTrn` merged-transparency marker, from a layered TIFF saved with Save Transparency, marks the merged transparency, #8877; layered TIFF writes the TySh text version and descriptor in PSD big-endian order while the header, matrix, warp and bounds keep container order, #9098; layered TIFF writes Photoshop's 14-byte global layer mask, so Photoshop opens the layers instead of only the composite, #9095; legacy PSD point text placed from the layout ink box after font resolution, #6094; `.atn`: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430; `.asl` layer style libraries read and written, #1051; JPEG Options on File › Save, Save As and Save a Copy, FILE-215-19 partial (no Matte, progressive Scans or size preview); 32-bit Hue/Saturation unclipped and Colorize as Photoshop does them, Photoshop-oracle floor 190/258, #5781; JPEG Options on Save As and Save a Copy, FILE-215-19; TIFF compression for scripted saves, `tiffCompression`, #5301; the Nikon D4 white level follows the sample depth (12 and 14 bit), #5978; Apply Layer Comp action mapping, #7101; Cineon write: 10-bit gray/RGB; animated WebP frames load into video layers, #1198; Photoshop mixed-order TIFF type geometry, #4758; DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); PSD smart filters: 53 filters (39 more: Pinch, Polar Coordinates, Ripple, Spherize, Twirl, Wave, ZigZag, Invert, Blur, Surface Blur, Smart Sharpen, Diffuse, Wind, Offset, Mezzotint, Clouds, Difference Clouds, Fibers, Lens Flare and others) plus Hue/Saturation and Perspective Warp mapped both ways, #6296, #6298, #6300, #6302, #6304, #6314, #6316, #6267, #6268, FILE-215-2; large-file fixtures: a 20 MP layered PSD, a 150-layer layout, a 2 GB PSD and a 4.4 GB PSB generated at test time and round-tripped, FILE-216-2 done, #5107; earlier: smart objects keep Photoshop's Cylinder warp through re-renders and saves, #4112; PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding; Amiga IFF write: 24-plane ILBM, Save As `.iff`; PSD stores spot channels as Photoshop does, ink 0 = solid, and numbers them in 1053, #7415 split; TIFF writes and reads alpha and spot channels as extra samples with Photoshop's channel resources, PSD output unchanged, FILE-215-7, FILE-215-17's TIFF part, #7415; Photoshop's `MTrn` merged-transparency marker, from a layered TIFF saved with Save Transparency, marks the merged transparency) · **Target:** Adobe Photoshop 2026
**PSD Filter Gallery (#8940, 2026-10-23):** Halftone Pattern maps its size, contrast and dot/circle/line pattern as editable settings on import and export, with the reference application's descriptor keys (`HlSz`, `Cntr`, `ScrT`: `ScrD`/`ScrC`/`ScrL`). PSD/PSB round trips pass at 8/16/32 bits. This does not claim pixel equivalence for the existing renderer. Unknown or malformed settings remain verbatim on import.
@@ -148,6 +148,7 @@ Embedded SVG and PDF-compatible AI/PDF/EPS payloads can use an explicit VectorCr
| Date | Change | Summary |
|---|---|---|
| 2026-10-31 | minor | `.atn`: Filter Gallery (`GEfc` with the effect in `GEfk`, or the effect's own event) maps all 47 effects to `filter.gallery.<effect>` with every key in recorded order, out-of-range values clamped and missing keys given Photoshop's defaults (was Spatter only); Glass maps the Frosted and Canvas textures (#10592) |
| 2026-10-26 | minor | Embedded AI/PDF/EPS save-back retains native format and a separate source-bound display preview; original sources remain undoable. Native Adobe interoperability and standalone EPS/DCS remain unverified; no corpus floor or percentage changed. |
| 2026-10-22 | minor | Embedded PSD vectors gain explicit bounded SVG editor/save-back; standalone EPS/DCS and native-format fidelity remain open. |
| 2026-10-22 | minor | TIFF: flat pages up to 300,000 px a side open (was 2^30 px, about 32,768²): `codecs::TiffBands` decodes a group of rows at a time into the layer's tiles. The 117,504 × 22,464 px banner from #8456 opens in 3.3 s at 11.45 GB peak for a 10.56 GB layer; 30,000² 6.8 s / 6.43 GB → 1.1 s / 3.86 GB; 36 MP 220 → 52 ms. Layered TIFFs still decode whole (#8169) |