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

ENH: Save a static image #31

Open
bdestombe opened this issue Jan 19, 2016 · 4 comments
Open

ENH: Save a static image #31

bdestombe opened this issue Jan 19, 2016 · 4 comments

Comments

@bdestombe
Copy link

Hi @sinhrks,
Thank you for providing this Cesium wrapper. Thank you for making this available, it looks really promising.

I was wondering whether it is possible to save a static image of the js-viewer? There must be some buffer which I could catch and save, but I couldn't find it.

The goal is to make a movie and to zoom in on a particular site.

Any help/pointers would be greatly appreciated.

Kind regards,
Bas

@sinhrks
Copy link
Owner

sinhrks commented Jan 19, 2016

Thanks for the request:)

Even though Cesium.js itself doesn't have such a function, we can get image string representation using canvas.toDataUrl();

I understand it is impossible to save local file via JavaScript. Thus, we have to return it to Python namespace. This Q&A seems to say it's possible, but need some time to check the detail.

@bdestombe
Copy link
Author

Thank you for the pointers :) I'll have a look at it later this week.

@sinhrks
Copy link
Owner

sinhrks commented Jan 20, 2016

I think providing an quick screenshot API is good feature. Pls leave it open as project's task.

Appreciated if you share the code once you find the solution:)

@sinhrks sinhrks reopened this Jan 20, 2016
@bdestombe
Copy link
Author

Will do, thanks for your interest

@sinhrks sinhrks changed the title Save a static image ENH: Save a static image Jan 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants