Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

generate image (e.g. jpg) of a web page?

I want to create an image what a web page looks like, e.g. create a small thumbnail of the html + images. it does not have to be perfect (e.g. flash /javascript rendering).

I will call use the code on linux, ideally would be some java library, but a command line tool would be cool as well.

any ideas?

like image 786
JohnSmith Avatar asked Jul 23 '10 13:07

JohnSmith


People also ask

How can I save a web page as a picture?

To save an image from a website in Chrome, users can usually just right-click on it and select “Save image” from the menu.

How can I save an HTML image as a JPEG?

Open your HTML file in your browser or any viewable tool. Take a snapshot of an area with your screen capture tool (Snipping tool on Windows, for example). Click File > Save as. Select the location and select the Save as type as JPG.

How do I save a webpage as a PNG?

(On a Mac, Command+Shift+4 lets you select the portion of the screen to capture.) Then open any image processor (such as Paint in Windows) and press Ctrl+V to paste the window or desktop capture into a new file. Save the file as a JPEG, PNG, BMP, or other image format.


1 Answers

Try CutyCapt, a command-line utility. It uses Webkit for rendering and outputs in various formats (SVG, PNG, etc.).

like image 55
Andrei Avatar answered Oct 05 '22 15:10

Andrei