Skip to content

Commit

Permalink
Whoops.
Browse files Browse the repository at this point in the history
  • Loading branch information
colbyn committed Mar 10, 2020
1 parent 7eb42a2 commit 99f0b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imager/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl OptJob {
}
pub fn run(self, extreme_mode: bool) -> Result<(Vec<u8>, 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(),
Expand Down

0 comments on commit 99f0b37

Please sign in to comment.