From a61b644e2c6e0ff7fba4f3c9ce272302421e8905 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Mon, 3 Apr 2017 22:05:50 +0200 Subject: [PATCH] Fix image rotation #12 --- resources/templates/detail.html | 2 +- src/clj/yenu/helpers/images.clj | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/templates/detail.html b/resources/templates/detail.html index eab696d..4f0d2d8 100644 --- a/resources/templates/detail.html +++ b/resources/templates/detail.html @@ -41,7 +41,7 @@
- {{ image.title }} + {{ image.title }}

diff --git a/src/clj/yenu/helpers/images.clj b/src/clj/yenu/helpers/images.clj index d4e2bec..8fc6b7a 100644 --- a/src/clj/yenu/helpers/images.clj +++ b/src/clj/yenu/helpers/images.clj @@ -33,8 +33,7 @@ ["normal" "raw" "thumbnails"])) (defn scale-thumbnail [width] - #(let [image-file % - [orig-width orig-height] (dimensions (utils/buffered-image image-file))] + #(let [image-file % [orig-width orig-height] (dimensions (utils/buffered-image image-file))] (if (< orig-width orig-height) (let [resized-img (resize-to-width image-file width) [w h] (dimensions resized-img)