am-i-responsive icon indicating copy to clipboard operation
am-i-responsive copied to clipboard

Screenshot

Open FoxUSA opened this issue 10 years ago • 7 comments

It would be cool if the app would allow you to export a screenshot.

Great idea!

FoxUSA avatar Aug 11 '14 15:08 FoxUSA

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.

justincavery avatar Sep 10 '14 10:09 justincavery

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.

jvmonjo avatar Jun 28 '16 17:06 jvmonjo

@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.

iannerney avatar Dec 14 '16 20:12 iannerney

@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.

justincavery avatar Dec 18 '16 22:12 justincavery

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

dantheother avatar Aug 01 '17 00:08 dantheother

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.

justincavery avatar Aug 01 '17 10:08 justincavery

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 :)

justincavery avatar Aug 24 '18 07:08 justincavery