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?
To save an image from a website in Chrome, users can usually just right-click on it and select “Save image” from the menu.
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.
(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.
Try CutyCapt, a command-line utility. It uses Webkit for rendering and outputs in various formats (SVG, PNG, etc.).
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