Browse Source

Update TestIccProfiles.cs

pull/1567/head
James Jackson-South 1 year ago
parent
commit
3cd7d67481
  1. 8
      tests/ImageSharp.Tests/ColorProfiles/Icc/TestIccProfiles.cs

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

@ -22,13 +22,7 @@ internal static class TestIccProfiles
public static Wacton.Unicolour.Configuration GetUnicolourConfiguration(string file)
=> UnicolourConfigurationCache.GetOrAdd(
file,
f =>
{
string p = GetFullPath(f);
bool b = File.Exists(p);
var profile = new Profile(p);
return new Wacton.Unicolour.Configuration(iccConfiguration: new(GetFullPath(f), Intent.Unspecified));
});
f => new Wacton.Unicolour.Configuration(iccConfiguration: new(GetFullPath(f), Intent.Unspecified)));
private static string GetFullPath(string file)
=> Path.GetFullPath(Path.Combine(".", "TestDataIcc", "Profiles", file));

Loading…
Cancel
Save