3.4 ImagePipelineTests golden fixtures
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -108,7 +108,7 @@ Each type lives in `src/FrameProcessor/Domain/`. Tests in `tests/FrameProcessor.
|
||||
- Steps (`SPEC.md` §3.2): decode → resize (cover/center-crop to oriented resolution) → dither against display palette → remap pixels display→device → rotate 90° CW if portrait → encode indexed PNG (`PngColorType.Palette`, smallest bit depth fitting the palette, `PaletteQuantizer(deviceColors)`).
|
||||
- Output dimensions always match the frame's *declared* `width × height` regardless of orientation.
|
||||
|
||||
### [ ] 3.4 `ImagePipelineTests` golden fixtures
|
||||
### [x] 3.4 `ImagePipelineTests` golden fixtures
|
||||
- Check in `tests/FrameProcessor.Tests/Fixtures/inputs/` (landscape.jpg, portrait.jpg, tiny-1x1.png, non-divisible.jpg).
|
||||
- Generate expected outputs once, commit under `Fixtures/expected/<algo>/<input>.png`.
|
||||
- Assert byte-equality of produced PNG vs golden.
|
||||
|
||||
Reference in New Issue
Block a user