We'll want this in a moment.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
#[derive(Serialize,Copy,Clone,Debug)]
struct Base64Meta {
- width: u32,
- height: u32,
+ width: f64,
+ height: f64,
ctype: &'static str,
}
|e| LE::BadBundle(format!("{}: image examination failed: {}",
zfname, e)))?;
- let render = Base64Meta { width, height, ctype };
+ let render = Base64Meta {
+ width: width.into(),
+ height: height.into(),
+ ctype,
+ };
base64_usvg(zfname, input, output, &render)?;
}