I have a Rails app that I want to capture a screenshot of a webpage when the user enters a url.
Is it possible to do this in Rails (is there any gem that would do this?)
If not, are there any reliable services that generate live screenshots
On many Android devices, you can capture a screenshot with a key-combination: Simultaneously press-and-hold Power and Volume-down. You can also capture a screenshot with Android Studio as follows: Run your app on a connected device or emulator. If using a connected device, be sure you have enabled USB debugging.
All these commands are controlled by our operating system, and we can't disable or block them in the browser using HTML/CSS/JavaScript. So, we can't prevent users from taking screenshots.
Ø Open the Restricted app where the screenshot will be taken. Ø Select the Settings icon that looks like a toolbox from the floating button on your screen. Ø Select the Screenshot option from the drop-down menu and shut the drop-down menu. Ø A second floating button, a left-hand camera icon, will appear on your screen.
You can use ALT + ENTER from output window of C ++ then you will come out of full screen.
I use IMGKit gem for that: https://github.com/csquared/IMGKit
Related topic: How to respond_to PNG or JPG in Rails and generate image from HTML?
ScreenCap gem which uses PhantomJS under the hood. Grab whole pages or just specific divs, or even exact x y coordinates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With