PeachImage
PeachImage.ResizeOptions
ResizeOptions.Mode Property
How the requested width/height is interpreted. Defaults to Exact. Set to Max to instead treat width/height as a bounding box — the largest size that fits within it, preserving aspect ratio, without ever upscaling.
public PeachImage.ResizeMode Mode { get; init; }