Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
waacton committed Oct 7, 2024
1 parent 4013df2 commit ad28462
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ var noRed = colour.SimulateProtanopia();

### Use ICC profiles for CMYK conversion
Device-dependent colour prints of 4 (e.g. FOGRA39 CMYK) or more (e.g. FOGRA55 CMYKOGV) are supported through ICC profiles.
If there is no ICC profile, or if the profile is incompatible, naive conversion for uncalibrated CMYK is used instead.
If no ICC profile is provided, or if the profile is incompatible, naive conversion for uncalibrated CMYK is used instead.
```c#
using Wacton.Unicolour.Icc;

Expand Down
2 changes: 1 addition & 1 deletion Unicolour.Readme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ var noRed = colour.SimulateProtanopia();

### Use ICC profiles for CMYK conversion
Device-dependent colour prints of 4 (e.g. FOGRA39 CMYK) or more (e.g. FOGRA55 CMYKOGV) are supported through ICC profiles.
If there is no ICC profile, or if the profile is incompatible, naive conversion for uncalibrated CMYK is used instead.
If no ICC profile is provided, or if the profile is incompatible, naive conversion for uncalibrated CMYK is used instead.
```c#
using Wacton.Unicolour.Icc;

Expand Down
2 changes: 2 additions & 0 deletions Unicolour/Icc/Channels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ internal static Channels FromXyz(Xyz xyz, IccConfiguration iccConfig, XyzConfigu
{
var profile = iccConfig.Profile!;
var intent = iccConfig.Intent;
// TODO: try/catch in case ICC profile data is corrupted?
var channels = profile.FromXyz(xyz, xyzConfig, intent);
return new Channels(channels)
{
Expand All @@ -32,6 +33,7 @@ internal static Xyz ToXyz(Channels channels, IccConfiguration iccConfig, XyzConf
var profile = iccConfig.Profile!;
var intent = iccConfig.Intent;
channels.ColourSpace = profile.Header.DataColourSpace;
// TODO: try/catch in case ICC profile data is corrupted?
var xyz = profile.ToXyz(channels.Values, xyzConfig, intent);
return xyz;
}
Expand Down
2 changes: 1 addition & 1 deletion Unicolour/Icc/Clut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private Array InitialiseClutGrid(double[] values)
/*
* finds the section of the CLUT grid that is bound by the indexes of the input channels
* where each coordinate that forms the bounding area is an array of output channel values
* then interpolates within that grid section to find a precise values for the output channels
* then interpolates within that grid section to find a precise value for the output channels
* particularly tricky because it is generalised to N-dimensions
* (Fogra39 CMYK -> LAB has a 4D CLUT grid, Fogra55 CMYKOGV has a 7D CLUT grid)
* ----------
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ var noRed = colour.SimulateProtanopia();
### Use ICC profiles for CMYK conversion
Device-dependent colour prints of 4 (e.g. FOGRA39 CMYK) or more (e.g. FOGRA55 CMYKOGV) are supported through ICC profiles.
If there is no ICC profile, or if the profile is incompatible, naive conversion for uncalibrated CMYK is used instead.
If no ICC profile is provided, or if the profile is incompatible, naive conversion for uncalibrated CMYK is used instead.
```c#
using Wacton.Unicolour.Icc;
Expand Down
2 changes: 1 addition & 1 deletion docs/README_us.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ var noRed = color.SimulateProtanopia();
### Use ICC profiles for CMYK conversion
Device-dependent color prints of 4 (e.g. FOGRA39 CMYK) or more (e.g. FOGRA55 CMYKOGV) are supported through ICC profiles.
If there is no ICC profile, or if the profile is incompatible, naive conversion for uncalibrated CMYK is used instead.
If no ICC profile is provided, or if the profile is incompatible, naive conversion for uncalibrated CMYK is used instead.
```c#
using Wacton.Unicolour.Icc;
Expand Down

0 comments on commit ad28462

Please sign in to comment.