Method for improving webpage screenshot definition based on WEB technology

A high-definition, webpage technology, applied in the field of screenshots, can solve problems such as pixel loss, low calculation accuracy, and pixel distortion

Active Publication Date: 2021-05-11
THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in actual operation, webpage screenshots often have pixel distortion, low definition, and inability to accurately draw the original webpage content. There are still many problems in rendering style, rendering level, external resources and special attribute processing: 1) For CSS (Cascading Style Sheets, Cascading Style Sheets) attribute styles such as shadows, special borders, element scaling, and arcs have low calculation accuracy, resulting in fuzzy screenshot results; 2) For deeply nested DOM (Document Object Model, Document Object Model) Nodes are prone to pixel loss in pixelized calculations, resulting in black screenshot results; 3) For resources such as externally linked images and scripts, cross-domain access is not supported or execution is restricted, resulting in incomplete screenshots

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for improving webpage screenshot definition based on WEB technology
  • Method for improving webpage screenshot definition based on WEB technology
  • Method for improving webpage screenshot definition based on WEB technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The object of the present invention is to provide a method based on WEB technology to improve the clarity of webpage screenshots, the method clones the DOM structure of the page to be intercepted by obtaining the HTML element content of the page to be intercepted; the target node to be intercepted in the DOM structure , sub-nodes and corresponding style and level requirements are analyzed and judged; if there is no CSS style requirement in the DOM structure that affects the accuracy of the screenshot, it will be drawn to the canvas with different priorities according to the style and level relationship of the node element to be intercepted ;Otherwise, if there is a cross-domain resource in the content of the webpage to be intercepted or the execution script does not allow remote access to the original precise resource due to security and privacy requirements, then perform the on-demand scaling configuration of the canvas drawing coordinate parameters; otherwise, the HTML ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for improving webpage screenshot definition based on a WEB technology, which comprises the following steps of: obtaining HTML (Hypertext Markup Language) element content of a to-be-intercepted page, and cloning a DOM (Document Object Model) structure of the to-be-intercepted page; analyzing and judging target nodes and child nodes to be intercepted in the DOM structure as well as corresponding styles and hierarchy requirements; if the DOM structure does not have the CSS style requirement influencing the screenshot accuracy, drawing the to-be-intercepted node element into a canvas according to the style and hierarchical relationship of the to-be-intercepted node element; otherwise, if a cross-domain resource in the webpage content to be intercepted or an execution script is not allowed to remotely access an original resource due to a security privacy requirement, performing on-demand scaling configuration on canvas drawing coordinate parameters; otherwise, converting the HTML content to be subjected to screenshot, carry out screenshot preprocessing according to different CSS style requirements, constructing an SVG document format and subjecting the SVG document format to picture processing; and finally, performing picture conversion on the content drawn in the canvas to generate a screenshot file.

Description

technical field [0001] The invention relates to the technical field of screenshots, in particular to a method for improving the clarity of webpage screenshots based on WEB (World Wide Web, global wide area network) technology. Background technique [0002] Rich picture sharing is one of the important ways of information dissemination. The method of generating pictures by intercepting the whole or part of the content of the webpage is widely used. Webpage screenshots play an important role in electronic archiving, traceability and evidence collection, and dissemination and sharing. However, in actual operation, webpage screenshots often have pixel distortion, low definition, and inability to accurately draw the original webpage content. There are still many problems in rendering style, rendering level, external resources and special attribute processing: 1) For CSS (Cascading Style Sheets, Cascading Style Sheets) attribute styles such as shadows, special borders, element scal...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/958G06F16/957
CPCG06F16/958G06F16/9577
Inventor 郭婉李亚钊冯燕来李彭伟陆君之欧阳慈张露露梁蔚
Owner THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products