From 99f0b371dfade79b84dc1a03f199c63862fc0ac0 Mon Sep 17 00:00:00 2001
From: colbyn <hello@colbyn.com>
Date: Mon, 9 Mar 2020 19:09:44 -0600
Subject: [PATCH] Whoops.

---
 imager/src/api.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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<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(),