diff --git a/imager/src/api.rs b/imager/src/api.rs index 873a53d..3edea6a 100644 --- a/imager/src/api.rs +++ b/imager/src/api.rs @@ -73,7 +73,7 @@ impl OptJob { } pub fn run(self, extreme_mode: bool) -> Result<(Vec, OutMeda), ()> { let input = match self.max_size { - Some(res) if (res.width, res.height) > self.source.dimensions() => { + Some(res) if (res.width, res.height) < self.source.dimensions() => { self.source.resize(res.width, res.height, ::image::FilterType::Lanczos3) }, _ => self.source.clone(),