pub fn encode( text: &str, format: &str, path: Option<&Path>, ) -> Result<Value, CliError>
Encode text to PNG/SVG/terminal and optional path.