mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
#47: warn if dimensions cannot be established.
This commit is contained in:
parent
d2e20162ef
commit
b191f40d05
1 changed files with 3 additions and 1 deletions
|
|
@ -110,7 +110,9 @@
|
||||||
(catch Exception x (.getMessage x)))]
|
(catch Exception x (.getMessage x)))]
|
||||||
(if dimensions
|
(if dimensions
|
||||||
(assoc slide :w (first dimensions) :h (nth dimensions 1))
|
(assoc slide :w (first dimensions) :h (nth dimensions 1))
|
||||||
slide)))
|
(do
|
||||||
|
(log/warn "Failed to fetch dimensions of image " url)
|
||||||
|
slide))))
|
||||||
|
|
||||||
;; (slide-merge-dimensions
|
;; (slide-merge-dimensions
|
||||||
;; {:title "Frost on a gate, Laurieston",
|
;; {:title "Frost on a gate, Laurieston",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue