Interface IIconProcessor
Optional pre-processing applied to icon bytes before they are stored — e.g. downscaling an oversized
image so it fits the configured limits. The built-in store runs the registered processor before
validating/persisting. Register an implementation (e.g. AddThargaImageProcessing from the
Tharga.Team.Images package) to enable it; without one, icons are stored as-is.
public interface IIconProcessor
Methods
ProcessAsync(byte[], string, CancellationToken)
Process the image, returning the (possibly transformed) bytes and content type. Implementations should return the input unchanged when no processing applies (e.g. an unsupported format).
Task<IconContent> ProcessAsync(byte[] data, string contentType, CancellationToken cancellationToken = default)
Parameters
databyte[]contentTypestringcancellationTokenCancellationToken