Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear how to use kindly/image to display a .webp file #5

Open
holyjak opened this issue Sep 24, 2024 · 4 comments
Open

Unclear how to use kindly/image to display a .webp file #5

holyjak opened this issue Sep 24, 2024 · 4 comments

Comments

@holyjak
Copy link
Member

holyjak commented Sep 24, 2024

Hello! I have supposed (k/image ["notebooks/geoplot.webp"]) to work, but it fails with

IllegalArgumentException: No matching method write found taking 3 args
at scicloj.clay.v2.util.image$write_BANG_ invoke "image.clj" 8
at scicloj.clay.v2.item$image invoke "item.clj" 224

Also, the image docs read example: https://raw.githubusercontent.com/scicloj/graphic-design/live/icons/Kindly.svg but that is not true. (k/image "string...") won't work...

Clay version: 2-beta15

@holyjak
Copy link
Member Author

holyjak commented Sep 24, 2024

I now realize I should perhaps just used hiccup...

@daslu
Copy link
Member

daslu commented Sep 24, 2024

Hi @holyjak, this is correct. At the moment, a path does not work for kind/image. But it is a good idea to extend it.

Where are you seeing the wrong image docs you mentioned above?

@holyjak
Copy link
Member Author

holyjak commented Sep 25, 2024

At scicloj.kindly.v4.kind/image:

(defn image
  "display-as: an image
example: At the moment, java BufferedImage objects are supported."
...

@behrica
Copy link
Member

behrica commented Jan 14, 2025

Have you checked here ?
https://scicloj.github.io/kindly-noted/kinds.html#image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants