Can you take a screenshot of a page using web-based tech?
-
So I want to the ability to take a screen shot of a part of a page, without using any OS tools. So the whole thing is done with AJX, JS, HTML5, etc. Then after the capture it loads it into the page. The reason is for posting to a blog. May blogs have Bookmarklets, but they rarely snif out the right image. I want a Bookmarkelt or extention that allows me to post to a blog, and while doing that I can click a "capture an image" button where I can the drag a frame around the page and click to take the shot. Similar to OS X. Then it would capture the image and put it into my post. This would be instead of screenshoting with the OS's tool, saving it to the desktop, opening it, resizing, re-saving it, the uploading it when posting. Make sense?
-
Answer:
You might be able do this with JavaScript in an extension, where the screenshot would be easy. I'll base this off my knowledge of Chrome Extensions: http://code.google.com/chrome/extensions/index.html Starting with a few assumptions: I've got a script running in my extension's background when I prompt the extension, I'm going to capture a tab with captureVisibleTab() It returns to me a dataURL maybe it will provide me with editing and image manipulation features ( woohoo HTML5 canvas! ), eventually converting back to the dataURL format I need I can use the dataURL to set as the src attribute on an img element A couple questions I need help with: are there sites that allow you to simply give a src attribute to load an image? It would require some level of text filtering/ server processing. how vulnerable to things like cross-site scripting could this be? and could you filter the text to eliminate any vulnerabilities? Another way around allowing the user to enter the img src, would be for the blog service to provide the extension, and sending the dataURL straight to their servers from your extension without allowing you to edit any text. I hope this helps answer your question, as I took the liberty of exploring a bit with the answer. Let's get some good edits in here!
Matthew Parke at Quora Visit the source
Related Q & A:
- How can I apply a filter on a page?Best solution by Stack Overflow
- How can I make a page my home page?Best solution by Yahoo! Answers
- What college courses can I take to get an A.A. paralegal degree?Best solution by pennfoster.edu
- How can we find a job vacancy from Malaysia in web designing field?Best solution by Yahoo! Answers
- Can I take a picture of myself using my webcam and how do I do it?Best solution by Super User
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.