Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for displaying images from a file or from a URL #258
Extends on #255 to allow displaying images from local files or URLs (embedded or linked).
val url = "https://scala-lang.org/resources/img/frontpage/scala-spiral.png" Image.fromUrl(url, width=Some("100px"), embed=true)
I think there's still potential to make this more generic in the future. Perhaps even a type class based approach that allows users to encode objects into the different mime types supported by the frontend.