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

image.src="thumbnail.png" doesn't work #186

Open
Fil opened this issue Feb 2, 2017 · 2 comments
Open

image.src="thumbnail.png" doesn't work #186

Fil opened this issue Feb 2, 2017 · 2 comments

Comments

@Fil
Copy link

Fil commented Feb 2, 2017

I was trying this idea for a d3.imageload method, and it works well in bl.ocks, but not in blockbuilder.
https://bl.ocks.org/Fil/0f541f8d9995738f2ad6143cc372cded

Looks like calling image.src="thumbnail.png" directly confuses blockbuilder, which has no chance of running its "local file" magic on the Image src setter like it does on XHR.

Maybe a workaround could be to use XHR instead of image.src=?

@micahstubbs
Copy link
Collaborator

can reproduce this issue.

here is the link to @Fil's example in blockbuilder

http://blockbuilder.org/Fil/0f541f8d9995738f2ad6143cc372cded
screen shot 2017-05-11 at 10 24 37 am

@micahstubbs
Copy link
Collaborator

in the js console I see the error

Not allowed to load local resource: blob:http://blockbuilder.org/4ff8cb1e-b638-43cf-b298-c81538cf9b28
screen shot 2017-05-11 at 10 26 13 am

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

No branches or pull requests

2 participants