varpage=require('webpage').create();varargs=require('system').args;varurl=args[1];varfilename=args[2];varcliptop=args[3];varclipleft=args[4];varclipwidth=args[5];varclipheight=args[6];//letf:0,//width:1000,//height:410page.viewportSize={width:1000,height:480};page.clipRect={top:cliptop,left:clipleft,width:clipwidth,height:clipheight};page.open(url,function(){window.setTimeout(function(){page.render(filename);phantom.exit();},15000);});