当前位置:网站首页>[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
}
});
边栏推荐
- [Electrical dielectric number] electrical dielectric number and calculation considering HVDC and facts components
- ctfshow-web354(SSRF)
- Stepsister becomes stepmother, son breaks off relationship with himself, and musk, the world's richest man, why is it so miserable?
- [软件] phantomjs屏幕截图
- Inftnews | from "avalanche" to Baidu "xirang", 16 major events of the meta universe in 30 years
- [classification model] Q-type cluster analysis
- Challenges faced by operation and maintenance? Intelligent operation and maintenance management system to help you
- Eigen矩阵运算库快速上手
- Is it safe and reliable for Huatai Securities to open an account? How to open Huatai Securities Account
- 【目标检测】目标检测界的扛把子YOLOv5(原理详解+修炼指南)
猜你喜欢

Redisson uses the full solution - redisson official document + comments (Part 2)

运维管理有什么实用的技巧吗

2022年茶艺师(中级)复训题库及答案

1286_ Implementation analysis of task priority setting in FreeRTOS

Félicitations pour l'inscription réussie de wuxinghe
![[FPGA frame difference] FPGA implementation of frame difference target tracking based on vmodcam camera](/img/0f/045957961725716435439316078347.png)
[FPGA frame difference] FPGA implementation of frame difference target tracking based on vmodcam camera

MySQL and redis consistency solution

Redisson uses the complete solution - redisson official documents + Notes (Part 1)

JSP - 分页

Inftnews | from "avalanche" to Baidu "xirang", 16 major events of the meta universe in 30 years
随机推荐
长路漫漫、技术作伴
[programming training] delete public characters (hash mapping) + team competition (greedy)
Summary of the concept and advantages of 5g massive MIMO
[image processing] image histogram equalization system with GUI interface
Challenges faced by operation and maintenance? Intelligent operation and maintenance management system to help you
iNFTnews | 从《雪崩》到百度“希壤”,元宇宙30年的16件大事
Browser local storage
【R语言】年龄性别频数匹配 挑选样本 病例对照研究,对年龄性别进行频数匹配
Understanding of Turing test and Chinese Room
JSP - 分页
LeetCode+ 71 - 75
浅谈CVPR2022的几个研究热点
Programming examples of stm32f1 and stm32subeide infrared receiving and decoding of NEC protocol
华泰证券开户是安全可靠的么?怎么开华泰证券账户
kdtree(kd树)笔记
Redisson uses the complete solution - redisson official documents + Notes (Part 1)
2022广东省安全员A证第三批(主要负责人)特种作业证考试题库模拟考试平台操作
Autosar 学习记录(1) – EcuM_Init
1286_ Implementation analysis of task priority setting in FreeRTOS
C# 读写自定义的Config文件