How to get a screen shot of a web page from a url - screenshot

Im trying to figure out how to let a user enter a website or link on my webpage and then based on that url I would like to display a screenshot of that link sort of similar to when you post a video link from youtube on face book it grabs a small image. Ive seen some services but Id rather implement something myself on my server.

I've used programs like webkit2png in the past, but it's mac-only. I have never used it but this looks like a more generic linux equivalent:
http://khtml2png.sourceforge.net/
I presume your server is running some flavor of linux; you might have to jump through some hoops to install Qt and ImageMagick if you don't have them already or if you are on a shared server.
For the record, although it says that it can't "scale the output image" in the newer versions of this library, that's a very straightforward operation you can apply with many other libraries/programs.

Related

How to make the last item of a list always in the same place (the rest going up), to show images instead of URLs, to make an app based on a website?

Please can you answer the following questions?
I'm currently using
- NodeJS - Express
- Socket.IO
- JQuery
- W3.CSS
I have a chat web/mobile (mobile just means responsive) app using the same website, but it is not enough. The mobile version should be able to notify and be as the native versions (fast and responsive). How could I do that?
How to make a native app based on a website?
My webchat looks like a mix of IRC and IM messengers. I'd like it to be full IM : the messages appear by making the window going down, and I prefer that the messages go up.
How to arrange a ul list (li can be infinite) so the last and new message stays the last and the rest goes up (eventually hides too)?
How could I enable the direct transmission of images in which we don't have to click on a link but we directly see it? I saw one document on it but it looked old.
How to directly see images by entering an image URL?
I'd also like it to be pretty fast!
I might use postgres as database with Heroku.
You can find an appendice of the app here : https://njstesting.herokuapp.com (free testing plan - I'm a teenager)
Thank you for all your attention :-)

Server Side Webpage Screenshots - Windows Server

ive written a script that configures a bunch of items and displays it on screen using javascript. Now we are in the process of trying to take a screenshot of it via a browser. This particular webpage is for use by the general public, and once the screenshot is taken, we post the photo to facebook for the user.
Ive trialled a number of services that take screenshots but they are all pretty slow, mostly averaging around 25 - 25 seconds to take the shot and have it saved on the server. All our users would leave in this time =(
Ive also tried the application from http://www.websitescreenshots.com/ and whilst its brilliant i cant get it to render our page with the js on it.
I have found this to be a common thing amongst screenshot software, and ive even gone through to trying to take advantage of the free webservice from Wordpress MShots.
Whilst it took photos nicely you could never tell how long it was going to take and not good enough for a production website.
So can anyone recommend a utility that will allow screenshots of URL's accessible via a command line that can render JS and also runs on windows server 2008 ? I am having no luck tryning to source an app that does this..

Using URL Link To Send Params To VB.NET App

What I am looking for is using a URL link such as "MyApp://param=value" or "MyApp://mysite.com/?params=value" to open my application and read the params using GET. I do not want to use the click once method to do this, because I want the application to load up without the starting up bar at the topleft. I know it could be done but I could not find anywhere to do it at. You can see an example used over at curse.com where they use a link like "curse://curse.com/?etc=etc" to launch their app and download the item. Another example is with Ventrilo where you can use "ventrillo://etc" links to start vent and connect to a server. The reason I want this is because I plan to use it to give my customers a way to give their clients a way to connect to their servers with my software using a simple URL.
Since the question is about VB.NET, I’m assuming you are targeting Windows.
In that case, this can be done by registering a custom URL handler via the Windows registry.
Other operating systems have different ways of achieving this.

Crossbrowser Upload progress meter (without SWFUpload please)

Im trying to make a upload progress meter that works on ALL modern browsers in all operative systems (hence that I don't want to use SWFUpload, since all the demo pages fail in my computer, since I use Ubuntu).
Could someone give me please a hint where to look? I've googled the internet up and down without a solution...
Im running a server with PHP, but APC didnt work, apparently doesnt play nice with lightppd. Also I don't know Perl, so I'd rather not having to learn it for this.
I did this using ASP.NET not long ago. Basically, there's no pure HTML way to do it. What needs to be done, is to make changes on your server (in ASP.NET, I wrote an HttpModule to cache the current status of the upload - for PHP, Ruby, etc, there's likely similar methods to plug into).
Then on the client side - when a file was being uploaded, I made periodic ajax calls to the server to access the upload data that the server was caching. Then, using javascript, I would update whatever HTML progress bar.
You can see plUpload : http://www.plupload.com/
If you're using AJAX, you could go with this solution. And here are a few using jQuery.

Getting started with Firefox API

I'm working on an university project where I need to write a program that can access Firefox internal data & events to create stats about user actions. What I would like to have access to is:
have access to HTTP and HTML data
be able to listen to HTTP + HTML + Client side scripting events
I've already done a bit a research and found few interesting things (XPCom, Mozilla ActiveX, MozRepl, directly putting Javscript files into Firefox software folder...) but my concern is to start working on this project whilst having missed something and ending up using the wrong tool.
Can you provide me with the name of the tools you know with a brief description of what they do, and what their pros and cons are?
Hopefully with enough replies we'll be able to consolidate all the useful info given into 1 authoritative edit/post/comment on this matter.
Thanks.
I believe the best way to do so will be writing your own Firefox extension. This tutorial is the best one I found to get one started with extension developement.