parse_target_size

Function parse_target_size 

Source
pub fn parse_target_size(spec: &str) -> Result<TargetSize, String>
Expand description

Parse a --target-size argument: WIDTHxHEIGHT (e.g. 18x30) for a rectangle, or a bare number (e.g. 12) for a circular radius fallback. Case-insensitive on the x separator.