html to image

Hello Experts,, provides thumbshots for DMOZ website. I think this feature is very cool.

I wonder if Perl can do this: Visit websites automatically and print(save) the homepage of the destination website in Image format.

I think first I need to have Perl visit those site, I know that can be realized by LWP.

Next, I wonder if I shall have perl save the homepage locally and then convert the html page into image format.

Regarding the 2nd step, I have no idea about how to achieve that. I searched Internet and did not find useful information about Convert HTML to Image in Linux.

I know there are some programs can convert HTML to PDF in linux. Can anybody give me a hint how to convert HTML to Image (GIF,PNG,JPEG) in linux?

Thanks a lot!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I think cutycapt will do what you want:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jeffrey1101Author Commented:
cutycapt is for Win32 systems. i am looking some tools for linux.

CutyCapt is a Qt program then it could be compiled in Linux too.

One idea, that would be not the best idea it's to make screen-shot of the website and save it as a image.

Best Regards
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

jeffrey1101Author Commented:
how do big websites accomplish this kind of tasks? are there any commerical software to make html to image in linux?

i am looking for an easy way to script it...
Browsershots simply has an array of PCs (virtual I would have thought but from what you can see of the task bar, they may just be donated), that simply do screenshots.  Very clumsy.

But yes, other "big" websites would use something similar to cutycapt rather than the method you describe because it needs to be rendered as it would appear in a browser.  Cutycapt uses the webkit engine popular in safari and chrome browsers.  So the output from webkit would appear the same from a browser as it would from cutycapt.

Converting html into any sort of output takes a rendering engine, and some htmltopdf converters produce very different results than you would see in a browser.

The other options are one based on gecko, the engine behind mozilla products, or somehow usurping the engine in IE.

But cutycapt is already done, and you would be able to take advantage of it.  Alternatively, you can use

Which is a python script - it still needs qt though.
jeffrey1101Author Commented:
nope, i still don't like the cutycapt idea/codes. how can i write a webkit engine myself.
You cannot simply write a webkit engine - it is on the order of writing a browser from scratch.

Use the link provided ( to write a script in python to do the screen captures using the python-webkit bindings.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.