swift-snapshot-testing
swift-snapshot-testing copied to clipboard
Normalize image color spaces before comparison
Overview
Use the sRGB converted snapshot when doing the perceptual comparison. This reduces the chances of failures when comparing snapshots using different color spaces.
This colorspace normalization technique was originally introduced in https://github.com/pointfreeco/swift-snapshot-testing/pull/446 and this PR extends it to both the reference and new images when performing perceptual image comparison.
Unit tests were added to verify that images in the P3 and sRGB colors spaces match after colorspace normalization.
Related Issues
- https://github.com/pointfreeco/swift-snapshot-testing/issues/313#issuecomment-1258535742
Hey. Should we merge this PR after the rebase? Looks like it was approved, but never merged
@stephencelis Please, is there a plan to merge this?
@stephencelis I will bump this topic cause there was no answer from few months
Could you provide information what is blocking you from merging it into the main branch?
It will be nice feature/fix that could reduce lots of issues.
Thanks!
+1 please merge :)