The use of screenshot tool Webkit2png under Mac

Source: Internet
Author: User
Tags md5 md5 hash

Webkit2png Installation:

The code is as follows Copy Code

Brew Install Webkit2png

How to use:

The code is as follows Copy Code

Webkit2png http://www.111cn.net

3 pictures are generated after the command has been successfully executed


To view command parameters:

The code is as follows Copy Code

usage:webkit2png [Options] [http://example.net/...]

Examples:
webkit2png http://google.com/            # screengrab Google
webkit2png-w 1000-h 1000 http://google.com/# bigger screengrab of Google
Webkit2png-t http ://google.com/         # Just the thumbnail screengrab
Webkit2png-tf http ://google.com/        # just thumbnail and fullsize grab
webkit2png-o foo http:/ /google.com/     # Save Images as "foo-thumb.png" etc
Webkit2png-                               # screengrab URLs from stdin
Webkit2png-h | less                      full Documentation

Options:
 --version             Show Program ' s version number and exit
 -H,--help             Show this help message and exit

  Browser Window Options:
   -W WIDTH,--width=width
                         Initial (and minimum) width of browser (default:800)
   -H HEIGHT,--height=height
  &N bsp;                      initial (and minimum) height of browser (default:600)
   -Z ZOOM,--zoom=zoom
                         zoom level of browser, equivalent to ' zoom in ' and
     & nbsp;                  " Zoom out ' in ' View ' menu (default:1.0)

  Output size options:
   -F,--fullsize      only create fullsize Screenshot
   -T,--thumb         only create thumbnail Sreenshot
   -C,--clipped       only create clipped thumbnail Screenshot
   --clipwidth=width   WIDTH of clipped thumbnail (default:200)
 & nbsp; --clipheight=height
                         height of clipped thumbnail (default:150)
   -S SCALE,--scale=scale
                         scale factor for thumbnails (default:0.25)

Output filename Options:
-D DIR,--dir=dir directory images into
-O NAME,--filename=name
Save Images as Name-full.png,name-thumb.png etc
-M,--MD5 use MD5 hash for filename (like del.icio.us)
-D,--datestamp include date in filename

Web Page functionality:
--delay=delay delay between page load finishing and screenshot
--js=js JavaScript to execute when the window finishes loading
(Example:--js= ' document.bgcolor= "red"; ")
--no-images don ' t load images
--NO-JS Disable JavaScript Support
--transparent render output on a transparent background (requires a
Web page with a transparent background)
--user-agent=user_agent
                         Set User Agent header

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.