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

Easily create fallback images for interactive graphics #18

Open
alykat opened this issue Jan 16, 2014 · 5 comments
Open

Easily create fallback images for interactive graphics #18

alykat opened this issue Jan 16, 2014 · 5 comments

Comments

@alykat
Copy link
Member

alykat commented Jan 16, 2014

Maybe something like:
https://github.com/kevinschaul/depict
(recommended by Tyler)

Won't need it for everything in the dailygraphics rig — probably just the D3 things.

@TylerFisher
Copy link
Contributor

I think depict pretty well covers what we want to do. It would just add some more stuff you have to install when you get the repo going (phantomjs through homebrew and depict through npm). I'm not aware of anything Python-based that would also do this so we could just add to requirements.

Basically, this will require a headless browser, and phantomjs is the standard there. I think installing depict and adding that to the render function is the best course of action.

@onyxfish
Copy link
Contributor

Thought this might be a quick thing to implement, but sadly...

[truncated]

/Users/onyxfish/.node-gyp/0.12.0/deps/v8/include/v8.h:816:13: note: declared protected
      here
  V8_INLINE HandleScope() {}
            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

@onyxfish
Copy link
Contributor

Note for posterity: Had the bright idea to try html2canvas from the parent. It doesn't work. iFrames don't render at all and apparently there are also issues with SVG rendering.

onyxfish added a commit that referenced this issue Jun 19, 2015
@onyxfish
Copy link
Contributor

Mostly working on branch preview. Remaining issues:

  • WebFonts aren't loading.
  • Logo needs composited in.

@onyxfish
Copy link
Contributor

WebFonts are now working with slimer, but the slimer install process is a bit of a mess. :/

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

3 participants