Presets engine & built-ins #11

Closed
opened 2026-09-08 17:40:31 +01:00 by gronod · 0 comments
Owner

Summary

ProfilingPreset Codable + four built-ins. Enable the M1 preset select.

Spec refs

docs/22-settings-presets.md. #113 #114.

Scope

In: model, built-ins, apply/save/manage/delete-custom/import/export.
Out: Stage 4 apply happens in 23 but fields are stored now.

Implementation notes

Built-ins (all i1, FWA D50, seed 1, algorithm l, no_randomize: false):

  1. preset-std-rgb — 800, white 4, A4, 8-bit, 300 dpi, quality m
  2. preset-hq-cmyk — 1500, black 8, A3, 16-bit, 300 dpi, quality h, ink 320
  3. preset-draft-rgb — 400, A4, 8-bit, 150 dpi, quality l
  4. preset-ultra-rgb — 2500, white 6, black 6, A3, 16-bit, 300 dpi, quality u, -G
    Built-ins undeletable. Custom overlay by id. Names via Text only.
    Every persisted field binds both directions including TIFF DPI.
    Import: unknown keys ignored, missing required fail. No HTML.

Rewrite invariants

#113 DPI binds. #114 Text only.

Dependencies

Blocks-on: 5, 7, 9.
Unblocks: 23.

Test

  • CI/mock: round-trip; draft → 150 dpi; import schema; imported <img onerror> is inert text.
  • Hardware: N/A.

Acceptance criteria

  • Applying draft preset sets 150 dpi in the Stage 2 field.
## Summary `ProfilingPreset` Codable + four built-ins. Enable the M1 preset select. ## Spec refs docs/22-settings-presets.md. #113 #114. ## Scope In: model, built-ins, apply/save/manage/delete-custom/import/export. Out: Stage 4 apply happens in 23 but fields are stored now. ## Implementation notes Built-ins (all i1, FWA D50, seed 1, algorithm `l`, `no_randomize: false`): 1. `preset-std-rgb` — 800, white 4, A4, 8-bit, 300 dpi, quality `m` 2. `preset-hq-cmyk` — 1500, black 8, A3, 16-bit, 300 dpi, quality `h`, ink 320 3. `preset-draft-rgb` — 400, A4, 8-bit, **150 dpi**, quality `l` 4. `preset-ultra-rgb` — 2500, white 6, black 6, A3, 16-bit, 300 dpi, quality `u`, `-G` Built-ins undeletable. Custom overlay by id. Names via `Text` only. Every persisted field binds both directions including TIFF DPI. Import: unknown keys ignored, missing required fail. No HTML. ## Rewrite invariants #113 DPI binds. #114 Text only. ## Dependencies Blocks-on: 5, 7, 9. Unblocks: 23. ## Test - CI/mock: round-trip; draft → 150 dpi; import schema; imported `<img onerror>` is inert text. - Hardware: N/A. ## Acceptance criteria - [x] Applying draft preset sets 150 dpi in the Stage 2 field.
gronod added this to the M2 — Target generation & layout milestone 2026-09-08 17:40:31 +01:00
gronod added the
Priority
Medium
3
Project/ICCery-v2Feature/BackendFeature/UI
labels 2026-09-08 17:40:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#11