Fork me on GitHub
#clerk
<
2023-11-13
>
genmeblog10:11:15

How to embed local gif file? clerk/image displays only first frame.

genmeblog10:11:43

When I add instead: (clerk/html [:img {:src "notebooks/images/vegas.gif"}]) strange things happen. After clerk/show! I'm getting:

Clerk evaluated 'jar:file:/home/tsl/.m2/repository/io/github/nextjournal/clerk/0.15.957/clerk-0.15.957.jar!/nextjournal/clerk/index.clj' in 83.776813ms.
And browser shows

genmeblog10:11:14

without clerk/html everything is rendered (no animated gifs though)

genmeblog10:11:19

minimal notebook (inside fastmath project):

(ns simple
  (:require [nextjournal.clerk :as clerk]))


(clerk/image "notebooks/images/vegas.gif")

#_(clerk/html [:img {:src "notebooks/images/vegas.gif"}])