re-indent

This commit is contained in:
MitchMarq42 2023-10-14 13:08:58 -08:00
parent 1bbba60b20
commit 92bb4ca230

View File

@ -17,15 +17,15 @@
(defun get-dimensions (image)
"Return the dimensions of IMAGE as cons `(x . y)'."
(--> image
(shell-command-to-string (format "file %s" it))
(split-string it "," nil " ")
(--filter (string-match-p (rx (+ num) (? " ") "x" (? " ") (+ num)) it) it)
(--remove (string-match-p "density" it) it)
(car it)
(split-string it "x" nil " ")
(--map (string-to-number it) it)
(cons (car it) (cadr it)))
(--> image
(shell-command-to-string (format "file %s" it))
(split-string it "," nil " ")
(--filter (string-match-p (rx (+ num) (? " ") "x" (? " ") (+ num)) it) it)
(--remove (string-match-p "density" it) it)
(car it)
(split-string it "x" nil " ")
(--map (string-to-number it) it)
(cons (car it) (cadr it)))
)
;; select the background image