                (if-let [thumb (u/get-or-generate-thumbnail system image-params)]
                  (create-image-response thumb)
                  (error-response 404 image-params))))
+        (GET window-crop-route
+             request
+             (let [route-params (image-params request :thumbnail)
+                   image-params (assoc route-params :thumbnail-mode "window-crop"
+                                                    :height :auto)]
+               (if-let [thumb (u/get-or-generate-thumbnail system image-params)]
+                 (create-image-response thumb)
+                 (error-response 404 image-params))))
+        (GET window-crop-fixed-route
+             request
+             (let [route-params (image-params request :thumbnail)
+                   image-params (assoc route-params :thumbnail-mode "window-crop-fixed")]
+               (if-let [thumb (u/get-or-generate-thumbnail system image-params)]
+                 (create-image-response thumb)
+                 (error-response 404 image-params))))
         (GET thumbnail-route
              request
              (let [image-params (image-params request :thumbnail)]

                  :window-height size-regex}))

(def window-crop-fixed-route
  (route-compile "/:wikia/:top-dir/:middle-dir/:original/revision/:revision/window-crop/width/:width/height/:height/x-offset/:x-offset/y-offset/:y-offset/window-width/:window-width/window-height/:window-height"
                 {:wikia wikia-regex
                  :top-dir top-dir-regex
                  :middle-dir middle-dir-regex
                  :original original-regex

                  :height size-regex}))

(def window-crop-route
  (route-compile "/:wikia:image-type/:top-dir/:middle-dir/:original/revision/:revision/window-crop/width/:width/x-offset/:x-offset/y-offset/:y-offset/window-width/:window-width/window-height/:window-height"
                 {:wikia wikia-regex
                  :image-type image-type-regex
                  :top-dir top-dir-regex
                  :middle-dir middle-dir-regex
                  :original original-regex
