Encoding Data In Images | Fabian Iwand | Observable
ojs
ojs
ojs
ojs
ojs
Author
Fabian Iwand
@mootari
Web dev and tinkerer.
Comments (2)
Jacob Rus
Apr 22, 2021
you may want to pass an optional width parameter through from this function to 'encode', e.g by: async function blob2canvas(blob, parameters = {}) { parameters.channels ??= 3; const data = await encode(blob, parameters);
Fabian Iwand
Apr 22, 2021
Good suggestion, thanks! Additional properties now get passed through to encode().
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
Fabian Iwand
39
Reply
Add comment
Subscribe to notifications
20
Encoding Data In Images | Fabian Iwand | Observable