Browse Source

Fix corrupted JapanColor2003WebCoated.icc

pull/1567/head
Wacton 1 year ago
parent
commit
8b70718e65
  1. 8
      tests/ImageSharp.Tests/ColorProfiles/Icc/ColorProfileConverterTests.Icc.cs
  2. BIN
      tests/ImageSharp.Tests/TestDataIcc/Profiles/JapanColor2003WebCoated.icc

8
tests/ImageSharp.Tests/ColorProfiles/Icc/ColorProfileConverterTests.Icc.cs

@ -90,13 +90,13 @@ public class ColorProfileConverterTests(ITestOutputHelper testOutputHelper)
} }
Channels channels = new(input.Select(value => (double)value).ToArray()); Channels channels = new(input.Select(value => (double)value).ToArray());
if (channels.Error != null) Unicolour source = new(sourceConfig, channels);
Unicolour target = source.ConvertToConfiguration(targetConfig);
if (target.Icc.Error != null)
{ {
testOutputHelper.WriteLine($"Error during Unicolour ICC conversion of supported profile: {channels.Error}"); testOutputHelper.WriteLine($"Error during Unicolour ICC conversion of supported profile: {target.Icc.Error}");
} }
Unicolour source = new(sourceConfig, channels);
Unicolour target = source.ConvertToConfiguration(targetConfig);
return target.Icc.Values; return target.Icc.Values;
} }

BIN
tests/ImageSharp.Tests/TestDataIcc/Profiles/JapanColor2003WebCoated.icc

Binary file not shown.
Loading…
Cancel
Save