Zoomable image | Alain Roan | Observable
ojs
ojs
ojs
Author
Alain Roan
@alainro
DataViz, Dashboard, KPI, Observable mentor
Comments (1)
Fabian Iwand
Nov 2, 2021
You'll probably want to prepend `await image.decode();` here to ensure that the image has been fully loaded. Otherwise drawing it onto the canvas will fail.
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
Explore
Forum
Bluesky
YouTube
X
6
Follow
Follow
Zoomable image | Alain Roan | Observable