Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdint committed Oct 14, 2016
1 parent 3a66954 commit c58674e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frog/responsive-images.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,20 @@
(require rackunit))

(define (image-width path)
(displayln "output: ")
(system* identify "-format" "%w" path)
(newline)
(string->number
(with-output-to-string
(λ ()
(eprintf "identify=~a path=~a\n" identify path)
;(eprintf "identify=~a path=~a\n" identify path)
(system* identify "-format" "%w" path)))
))

(module+ test
(when magick-available?
(displayln "identify:")
(system* identify "-version")
(parameterize ([top example])
(check-eq? (image-width (build-path (www/img-path) "800px-image.gif")) 800))))

Expand Down

0 comments on commit c58674e

Please sign in to comment.