Sony RAW Styled JPEG
Run the exact RAW-to-styled-JPEG pipeline that was validated in this workspace.
Core Idea (First Principles)
- •RAW decode quality is foundational: a bad decode cannot be fixed later.
- •Styling must be content-aware, not one-size-fits-all.
- •EXIF is part of the asset and must be preserved.
- •Validation is mandatory: trust output only after metadata checks pass.
Bundled Files
- •
scripts/raw_to_styled_jpeg.swift: Core converter and style engine. - •
scripts/verify_datetime_original.swift: EXIF timestamp validator. - •
scripts/run_exact_pipeline.sh: Deterministic compile -> convert -> validate. - •
scripts/run_interactive_pipeline.sh: Prompt-driven workflow. - •
references/PIPELINE_FIRST_PRINCIPLES.md: Visual, simple-language guide with ASCII diagrams.
Required User Prompts (Interactive)
Before starting conversion, ask:
- •Input folder path containing
.ARWfiles. - •Output folder name inside that input folder.
- •Scope: full batch (
all) or sample (sample). - •If sample: number of files (
N). - •Whether to print representative output image paths.
- •Confirmation that EXIF preservation is required.
Defaults if user does not specify:
- •Input folder: current working directory.
- •Output folder:
codex_output. - •Scope:
all. - •Sample size:
24. - •Preview paths:
yes. - •EXIF preservation:
yes.
Commands
Exact deterministic run:
- •
bash scripts/run_exact_pipeline.sh . codex_output
Interactive run:
- •
bash scripts/run_interactive_pipeline.sh
When installed in Codex at user scope, an absolute invocation is also valid:
- •
bash "${CODEX_HOME:-$HOME/.codex}/skills/sony-raw-styled-jpeg/scripts/run_exact_pipeline.sh" . codex_output
Non-Negotiable Settings
- •Compile with Swift module cache at
/tmp/swift-module-cache. - •Keep style classifier thresholds unchanged for exact replication.
- •Export JPEGs with lossy quality
1.0. - •Preserve source metadata payload in every output JPEG.
- •Require EXIF validator
RESULT: PASS.
Output Contract
Always report:
- •Number of source
.ARWfiles discovered. - •Number of output
.jpgfiles written. - •Style distribution from
style_report.csv. - •EXIF validation pass/fail and mismatch counts.
- •1-3 output image paths if preview was requested.
Operational Note
If RAW decode fails or output dimensions are invalid in restricted environments, rerun with permissions that allow full CoreImage RAW decode path.