Platform
Solutions
Resources
Pricing
Sign in
Sign up
Fil
Vocateur.
Workspace
Fork
Public
2 collections
By
Fil
Edited
Mar 23, 2023
1 fork
10 stars
1
Insert cell
Insert cell
thumbhash
=
import
(
"thumbhash@0.1"
)
Insert cell
a
=
thumbhash
.
rgbaToThumbHash
(
100
,
(
im
.
length
/
100
)
>>
2
,
im
)
Insert cell
<
img
src
=
${thumbhash.thumbHashToDataURL(a)}
>
Insert cell
im
=
{
const
context
=
DOM
.
context2d
(
100
,
80
,
1
)
;
context
.
drawImage
(
source
,
0
,
0
,
100
,
80
)
;
return
context
.
getImageData
(
0
,
0
,
100
,
80
)
.
data
;
}
Insert cell
Insert cell
source
=
FileAttachment
(
"Jean-Claude-Vendome.jpg"
)
.
image
(
{
width
:
100
}
)
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Fork
View
Export
Listed in...
Image
Fil
Hello
Fil
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
thumbhash
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
a
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
im
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
source
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML