PeachImage
PeachImage.DecoderOptions
DecoderOptions.MaxExpansionRatios Property
Per-format overrides of MaxExpansionRatio, keyed by FormatName ("jpeg", "png",
"webp", ..., compared ignoring case). A format with an entry uses it instead of MaxExpansionRatio; every other
format falls back to MaxExpansionRatio, or is unlimited when that is null. The ratio is defined at
MaxExpansionRatio. For example new Dictionary<string, double> { ["jpeg"] = 200, ["png"] = 30_000 }.
public System.Collections.Generic.IReadOnlyDictionary<string,double>? MaxExpansionRatios { get; init; }
Property Value
System.Collections.Generic.IReadOnlyDictionary<System.String,System.Double>
Exceptions
System.ArgumentOutOfRangeException
An entry is not a positive number (checked when the limits are applied).