Create thumbnail image of a website

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
lucp

Create thumbnail image of a website

Post by lucp »

Can ImageMagick be used to create a thumbnail image of a given URL?

e.g.: when the URL www.google.com is passed, it should create an image of what is displayed in a browser, when someone visits that site.

Is this possible with ImageMagick, somehow?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Create thumbnail image of a website

Post by fmw42 »

I am no expert and will defer to the IM folks, but I believe the simple answer is no. It can access and make a thumbnail of some IMAGE on a web page. For example:

convert http://www.cit.gu.edu.au/~anthony/image ... castle.gif \
-thumbnail 100x100 castle_logo.png

Image

I believe the issue is that IM has no way to capture the page or convert the HTML to an image. It can only access an existing image on an existing web page.

You need to find some other tool that will access the web page and convert it to an image or pdf format, i.e. some kind of HTML2PDF converter. Then IM can convert that to a thumbnail in jpg or any other image format.

Someone correct me if I am wrong.
Post Reply