Chrome Extension - Take screenshot from a URL without showing the page in a tab
My chrome extension is intended to periodically take screenshot from a web URL, and update some local disk data. I know how to do it by opening a new tab and taking the screenshot of it. But is there a way to avoid a new tab being opened, or at least open a hidden tab without annoying the user and doing all this silently? I don't want to generate screenshots on a server, I need to do this all in the local machine.
I know that my suggestion won't answer the question literrally, but as I noticed there are many questiosn on the web regarding taking sceenshots or grabs of webppage periodically, I'll post it anyway. Others who stumble accross this question might benifit from the answer. If you are using Mac OSX and don't mind bypassing Chrome all together, one could use webkit2png. Obtain it either from http://www.paulhammond.org/webkit2png/http://www.paulhammond.org/webkit2png/ or use Homebrew brew install webkit2png and: webkit2png http://google.com/ The Mac version of webkit2png is derived from a Linux-original, that I've not tested. I mention this because in other questions eslewere on internet and Stack Exchange, Linux was specifically mentioned. http://khtml2png.sourceforge.net/ and / or https://github.com/AdamN/python-webkit2png/
Now I think it is more safe doing this using a NPAPI plugin which takes screenshots silently and just call its functions through my chrome extention.
How to get support tab for Google Chrome extension
How to Log to Console from Chrome Extension?
Chrome Extension - Detecting New Posts on a 4chan thread
Chrome Extension Template (Regex Filter) needed
my extension keep getting rejected and i don't know why
Can I use an alias to release a chrome extension?
Chrome Extension - make a ribbon
Minimize developer tools window while debugging a chrome extension
Getting emulated mobile view of a temporarily changed html page
Google Chrome extension communicate with Panel
Chrome Extension error: “Unchecked runtime.lastError while running browserAction.setIcon: Icon invalid."
Listen to Keyboard and Mouse Chrome Hosted App
Is it possible to catch requests from another extension?
getSelection fails on top commercial websites, how to unblock?
Chrome extension to capture video of last few minutes of active tab