当前位置:网站首页>[software] phantomjs screenshot
[software] phantomjs screenshot
2022-07-01 07:26:00 【Illegal account 247188】
Download apps phantomjs-2.1.1-windows, Decompress the package
stay bin Under the path , establish .txt, Copy below , preservation , Change the file name to demo.js
Switch to bin Enter... Under the path CMD
stay CMD function phantomjs.exe demo2.js
var page = require('webpage').create();
//viewportSize being the actual size of the headless browser
page.viewportSize = { width: 1770, height: 750 };
//the clipRect is the portion of the page you are taking a screenshot of
page.clipRect = { top: 0, left: 0, width: 1770, height: 750 };
//the rest of the code is the same as the previous example
page.open('http://220.160.53.33:8903/case/sz22058', function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
phantom.exit();
} else {
window.setTimeout(function () {
page.render(' Tumor grades .png');
phantom.exit();
}, 200); // Change timeout as required to allow sufficient time
}
});
边栏推荐
- TodoList经典案例①
- [chapter 72 of the flutter problem series] a solution to the problem that pictures taken in the flutter using the camera plug-in are stretched
- 继妹变继母,儿子与自己断绝关系,世界首富马斯克,为何这么惨?
- [classification model] Q-type cluster analysis
- C# Newtonsoft. Use of job in JSON
- Detailed explanation of weback5 basic configuration
- 【技能】创建.bat快速打开网页
- C# 读写自定义的Config文件
- Pourquoi tant de gens sont - ils devenus des gestionnaires de produits? Quelles sont les perspectives de développement des gestionnaires de produits?
- go-etcd
猜你喜欢

Why did grayscale fall from the altar?
![[lingo] solve quadratic programming](/img/4d/3f7de69943f29a71c4039299c547f7.png)
[lingo] solve quadratic programming

图像风格迁移 CycleGAN原理
![[image processing] image histogram equalization system with GUI interface](/img/3b/52c241c48c91dd58300af58478129e.png)
[image processing] image histogram equalization system with GUI interface
![[Electrical dielectric number] electrical dielectric number and calculation considering HVDC and facts components](/img/7c/2b1d4797f367cced51f36e8a1bb199.png)
[Electrical dielectric number] electrical dielectric number and calculation considering HVDC and facts components

组件的自定义事件②

Operation and maintenance management system, humanized operation experience

Fix the problem that the AI video intelligent platform easycvr device video cannot be played

1286_ Implementation analysis of task priority setting in FreeRTOS

Will Internet talents be scarce in the future? Which technology directions are popular?
随机推荐
Open source! Wenxin large model Ernie tiny lightweight technology, accurate and fast, full effect
ctfshow-web355,356(SSRF)
ctfshow-web351(SSRF)
Apple账号密码自动填充
广发证券开户是安全可靠的么?怎么开广发证券账户
2022电工(中级)复训题库及答案
1286_FreeRTOS的任务优先级设置实现分析
ONES 创始人王颖奇对话《财富》(中文版):中国有没有优秀的软件?
[lingo] find the shortest path problem of undirected graph
华为ModelArts训练Alexnet模型
I bet on performance and won the CTO of the company. I want to build Devops platform!
C# Newtonsoft. Use of job in JSON
ctfshow-web354(SSRF)
2022制冷与空调设备运行操作国家题库模拟考试平台操作
LeetCode+ 71 - 75
LeetCode+ 71 - 75
2022年茶艺师(中级)复训题库及答案
运维管理系统,人性化操作体验
她就是那个「别人家的HR」|ONES 人物
2022危险化学品经营单位主要负责人试题及模拟考试