Re: How to create screen capture of website
On Sun, 16 Jun 2013 04:04:07 -0700 (PDT), codingdaddy
<codingdaddy@gmail.com> declaimed the following:
>
>That is why I have this question "How do I create a png image of a website
>given url".
>
In one respect, this is a meaningless question.
Web sites don't have fixed width/height, etc. (as originally designed,
how a page displayed was left to the browser -- HTML only identified "what"
an entity was: paragraph, header, link, image, etc.).
Longer answer: you write a "browser" which renders the page as an image
in memory, then save the rendered image. Or you automate a browser and
somehow activate a screen/window grab operation to save the image in a
clipboard that can then be pasted elsewhere.
Are you planning to grab only the top of a page (if the page is longer
than most screens: http://home.earthlink.net/~baron.wulfraed/unicorn.htm
won't fit on a screen, even with the browser set to maximized -- and I run
high resolution screens, 1200 pixels tall, not the common 1080 height of
16:9 HDTV resolution. If you want the full page, not truncated, you'll have
to dynamically resize the drawing region that you render the page into.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home