diff --git a/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs b/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs index 24ddfba7b2..a757a393ef 100644 --- a/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs +++ b/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs @@ -746,6 +746,9 @@ namespace SixLabors.ImageSharp.PixelFormats private static TPixel[] GetPalette(Rgba32[] palette) { + // TODO: This should be the length only. + // We need to fix and update tests/reference images. + // If someone wants transparency they should add it to the palette. var converted = new TPixel[palette.Length + 1]; Span constantsBytes = MemoryMarshal.Cast(palette.AsSpan());