GithubHelp home page GithubHelp logo

Screenshot about am-i-responsive HOT 7 OPEN

justincavery avatar justincavery commented on June 9, 2024 4
Screenshot

from am-i-responsive.

Comments (7)

justincavery avatar justincavery commented on June 9, 2024 4

Great find @dantheother ! I saw someone else tweet about that today but I didn't check it out.

It works MUCH better than PhantomJS so I'll implement this as soon as I can.

from am-i-responsive.

iannerney avatar iannerney commented on June 9, 2024 2

@jvmonjo It looks like that's one of the limitations of html2canvas; it doesn't support iframe content.

"The script doesn't render plugin content such as Flash or Java applets. It doesn't render iframe content either." (Reference)

Using a tool like PhantomJS or a third-party service might be the best options available, but I'll keep doing some research. I personally think a screenshot feature would be a very useful for site demos.

from am-i-responsive.

dantheother avatar dantheother commented on June 9, 2024 1

Chromeless? Headless chrome. Not sure if it would be any better than phantomjs https://github.com/graphcool/chromeless

from am-i-responsive.

justincavery avatar justincavery commented on June 9, 2024

Screenshots would be awesome. At the moment PhantomJS takes a shot of the whole page and doesn't do a great job of pulling through the iframe content consistently enough to make it worthwhile.

I've looked at other options but they have been very browser specific. If you have any suggestions I'm all ears.

from am-i-responsive.

jvmonjo avatar jvmonjo commented on June 9, 2024

Have you tried https://html2canvas.hertzen.com/ ?
I have, but I haven't managed to take a shot of the web pages, only the frames appear.

from am-i-responsive.

justincavery avatar justincavery commented on June 9, 2024

@iannerney I had PhantomJS running at one point but it didn't render the screens within the iframe with much accuracy and you also lost your positioning details when you ran it. If you have better luck please feel free so submit a pull request.

from am-i-responsive.

justincavery avatar justincavery commented on June 9, 2024

It seems I don't have the time to do this (he says a year on).

I'm happy to accept a pull request for the feature if anyone wants a side side project :)

from am-i-responsive.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.