WO2020048189A1 - Image generation - Google Patents

Image generation Download PDF

Info

Publication number
WO2020048189A1
WO2020048189A1 PCT/CN2019/092547 CN2019092547W WO2020048189A1 WO 2020048189 A1 WO2020048189 A1 WO 2020048189A1 CN 2019092547 W CN2019092547 W CN 2019092547W WO 2020048189 A1 WO2020048189 A1 WO 2020048189A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
picture
address
conversion request
storage
Prior art date
Application number
PCT/CN2019/092547
Other languages
French (fr)
Chinese (zh)
Inventor
钟建华
Original Assignee
北京三快在线科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京三快在线科技有限公司 filed Critical 北京三快在线科技有限公司
Publication of WO2020048189A1 publication Critical patent/WO2020048189A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a picture generating method, a server, an electronic device, and a readable storage medium.
  • QR codes pictures with QR codes are used instead of links as sharing objects, which can effectively increase users' interest in sharing objects.
  • generating a picture with a two-dimensional code can be completed on a browser side.
  • the main steps include: First, traverse the DOM (Document Object Model) of the HTML (Hyper Text Markup Language) web page through a JavaScript script, and convert the CSS attributes of each element into a Canvas drawing operation; Then, draw the converted Canvas into an image.
  • DOM Document Object Model
  • HTML Hyper Text Markup Language
  • Embodiments of the present disclosure provide a picture generating method, a server, an electronic device, and a readable storage medium to solve the above-mentioned problems in the prior art picture generating.
  • an embodiment of the present disclosure provides a picture generating method, including:
  • an embodiment of the present disclosure provides a picture generating server, including:
  • a conversion request receiving module configured to receive a webpage conversion request, where the webpage conversion request includes a reference webpage address
  • a webpage conversion module configured to generate a picture according to an access process to the reference webpage address
  • the picture storage module is configured to upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  • an electronic device including:
  • the processor, the memory, and the computer program stored on the memory and executable on the processor are characterized in that the processor implements the foregoing picture generating method when the processor executes the computer program.
  • an embodiment of the present disclosure provides a computer program including computer-readable code that, when the computer-readable code runs on a computing processing device, causes the computing processing device to execute the foregoing picture generating method.
  • an embodiment of the present disclosure provides a computer-readable storage medium in which the foregoing computer program is stored.
  • An embodiment of the present disclosure provides a picture generating method.
  • the web page conversion request includes a reference web page address; generating a picture according to an access process to the reference web page address; and uploading the picture to a preset
  • the storage server obtains a storage address of the picture, and the storage address is used to return to the initiator of the webpage conversion request.
  • the embodiments of the present disclosure can use a server to convert a web page into an image, support web page conversion with complex page layouts, avoid using Canvas to limit the conversion speed, success rate, and quality, and do not depend on the conversion of CSS attributes; Processing capabilities can support cross-platform conversion and applet conversion.
  • FIG. 1 shows a flowchart of specific steps of a picture generating method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an interaction relationship between each picture generating server and other devices in the embodiment of the present disclosure
  • FIG. 3 is a flowchart of specific steps of another picture generating method according to an embodiment of the present disclosure
  • FIG. 4 is a structural diagram of a picture generating server provided by an embodiment of the present disclosure.
  • FIG. 5 is a structural diagram of another picture generation server provided by an embodiment of the present disclosure.
  • FIG. 6 schematically illustrates a block diagram of an electronic device for performing a method according to the present disclosure.
  • FIG. 7 schematically illustrates a storage unit for holding or carrying program code implementing a method according to the present disclosure.
  • FIG. 1 shows a flowchart of steps in a method for generating a picture provided by an embodiment of the present disclosure, including:
  • Step 101 Receive a webpage conversion request, where the webpage conversion request includes a reference webpage address.
  • the embodiments of the present disclosure are applied to a picture generation server, which can convert a reference webpage into a picture and return the storage location of the picture concurrently.
  • the server may be a background server corresponding to a browser (for example, Chrome).
  • the server system is Centos7, and the operating environment is Nodejs 8.0 and above.
  • Puppeteer's Npm package Google ’s official Chromium image is not accessible in the country, so it needs to be set to an image download address available in China.
  • C ++ 11 dependent libraries In order for Chromium to run on the server, you also need to install some C ++ 11 dependent libraries.
  • Chinese fonts such as Pingfang need to be installed.
  • a web page conversion request is sent to the image generation server.
  • the webpage conversion request carries a reference webpage address.
  • the reference webpage is the current webpage where the target webpage is shared.
  • the current webpage can be the same as the target webpage, or it can be set to another webpage according to the business scenario, for example, the event homepage corresponding to the webpage.
  • the embodiment of the present disclosure can generate a personalized picture according to the current webpage, especially personal information exists in the current webpage, for example, personal picture, account and other information.
  • the webpage conversion request may be initiated by a server corresponding to the social platform, or may be initiated by a terminal where the social platform is located, which is not limited in the embodiments of the present disclosure.
  • Step 102 Generate a picture according to an access process to the reference webpage address.
  • the reference webpage address is accessed, and the data of the webpage after rendering is saved as a picture.
  • the picture generating server may access the reference webpage address through a browser (for example, Chromium) without a UI (User Interface) mode.
  • Chromium is Google's open source browser, which uses the same kernel as Chrome, and can run in a UI-less mode on a Linux server.
  • the image generation server accesses the reference webpage address to obtain webpage data from a background server corresponding to the reference webpage address.
  • the webpage data can be rendered and parsed to obtain the rendered webpage data and saved as a picture.
  • Step 103 Upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  • the image generating server and the storage server may be connected through a network, so as to implement image upload and return of the storage address.
  • the storage location may be a network address of the storage server plus a picture identifier. Therefore, the target sharing user can download the picture from the storage address. It should be noted that the storage address is different from the web page address.
  • the storage address is the storage address of the picture, and the web page address is the access address for the web page.
  • the user ’s terminal first downloads the picture from the storage address, and then obtains the web page address from the picture , Jump to a landing page, which is a page shared with users.
  • the picture is deleted from the picture generating server to prevent the picture generating server from storing too many pictures, resulting in performance degradation.
  • the initiator can be the server corresponding to the social platform or the terminal where the social platform is located. As shown in FIG. 2, the image generation server returns the storage address to the initiator.
  • an embodiment of the present disclosure provides a picture generating method, which includes: receiving a web page conversion request, the web page conversion request including a reference web page address; and generating a picture according to an access process to the reference web page address Uploading the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  • This embodiment of the present application describes an optional picture generation method.
  • FIG. 3 a flowchart of specific steps of another method for generating a picture provided by an embodiment of the present disclosure is shown.
  • Step 201 Receive a webpage conversion request, where the webpage conversion request includes a reference webpage address.
  • step 101 For this step, refer to the detailed description of step 101, and details are not described herein again.
  • step 202 if the request parameter verification fails, access to the reference webpage address is denied, and a first prompt message is returned.
  • the request parameters are used to control the style, size, and format of the picture, including but not limited to: screenshot mode, originating terminal, and pixel compression ratio.
  • the initiating terminal is the terminal where the webpage conversion request is initiated, for example, a tablet computer, a mobile phone with various screen sizes, etc., because different screen sizes require different sizes of displayed pictures, and therefore need to know the type of the terminal. You can determine the screen size to produce a picture that fits it.
  • the length, format, and content of the request parameters can be verified. For example, if the length of a parameter is required to be 10 bits, then the parameter verification fails when the length is 8. For another example, if a parameter requires a mixture of numbers and characters, the verification of a purely numeric parameter fails; for example, the value of a parameter If it is not a preset value range, the verification fails.
  • the embodiments of the present disclosure can first check the request parameters to avoid a failure in generating a picture or an error in generating a picture.
  • step 203 if the reference webpage address is not in the preset whitelist, access to the reference webpage address is denied, and a second prompt message is returned.
  • the white list may consist of addresses of reference webpage addresses, and webpages not in the whitelist are not allowed to generate images.
  • the web addresses in the whitelist are legal or allowed web addresses.
  • the embodiments of the present disclosure can perform image conversion on a designated webpage, avoid image conversion of illegal webpages, and improve the success rate of webpage conversion images.
  • Step 204 Perform rendering analysis on the webpage data corresponding to the reference webpage address to obtain rendered data.
  • the browser Before the browser can display the webpage data, the browser needs to render and parse the webpage data.
  • the data after rendering and parsing is not displayed. Since the data at this time already has a display effect, it can be saved as a picture, and the obtained picture has the same display effect as the web page.
  • Step 205 Add the two-dimensional code data to the rendering data.
  • the two-dimensional code data corresponds to a web page address, and the user can access the web page corresponding to the two-dimensional code through the picture.
  • the user can get the operation menu by long-pressing the picture, and choose to access the web page corresponding to the QR code from the menu, and then the user can switch to the web page.
  • the position of the two-dimensional code data in the rendering data is not limited.
  • it can be a barcode or other graphic code that binds a web address.
  • Step 206 Save the rendered data as a picture.
  • the picture may be saved as a binary stream.
  • the picture includes two-dimensional code data.
  • Step 207 Upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  • step 103 For this step, refer to the detailed description of step 103, and details are not described herein again.
  • Step 208 If the cache flag corresponds to a cache strategy, save the storage address and the webpage conversion request to a preset cache area.
  • the location of the buffer area may be set according to an actual application scenario, and is not limited in the embodiment of the present disclosure.
  • Embodiments of the present disclosure may cache a storage address of a picture after generating the picture for the first time for subsequent direct use.
  • Step 209 In the case that the cache flag corresponds to a cache strategy, obtain a storage address corresponding to the webpage conversion request from the cache area.
  • the embodiments of the present disclosure can use cached pictures to avoid repeatedly generating pictures, and improve the efficiency of converting web pages into pictures.
  • step 209 may precede step 204.
  • Step 210 Generate a picture according to an access process to the reference webpage address in a case where the cache flag correspondingly does not adopt a cache strategy or fails to obtain a storage address from the cache.
  • the embodiments of the present disclosure can preferentially return the storage address in the cache area, thereby improving the efficiency of generating pictures.
  • steps 204 to 206 can be used to generate pictures.
  • a webpage conversion request when a webpage conversion request is received, first, whether the request supports caching; then, if caching is supported, the storage address of the picture is obtained from the cache according to the reference webpage address and the request parameters. When the record with the reference web page address and the request parameter match, it means hitting the cache. The storage location in the record is the storage location of the picture corresponding to the reference web page address. Finally, if the cache misses, or if caching is not supported, step 102 Or 204 to 206 methods to generate pictures.
  • an embodiment of the present disclosure provides a picture generating method, which includes: receiving a web page conversion request, the web page conversion request including a reference web page address; and generating a picture according to an access process to the reference web page address Uploading the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  • request parameter verification can improve the success rate of image generation
  • whitelist verification can avoid illegal requests
  • caching can improve the efficiency of image generation.
  • FIG. 4 a structural diagram of a picture generating server is shown as follows.
  • the conversion request receiving module 301 is configured to receive a webpage conversion request, where the webpage conversion request includes a reference webpage address.
  • the webpage conversion module 302 is configured to generate a picture according to an access process to the reference webpage address.
  • the picture storage module 303 is configured to upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  • an embodiment of the present disclosure provides a picture generating server.
  • the server includes a conversion request receiving module for receiving a webpage conversion request, and the webpage conversion request includes a reference webpage address; the webpage conversion module is configured to: Generating a picture according to an access process to the reference webpage address; a picture storage module, configured to upload the picture to a preset storage server to obtain a storage address of the picture, and the storage address is used to return to the webpage for conversion The originator of the request.
  • FIG. 5 a structural diagram of another picture generation server is shown, as follows.
  • the conversion request receiving module 401 is configured to receive a webpage conversion request, where the webpage conversion request includes a reference webpage address.
  • the first rejection conversion module 402 is configured to reject access to the reference webpage address and return a first prompt message if the request parameter verification fails.
  • the second rejection conversion module 403 is configured to, when the reference webpage address is not in the preset white list, deny access to the reference webpage address and return a second prompt message.
  • the webpage conversion module 404 is configured to generate a picture according to an access process to the reference webpage address.
  • the web page conversion module 404 includes:
  • the rendering data acquisition sub-module 4041 is configured to perform rendering analysis on the webpage data corresponding to the reference webpage address to obtain rendering data.
  • a two-dimensional code adding sub-module 4042 is configured to add the two-dimensional code data to the rendering data.
  • the picture generation sub-module 4043 is configured to save the rendered data as a picture.
  • the picture storage module 405 is configured to upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  • a storage address cache module 406 is configured to save the storage address and the webpage conversion request to a preset cache area when the cache flag corresponds to a cache strategy.
  • a storage address obtaining module 407 is configured to obtain a storage address corresponding to the webpage conversion request from the cache area when the cache flag corresponds to a cache policy.
  • the second webpage conversion module 408 is configured to generate a picture according to an access process to the reference webpage address in a case where the cache flag correspondingly does not adopt a cache policy or fails to obtain a storage address from the cache.
  • an embodiment of the present disclosure provides a picture generating server.
  • the server includes a conversion request receiving module address block for receiving a webpage conversion request, and the webpage conversion request includes a reference webpage address; a first rejection A conversion module configured to refuse access to the reference webpage address and return a first prompt message if the request parameter verification fails, and a second rejection conversion module is configured to prevent the reference webpage address from being in a preset white space;
  • the webpage conversion module is used to generate a picture according to the access process to the reference webpage address;
  • the picture storage module is used to upload the picture To a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request; and a storage address caching module is configured to use a caching strategy corresponding to the caching flag, Storing the storage address and the webpage conversion request in a preset buffer area; the storage address acquisition module uses In the case where the cache flag corresponds to
  • request parameter verification can improve the success rate of image generation
  • whitelist verification can avoid illegal requests
  • caching can improve the efficiency of image generation.
  • An embodiment of the present disclosure further provides an electronic device including a processor, a memory, and a computer program stored on the memory and executable on the processor.
  • the processor is implemented when the processor executes the computer program.
  • An embodiment of the present disclosure also provides a computer program including computer-readable code that, when the computer-readable code runs on a computing processing device, causes the computing processing device to execute the picture generating method of the foregoing embodiment.
  • An embodiment of the present disclosure also provides a computer-readable storage medium in which the computer program of the foregoing embodiment is stored.
  • the description is relatively simple.
  • the related parts refer to the description of the method embodiment.
  • the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, may be located One place, or it can be distributed across multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment. Those of ordinary skill in the art can understand and implement without creative labor.
  • the various component embodiments of the present disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in a computing processing device according to an embodiment of the present disclosure.
  • the present disclosure may also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing part or all of the methods described herein.
  • Such a program that implements the present disclosure may be stored on a computer-readable storage medium or may have the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 6 illustrates a computing processing device that can implement a method according to the present disclosure.
  • the computing processing device traditionally includes a processor 510 and a computer program product or computer-readable storage medium in the form of a memory 520.
  • the memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • the memory 520 has a storage space 530 of program code 531 for performing any of the method steps in the above method.
  • the storage space 530 for program code may include respective program codes 531 respectively for implementing various steps in the above method. These program codes can be read from or written into one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. 7.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the memory 520 in the computing processing device of FIG. 6.
  • the program code may be compressed, for example, in a suitable form.
  • the storage unit includes computer-readable code 531 ', that is, code that can be read by, for example, a processor such as 510, and these codes, when run by a computing processing device, cause the computing processing device to execute the method described above Steps.
  • one embodiment means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Also, please note that the word examples "in one embodiment” herein do not necessarily refer to the same embodiment.
  • any reference signs placed between parentheses shall not be construed as limiting the claim.
  • the word “comprising” does not exclude the presence of elements or steps not listed in a claim.
  • the word “a” or “an” preceding an element does not exclude the presence of a plurality of such elements.
  • the disclosure may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claim listing several devices, several of these devices may be embodied by the same hardware item.
  • the use of the words first, second, and third does not imply any order. These words can be interpreted as names.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An image generation method, relating to the technical field of computers. The image generation method comprises: receiving a webpage conversion request, the webpage conversion request comprising an address of a reference webpage (101); generating an image on the basis of the process of accessing the address of the reference webpage (102); and uploading the image to a preset storage server and obtaining a storage address of the image, wherein the storage address is to be returned to an initiator end of the webpage conversion request (103).

Description

图片生成Picture generation
本申请要求在2018年09月07日提交中国专利局、申请号为201811044887.9、发明名称为“图片生成方法、服务器、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on September 7, 2018, with application number 201811044887.9, and the invention name is "Picture Generation Method, Server, Electronic Device, and Readable Storage Medium" Citation incorporated in this application
技术领域Technical field
本公开的实施例涉及计算机技术领域,尤其涉及一种图片生成方法、服务器、电子设备及可读存储介质。Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a picture generating method, a server, an electronic device, and a readable storage medium.
背景技术Background technique
随着社交平台的广泛应用,用户可以通过社交平台分享链接。随着二维码的产生,带有二维码的图片替代链接作为分享对象,可以有效提高用户对分享对象的兴趣。With the widespread use of social platforms, users can share links through social platforms. With the generation of QR codes, pictures with QR codes are used instead of links as sharing objects, which can effectively increase users' interest in sharing objects.
现有技术中,生成带有二维码的图片可以在浏览器端完成。主要步骤包括:首先,通过JavaScript脚本)遍历HTML(Hyper Text Markup Language,超文本标记语言)网页的DOM(Document Object Model,文档对象模型),将其中各元素的CSS属性转换为Canvas的绘制操作;然后,将转换之后的Canvas绘制成图片。In the prior art, generating a picture with a two-dimensional code can be completed on a browser side. The main steps include: First, traverse the DOM (Document Object Model) of the HTML (Hyper Text Markup Language) web page through a JavaScript script, and convert the CSS attributes of each element into a Canvas drawing operation; Then, draw the converted Canvas into an image.
然而,由于浏览器的计算能力有限,无法支持页面布局复杂的网页转换;Canvas的性能限制了转换速度、成功率以及质量;转换时仅支持CSS2属性,无法支持CSS3属性;依赖于浏览器对网页的处理能力,无法支持小程序的转换请求。However, due to the limited computing power of the browser, it cannot support the conversion of web pages with complex page layouts; the performance of Canvas limits the conversion speed, success rate, and quality; only CSS2 attributes can be supported during conversion, and CSS3 attributes cannot be supported; the browser depends on the webpage Processing power, unable to support the conversion request of the applet.
发明内容Summary of the Invention
本公开的实施例提供一种图片生成方法、服务器、电子设备及可读存储介质,以解决现有技术图片生成的上述问题。Embodiments of the present disclosure provide a picture generating method, a server, an electronic device, and a readable storage medium to solve the above-mentioned problems in the prior art picture generating.
第一方面,本公开的实施例提供了一种图片生成方法,包括:In a first aspect, an embodiment of the present disclosure provides a picture generating method, including:
接收网页转换请求,所述网页转换请求包括参考网页地址;Receiving a webpage conversion request, where the webpage conversion request includes a reference webpage address;
根据对所述参考网页地址的访问过程生成图片;Generating a picture according to an access process to the reference webpage address;
将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。Upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
第二方面,本公开的实施例提供了一种图片生成服务器,包括:In a second aspect, an embodiment of the present disclosure provides a picture generating server, including:
转换请求接收模块,用于接收网页转换请求,所述网页转换请求包括参考网页地址;A conversion request receiving module, configured to receive a webpage conversion request, where the webpage conversion request includes a reference webpage address;
网页转换模块,用于根据对所述参考网页地址的访问过程生成图片;A webpage conversion module, configured to generate a picture according to an access process to the reference webpage address;
图片存储模块,用于将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。The picture storage module is configured to upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
第三方面,本公开的实施例提供了一种电子设备,包括:According to a third aspect, an embodiment of the present disclosure provides an electronic device, including:
处理器、存储器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现前述图片生成方法。The processor, the memory, and the computer program stored on the memory and executable on the processor are characterized in that the processor implements the foregoing picture generating method when the processor executes the computer program.
第四方面,本公开的实施例提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行前述图片生成方法。In a fourth aspect, an embodiment of the present disclosure provides a computer program including computer-readable code that, when the computer-readable code runs on a computing processing device, causes the computing processing device to execute the foregoing picture generating method.
第五方面,本公开的实施例提供了一种计算机可读存储介质,其中存储了前述计算机程序。In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium in which the foregoing computer program is stored.
本公开的实施例提供了一种图片生成方法,通过接收网页转换请求,所述网页转换请求包括参考网页地址;根据对所述参考网页地址的访问过程生成图片;将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。本公开的实施例可以使用服务器将网页转换为图片,支持页面布局复杂的网页转换,避免使用Canvas限制转换速度、成功率以及质量,不依赖于CSS属性的转换;不依赖于浏览器对网页的处理能力,可以支持跨平台转换和小程序转换。An embodiment of the present disclosure provides a picture generating method. By receiving a web page conversion request, the web page conversion request includes a reference web page address; generating a picture according to an access process to the reference web page address; and uploading the picture to a preset The storage server obtains a storage address of the picture, and the storage address is used to return to the initiator of the webpage conversion request. The embodiments of the present disclosure can use a server to convert a web page into an image, support web page conversion with complex page layouts, avoid using Canvas to limit the conversion speed, success rate, and quality, and do not depend on the conversion of CSS attributes; Processing capabilities can support cross-platform conversion and applet conversion.
上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。The above description is only an overview of the technical solutions of the present disclosure. In order to better understand the technical means of the present disclosure, it can be implemented in accordance with the contents of the description, and in order to make the above and other objects, features, and advantages of the present disclosure more comprehensible. The following specifically mentions specific implementations of the present disclosure.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本公开实施例的技术方案,下面将对本公开的实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造 性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the drawings used in the description of the embodiments of the present disclosure are briefly introduced below. Obviously, the drawings in the following description are just some implementations of the present disclosure. For example, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1示出了本公开的实施例提供的一种图片生成方法具体步骤流程图;FIG. 1 shows a flowchart of specific steps of a picture generating method according to an embodiment of the present disclosure;
图2是本公开的实施例中各图片生成服务器与其他设备的交互关系示意图;2 is a schematic diagram of an interaction relationship between each picture generating server and other devices in the embodiment of the present disclosure;
图3示出了本公开的实施例提供的另一种图片生成方法具体步骤流程图;FIG. 3 is a flowchart of specific steps of another picture generating method according to an embodiment of the present disclosure; FIG.
图4是本公开的实施例提供的一种图片生成服务器的结构图;4 is a structural diagram of a picture generating server provided by an embodiment of the present disclosure;
图5是本公开的实施例提供的另一种图片生成服务器的结构图;5 is a structural diagram of another picture generation server provided by an embodiment of the present disclosure;
图6示意性地示出了用于执行根据本公开的方法的电子设备的框图;以及FIG. 6 schematically illustrates a block diagram of an electronic device for performing a method according to the present disclosure; and
图7示意性地示出了用于保持或者携带实现根据本公开的方法的程序代码的存储单元。FIG. 7 schematically illustrates a storage unit for holding or carrying program code implementing a method according to the present disclosure.
具体实施例为使本公开的实施例的目的、技术方案和优点更加清楚,下面将结合本公开的实施例中的附图,对本公开的实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。 Specific Embodiments In order to make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. The described embodiments are part of the disclosure, but not all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present disclosure.
实施例一Example one
参照图1,其示出了本公开的实施例提供的一种图片生成方法的步骤流程图,包括:Referring to FIG. 1, which shows a flowchart of steps in a method for generating a picture provided by an embodiment of the present disclosure, including:
步骤101,接收网页转换请求,所述网页转换请求包括参考网页地址。Step 101: Receive a webpage conversion request, where the webpage conversion request includes a reference webpage address.
本公开的实施例应用于图片生成服务器,该服务器可以将参考网页转换为图片,并发返回图片的存储位置。该服务器可以为浏览器(例如Chrome)对应的后台服务器。The embodiments of the present disclosure are applied to a picture generation server, which can convert a reference webpage into a picture and return the storage location of the picture concurrently. The server may be a background server corresponding to a browser (for example, Chrome).
此外,该服务器的系统为Centos7,运行环境为Nodejs 8.0版本及以上。在安装Puppeteer的Npm包,因为Google官方的Chromium镜像在国内无法访问,所以需要设置为国内可用的镜像下载地址。为了让Chromium能够在服务器上运行,还需要安装C++11的部分依赖库。为了解决中文乱码的问题以及能更好的还原截图网页的效果,还需要安装苹方等中文字体。In addition, the server system is Centos7, and the operating environment is Nodejs 8.0 and above. When installing Puppeteer's Npm package, Google ’s official Chromium image is not accessible in the country, so it needs to be set to an image download address available in China. In order for Chromium to run on the server, you also need to install some C ++ 11 dependent libraries. In order to solve the problem of Chinese garbled characters and to better restore the effect of screenshot web pages, Chinese fonts such as Pingfang need to be installed.
以上依赖库和字体文件是普通服务器不具备的,还需要人工登录服务器进行操作完成。为了实现服务器的自动化扩容,可以将上述人工操作封装成脚本命令。从而仅需要执行安装命令就可以完成上述所有依赖库和字体文件的安装。The above dependent libraries and font files are not available on ordinary servers, and you need to log in to the server manually to complete the operation. In order to realize the automatic expansion of the server, the above manual operations can be encapsulated into script commands. Therefore, you only need to execute the installation command to complete the installation of all the dependent libraries and font files mentioned above.
如图2所示,当用户在QQ、微信等社交平台上欲向另一用户分享目标网页(例如点评APP)时,发送网页转换请求至图片生成服务器。可以理解,网页转换请求中携带参考网页地址。其中,参考网页为分享目标网页时所在的当前网页,当前网页可以和目标网页相同,也可以根据业务场景设定为其他网页,例如,所在网页对应的活动主页等。As shown in FIG. 2, when a user wants to share a target web page (such as a review app) on another social platform such as QQ or WeChat, a web page conversion request is sent to the image generation server. It can be understood that the webpage conversion request carries a reference webpage address. The reference webpage is the current webpage where the target webpage is shared. The current webpage can be the same as the target webpage, or it can be set to another webpage according to the business scenario, for example, the event homepage corresponding to the webpage.
本公开的实施例可以根据当前网页生成个性化图片,尤其是当前网页中存在个人信息,例如,个人图片、账户等信息。The embodiment of the present disclosure can generate a personalized picture according to the current webpage, especially personal information exists in the current webpage, for example, personal picture, account and other information.
可以理解,网页转换请求可以由社交平台对应的服务器发起,也可以由社交平台所在的终端发起,本公开的实施例对其不加以限制。It can be understood that the webpage conversion request may be initiated by a server corresponding to the social platform, or may be initiated by a terminal where the social platform is located, which is not limited in the embodiments of the present disclosure.
步骤102,根据对所述参考网页地址的访问过程生成图片。Step 102: Generate a picture according to an access process to the reference webpage address.
具体地,对参考网页地址进行访问,将网页在渲染之后的数据保存为图片。Specifically, the reference webpage address is accessed, and the data of the webpage after rendering is saved as a picture.
在本公开的实施例中,图片生成服务器可以通过无UI(User Interface,用户界面)模式的浏览器(例如,Chromium)访问参考网页地址。其中,Chromium为Google开源的浏览器,与Chrome浏览器使用相同的内核,可以在Linux系统的服务器上以无UI模式运行。Google团队开源了Nodejs库puppeteer,可以通过API(Application Programming Interface,应用程序编程接口)的方式操作Chromium。In the embodiment of the present disclosure, the picture generating server may access the reference webpage address through a browser (for example, Chromium) without a UI (User Interface) mode. Among them, Chromium is Google's open source browser, which uses the same kernel as Chrome, and can run in a UI-less mode on a Linux server. The Google team open sourced the Nodejs library puppeteer, which can operate Chromium through API (Application Programming Interface).
如图2所示,图片生成服务器访问参考网页地址,以从参考网页地址对应的后台服务器上获取网页数据。从而可以对网页数据进行渲染解析,得到渲染之后的网页数据,并将其保存为图片。As shown in FIG. 2, the image generation server accesses the reference webpage address to obtain webpage data from a background server corresponding to the reference webpage address. Thereby, the webpage data can be rendered and parsed to obtain the rendered webpage data and saved as a picture.
步骤103,将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。Step 103: Upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
如图2所示,图片生成服务器和存储服务器可以通过网络连接,从而实现图片上传,以及存储地址返回。As shown in FIG. 2, the image generating server and the storage server may be connected through a network, so as to implement image upload and return of the storage address.
其中,存储位置可以为存储服务器的网络地址加图片标识。从而目标分享用户可以从该存储地址中下载该图片。需要注意的是该存储地址与网页地址不同,存储地址为图片的存储地址,网页地址是用于网页的访问地址,用户所在终端首先从存储地址中下载图片,然后从图片中可以获取到网页地址,跳转到目标网页,目标网页是向用户分享的网页。The storage location may be a network address of the storage server plus a picture identifier. Therefore, the target sharing user can download the picture from the storage address. It should be noted that the storage address is different from the web page address. The storage address is the storage address of the picture, and the web page address is the access address for the web page. The user ’s terminal first downloads the picture from the storage address, and then obtains the web page address from the picture , Jump to a landing page, which is a page shared with users.
在实际应用中,将图片上传至存储服务器上之后,从该图片生成服务器上删除该图片,避免该图片生成服务器存储过多图片,导致性能下降。In an actual application, after uploading a picture to a storage server, the picture is deleted from the picture generating server to prevent the picture generating server from storing too many pictures, resulting in performance degradation.
可以理解,发起端可以为社交平台对应的服务器,也可以为社交平台所在的终端,如图2所示,图片生成服务器将存储地址返回至发起端。It can be understood that the initiator can be the server corresponding to the social platform or the terminal where the social platform is located. As shown in FIG. 2, the image generation server returns the storage address to the initiator.
综上所述,本公开的实施例提供了一种图片生成方法,所述方法包括:接收网页转换请求,所述网页转换请求包括参考网页地址;根据对所述参考网页地址的访问过程生成图片;将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。可以使用服务器将网页转换为图片,支持页面布局复杂的网页转换,避免使用Canvas限制转换速度、成功率以及质量,不依赖于CSS属性的转换;不依赖于浏览器对网页的处理能力,可以支持跨平台转换和小程序转换。In summary, an embodiment of the present disclosure provides a picture generating method, which includes: receiving a web page conversion request, the web page conversion request including a reference web page address; and generating a picture according to an access process to the reference web page address Uploading the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request. You can use the server to convert web pages into images, support web page conversion with complex page layouts, avoid using Canvas to limit conversion speed, success rate, and quality, do not depend on CSS property conversions; do not depend on the browser's ability to process web pages, and can support Cross-platform conversion and applet conversion.
实施例二Example two
本申请实施例对可选地图片生成方法进行了描述。This embodiment of the present application describes an optional picture generation method.
参照图3,其示出了本公开的实施例提供的另一种图片生成方法的具体步骤流程图。Referring to FIG. 3, a flowchart of specific steps of another method for generating a picture provided by an embodiment of the present disclosure is shown.
步骤201,接收网页转换请求,所述网页转换请求包括参考网页地址。Step 201: Receive a webpage conversion request, where the webpage conversion request includes a reference webpage address.
该步骤可以参照步骤101的详细说明,在此不再赘述。For this step, refer to the detailed description of step 101, and details are not described herein again.
步骤202,在所述请求参数校验失败的情况下,拒绝访问所述参考网页地址,并返回第一提示信息。In step 202, if the request parameter verification fails, access to the reference webpage address is denied, and a first prompt message is returned.
其中,请求参数用于控制图片的样式、大小、格式等,包括但不限于:截图模式、发起终端、像素压缩比例。The request parameters are used to control the style, size, and format of the picture, including but not limited to: screenshot mode, originating terminal, and pixel compression ratio.
其中,发起终端为发起所述网页转换请求时所在的终端,例如,平板电脑、各种大小屏幕的手机等,由于不同大小的屏幕对显示的图片大小要求不同,从而需要知道终端的类型,从而可以确定屏幕大小以生成适合其大小的 图片。The initiating terminal is the terminal where the webpage conversion request is initiated, for example, a tablet computer, a mobile phone with various screen sizes, etc., because different screen sizes require different sizes of displayed pictures, and therefore need to know the type of the terminal. You can determine the screen size to produce a picture that fits it.
此外,截图模式和像素压缩比不同均会导致生成不同的图片。In addition, different screenshot modes and pixel compression ratios will result in different images.
具体地,可以对请求参数进行长度、格式、以及内容进行校验。例如,若一参数的长度要求为10位,则长度为8时请求参数校验失败;又例如,如一参数要求数字和字符混合,则纯数字的参数校验失败;又例如,参数的取值不为预先设定的取值范围,则校验失败。Specifically, the length, format, and content of the request parameters can be verified. For example, if the length of a parameter is required to be 10 bits, then the parameter verification fails when the length is 8. For another example, if a parameter requires a mixture of numbers and characters, the verification of a purely numeric parameter fails; for example, the value of a parameter If it is not a preset value range, the verification fails.
可以理解,只有所有参数均校验成功,则请求参数校验成功,针对该网页转换请求生成对应的图片;若其中一个参数校验失败,则请求参数校验失败,返回代表参数校验失败的第一提示信息。It can be understood that if all parameters are successfully verified, the request is successful, and a corresponding image is generated for the webpage conversion request. If one of the parameters fails, the request fails to verify the parameters, and returns a The first prompt message.
本公开的实施例可以对首先对请求参数进行校验,以避免生成图片失败,或生成的图片错误。The embodiments of the present disclosure can first check the request parameters to avoid a failure in generating a picture or an error in generating a picture.
步骤203,在所述参考网页地址不在预设白名单内的情况下,拒绝访问所述参考网页地址,并返回第二提示信息。In step 203, if the reference webpage address is not in the preset whitelist, access to the reference webpage address is denied, and a second prompt message is returned.
其中,白名单可以由参考网页地址的地址组成,不在白名单内的网页不予生成图片。白名单内的网页地址为合法或允许的网页地址。Among them, the white list may consist of addresses of reference webpage addresses, and webpages not in the whitelist are not allowed to generate images. The web addresses in the whitelist are legal or allowed web addresses.
可以理解,参考网页地址在白名单内,则针对该网页转换请求生成图片;参考网页地址不在白名单内,则返回表示参考网页地址不在白名单内的第二提示信息。It can be understood that if the reference web page address is in the white list, a picture is generated for the web page conversion request; if the reference web page address is not in the white list, a second prompt message indicating that the reference web page address is not in the white list is returned.
本公开的实施例可以针对指定网页进行图片转换,避免不合法网页的图片转换,提高网页转换图片的成功率。The embodiments of the present disclosure can perform image conversion on a designated webpage, avoid image conversion of illegal webpages, and improve the success rate of webpage conversion images.
步骤204,对所述参考网页地址对应的网页数据进行渲染解析得到渲染数据。Step 204: Perform rendering analysis on the webpage data corresponding to the reference webpage address to obtain rendered data.
在浏览器对网页数据进行展示之前,浏览器需要对网页数据进行渲染解析。本公开的实施例将渲染解析之后的数据不进行展示,由于此时的数据已经有展示的效果,从而可以保存为图片,得到的图片与网页的展示效果相同。Before the browser can display the webpage data, the browser needs to render and parse the webpage data. In the embodiment of the present disclosure, the data after rendering and parsing is not displayed. Since the data at this time already has a display effect, it can be saved as a picture, and the obtained picture has the same display effect as the web page.
步骤205,将所述二维码数据添加至所述渲染数据中。Step 205: Add the two-dimensional code data to the rendering data.
其中,二维码数据对应一个网页地址,用户可以通过该图片访问该二维码对应的网页。例如,用户可以通过长按图片得到操作菜单,并从菜单中选择访问该二维码对应的网页,即可转入该网页。The two-dimensional code data corresponds to a web page address, and the user can access the web page corresponding to the two-dimensional code through the picture. For example, the user can get the operation menu by long-pressing the picture, and choose to access the web page corresponding to the QR code from the menu, and then the user can switch to the web page.
可以理解,二维码数据在渲染数据中的位置不进行限制。此外,还可以为条形码或其他绑定网页地址的图形码。It can be understood that the position of the two-dimensional code data in the rendering data is not limited. In addition, it can be a barcode or other graphic code that binds a web address.
步骤206,将所述渲染数据保存为图片。Step 206: Save the rendered data as a picture.
具体地,图片可以以二进制流的方式进行保存,通过步骤205该图片中包含了二维码数据。Specifically, the picture may be saved as a binary stream. In step 205, the picture includes two-dimensional code data.
步骤207,将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。Step 207: Upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
该步骤可以参照步骤103的详细说明,在此不再赘述。For this step, refer to the detailed description of step 103, and details are not described herein again.
步骤208,在所述缓存标志对应采用缓存策略的情况下,将所述存储地址与所述网页转换请求保存至预设缓存区。Step 208: If the cache flag corresponds to a cache strategy, save the storage address and the webpage conversion request to a preset cache area.
其中,缓存区的位置可以根据实际应用场景设定,本公开的实施例对其不加限制。The location of the buffer area may be set according to an actual application scenario, and is not limited in the embodiment of the present disclosure.
本公开的实施例可以在首次生成图片之后缓存图片的存储地址,以供后续直接使用。Embodiments of the present disclosure may cache a storage address of a picture after generating the picture for the first time for subsequent direct use.
步骤209,在所述缓存标志对应采用缓存策略的情况下,从所述缓存区中获取与所述网页转换请求对应的存储地址。Step 209: In the case that the cache flag corresponds to a cache strategy, obtain a storage address corresponding to the webpage conversion request from the cache area.
本公开的实施例可以采用缓存图片从而避免反复生成图片,提高了网页转换为图片的效率。The embodiments of the present disclosure can use cached pictures to avoid repeatedly generating pictures, and improve the efficiency of converting web pages into pictures.
可以理解,若网页转换请求包含的参考网页地址不是第一次用于生成图片,则步骤209可以在步骤204之前。It can be understood that if the reference webpage address included in the webpage conversion request is not used for generating pictures for the first time, step 209 may precede step 204.
步骤210,在所述缓存标志对应不采用缓存策略,或,从所述缓存中获取存储地址失败的情况下,根据对所述参考网页地址的访问过程生成图片。Step 210: Generate a picture according to an access process to the reference webpage address in a case where the cache flag correspondingly does not adopt a cache strategy or fails to obtain a storage address from the cache.
本公开的实施例可以优先返回缓存区中的存储地址,从而可以提高生成图片的效率。The embodiments of the present disclosure can preferentially return the storage address in the cache area, thereby improving the efficiency of generating pictures.
可以理解,可以采用步骤204至206生成图片。Understandably, steps 204 to 206 can be used to generate pictures.
具体地,在接收到网页转换请求时,首先,判断该请求是否支持缓存;然后,若支持缓存,则根据参考网页地址以及请求参数从缓存中获取图片的存储地址,当在缓存中可以找到与参考网页地址和请求参数均匹配的记录时,则代表命中缓存,该记录中的存储位置为该参考网页地址对应图片的存 储位置;最后在未命中缓存,或,不支持缓存时,采用步骤102或204至206的方法生成图片。Specifically, when a webpage conversion request is received, first, whether the request supports caching; then, if caching is supported, the storage address of the picture is obtained from the cache according to the reference webpage address and the request parameters. When the record with the reference web page address and the request parameter match, it means hitting the cache. The storage location in the record is the storage location of the picture corresponding to the reference web page address. Finally, if the cache misses, or if caching is not supported, step 102 Or 204 to 206 methods to generate pictures.
综上所述,本公开的实施例提供了一种图片生成方法,所述方法包括:接收网页转换请求,所述网页转换请求包括参考网页地址;根据对所述参考网页地址的访问过程生成图片;将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。可以使用服务器将网页转换为图片,支持页面布局复杂的网页转换,避免使用Canvas限制转换速度、成功率以及质量,不依赖于CSS属性的转换;不依赖于浏览器对网页的处理能力,可以支持跨平台转换和小程序转换。此外,请求参数校验可以提高图片的生成成功率,白名单校验可以规避非法请求,缓存可以提高图片生成效率。In summary, an embodiment of the present disclosure provides a picture generating method, which includes: receiving a web page conversion request, the web page conversion request including a reference web page address; and generating a picture according to an access process to the reference web page address Uploading the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request. You can use the server to convert web pages into images, support web page conversion with complex page layouts, avoid using Canvas to limit conversion speed, success rate, and quality, do not depend on CSS property conversions; do not depend on the browser's ability to process web pages, and can support Cross-platform conversion and applet conversion. In addition, request parameter verification can improve the success rate of image generation, whitelist verification can avoid illegal requests, and caching can improve the efficiency of image generation.
实施例三Example three
参照图4,其示出了一种图片生成服务器的结构图,具体如下。Referring to FIG. 4, a structural diagram of a picture generating server is shown as follows.
转换请求接收模块301,用于接收网页转换请求,所述网页转换请求包括参考网页地址。The conversion request receiving module 301 is configured to receive a webpage conversion request, where the webpage conversion request includes a reference webpage address.
网页转换模块302,用于根据对所述参考网页地址的访问过程生成图片。The webpage conversion module 302 is configured to generate a picture according to an access process to the reference webpage address.
图片存储模块303,用于将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。The picture storage module 303 is configured to upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
综上所述,本公开的实施例提供了一种图片生成服务器,所述服务器包括:转换请求接收模块,用于接收网页转换请求,所述网页转换请求包括参考网页地址;网页转换模块,用于根据对所述参考网页地址的访问过程生成图片;图片存储模块,用于将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。可以使用服务器将网页转换为图片,支持页面布局复杂的网页转换,避免使用Canvas限制转换速度、成功率以及质量,不依赖于CSS属性的转换;不依赖于浏览器对网页的处理能力,可以支持跨平台转换和小程序转换。In summary, an embodiment of the present disclosure provides a picture generating server. The server includes a conversion request receiving module for receiving a webpage conversion request, and the webpage conversion request includes a reference webpage address; the webpage conversion module is configured to: Generating a picture according to an access process to the reference webpage address; a picture storage module, configured to upload the picture to a preset storage server to obtain a storage address of the picture, and the storage address is used to return to the webpage for conversion The originator of the request. You can use the server to convert web pages into images, support web page conversion with complex page layouts, avoid using Canvas to limit conversion speed, success rate, and quality, do not depend on CSS property conversions; do not depend on the browser's ability to process web pages, and can support Cross-platform conversion and applet conversion.
实施例四Embodiment 4
参照图5,其示出了另一种图片生成服务器的结构图,具体如下。Referring to FIG. 5, a structural diagram of another picture generation server is shown, as follows.
转换请求接收模块401,用于接收网页转换请求,所述网页转换请求包括参考网页地址。The conversion request receiving module 401 is configured to receive a webpage conversion request, where the webpage conversion request includes a reference webpage address.
第一拒绝转换模块402,用于在所述请求参数校验失败的情况下,拒绝访问所述参考网页地址,并返回第一提示信息。The first rejection conversion module 402 is configured to reject access to the reference webpage address and return a first prompt message if the request parameter verification fails.
第二拒绝转换模块403,用于在所述参考网页地址不在预设白名单内的情况下,拒绝访问述参考网页地址,并返回第二提示信息。The second rejection conversion module 403 is configured to, when the reference webpage address is not in the preset white list, deny access to the reference webpage address and return a second prompt message.
网页转换模块404,用于根据对所述参考网页地址的访问过程生成图片。可选地,在本公开的另一种实施例中,上述网页转换模块404,包括:The webpage conversion module 404 is configured to generate a picture according to an access process to the reference webpage address. Optionally, in another embodiment of the present disclosure, the web page conversion module 404 includes:
渲染数据获取子模块4041,用于对所述参考网页地址对应的网页数据进行渲染解析得到渲染数据。The rendering data acquisition sub-module 4041 is configured to perform rendering analysis on the webpage data corresponding to the reference webpage address to obtain rendering data.
二维码添加子模块4042,用于将所述二维码数据添加至所述渲染数据中。A two-dimensional code adding sub-module 4042 is configured to add the two-dimensional code data to the rendering data.
图片生成子模块4043,用于将所述渲染数据保存为图片。The picture generation sub-module 4043 is configured to save the rendered data as a picture.
图片存储模块405,用于将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。The picture storage module 405 is configured to upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
存储地址缓存模块406,用于在所述缓存标志对应采用缓存策略的情况下,将所述存储地址与所述网页转换请求保存至预设缓存区。A storage address cache module 406 is configured to save the storage address and the webpage conversion request to a preset cache area when the cache flag corresponds to a cache strategy.
存储地址获取模块407,用于在所述缓存标志对应采用缓存策略的情况下,从所述缓存区中获取与所述网页转换请求对应的存储地址。A storage address obtaining module 407 is configured to obtain a storage address corresponding to the webpage conversion request from the cache area when the cache flag corresponds to a cache policy.
第二网页转换模块408,用于在所述缓存标志对应不采用缓存策略,或,从所述缓存中获取存储地址失败的情况下,根据对所述参考网页地址的访问过程生成图片。The second webpage conversion module 408 is configured to generate a picture according to an access process to the reference webpage address in a case where the cache flag correspondingly does not adopt a cache policy or fails to obtain a storage address from the cache.
综上所述,本公开的实施例提供了一种图片生成服务器,所述服务器包括:转换请求接收模地址块,用于接收网页转换请求,所述网页转换请求包括参考网页地址;第一拒绝转换模块,用于在所述请求参数校验失败的情况下,拒绝访问所述参考网页地址,并返回第一提示信息;第二拒绝转换模块, 用于在所述参考网页地址不在预设白名单内的情况下,拒绝访问述参考网页地址,并返回第二提示信息;网页转换模块,用于根据对所述参考网页地址的访问过程生成图片;图片存储模块,用于将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端;存储地址缓存模块,用于在所述缓存标志对应采用缓存策略的情况下,将所述存储地址与所述网页转换请求保存至预设缓存区;存储地址获取模块,用于在所述缓存标志对应采用缓存策略的情况下,从所述缓存区中获取与所述网页转换请求对应的存储地址。可以使用服务器将网页转换为图片,支持页面布局复杂的网页转换,避免使用Canvas限制转换速度、成功率以及质量,不依赖于CSS属性的转换;不依赖于浏览器对网页的处理能力,可以支持跨平台转换和小程序转换。此外,请求参数校验可以提高图片的生成成功率,白名单校验可以规避非法请求,缓存可以提高图片生成效率。In summary, an embodiment of the present disclosure provides a picture generating server. The server includes a conversion request receiving module address block for receiving a webpage conversion request, and the webpage conversion request includes a reference webpage address; a first rejection A conversion module configured to refuse access to the reference webpage address and return a first prompt message if the request parameter verification fails, and a second rejection conversion module is configured to prevent the reference webpage address from being in a preset white space; In the case of the list, access to the reference webpage address is denied, and a second prompt message is returned; the webpage conversion module is used to generate a picture according to the access process to the reference webpage address; the picture storage module is used to upload the picture To a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request; and a storage address caching module is configured to use a caching strategy corresponding to the caching flag, Storing the storage address and the webpage conversion request in a preset buffer area; the storage address acquisition module uses In the case where the cache flag corresponds to a cache strategy, a storage address corresponding to the webpage conversion request is obtained from the cache area. You can use the server to convert web pages into images, support web page conversion with complex page layouts, avoid using Canvas to limit conversion speed, success rate, and quality, do not depend on CSS property conversions; do not depend on the browser's ability to process web pages, and can support Cross-platform conversion and applet conversion. In addition, request parameter verification can improve the success rate of image generation, whitelist verification can avoid illegal requests, and caching can improve the efficiency of image generation.
本公开的实施例还提供了一种电子设备,包括:处理器、存储器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现前述实施例的图片生成方法。An embodiment of the present disclosure further provides an electronic device including a processor, a memory, and a computer program stored on the memory and executable on the processor. The processor is implemented when the processor executes the computer program. The picture generating method of the foregoing embodiment.
本公开的实施例还提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行前述实施例的图片生成方法。An embodiment of the present disclosure also provides a computer program including computer-readable code that, when the computer-readable code runs on a computing processing device, causes the computing processing device to execute the picture generating method of the foregoing embodiment.
本公开的实施例还提供了一种计算机可读存储介质,其中存储了前述实施例的计算机程序。An embodiment of the present disclosure also provides a computer-readable storage medium in which the computer program of the foregoing embodiment is stored.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the related parts, refer to the description of the method embodiment.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, may be located One place, or it can be distributed across multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment. Those of ordinary skill in the art can understand and implement without creative labor.
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的计算处理设备中的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读存储介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in a computing processing device according to an embodiment of the present disclosure. The present disclosure may also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing part or all of the methods described herein. Such a program that implements the present disclosure may be stored on a computer-readable storage medium or may have the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图6示出了可以实现根据本公开的方法的计算处理设备。该计算处理设备传统上包括处理器510和以存储器520形式的计算机程序产品或者计算机可读存储介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图7所述的便携式或者固定存储单元。该存储单元可以具有与图6的计算处理设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由计算处理设备运行时,导致该计算处理设备执行上面所描述的方法中的各个步骤。For example, FIG. 6 illustrates a computing processing device that can implement a method according to the present disclosure. The computing processing device traditionally includes a processor 510 and a computer program product or computer-readable storage medium in the form of a memory 520. The memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. The memory 520 has a storage space 530 of program code 531 for performing any of the method steps in the above method. For example, the storage space 530 for program code may include respective program codes 531 respectively for implementing various steps in the above method. These program codes can be read from or written into one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. 7. The storage unit may have a storage section, a storage space, and the like arranged similarly to the memory 520 in the computing processing device of FIG. 6. The program code may be compressed, for example, in a suitable form. Generally, the storage unit includes computer-readable code 531 ', that is, code that can be read by, for example, a processor such as 510, and these codes, when run by a computing processing device, cause the computing processing device to execute the method described above Steps.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本公开的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。As used herein, "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Also, please note that the word examples "in one embodiment" herein do not necessarily refer to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解, 本公开的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided here, numerous specific details are explained. However, it can be understood that the embodiments of the present disclosure can be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of the specification.
在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The disclosure may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claim listing several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third does not imply any order. These words can be interpreted as names.
最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, but not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacements of some of the technical features thereof; and these modifications or replacements do not depart the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims (12)

  1. 一种图片生成方法,包括:A picture generation method includes:
    接收网页转换请求,所述网页转换请求包括参考网页地址;Receiving a webpage conversion request, where the webpage conversion request includes a reference webpage address;
    根据对所述参考网页地址的访问过程生成图片;Generating a picture according to an access process to the reference webpage address;
    将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。Upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  2. 根据权利要求1所述的方法,其中,所述根据对所述参考网页地址的访问过程生成图片的步骤,包括:The method according to claim 1, wherein the step of generating a picture according to an access process to the reference webpage address comprises:
    对所述参考网页地址对应的网页数据进行渲染解析得到渲染数据;Performing rendering analysis on the webpage data corresponding to the reference webpage address to obtain rendering data;
    将所述渲染数据保存为图片。Save the rendered data as a picture.
  3. 根据权利要求2所述的方法,其中,所述网页转换请求还包括二维码数据,所述方法还包括:The method according to claim 2, wherein the webpage conversion request further comprises two-dimensional code data, and the method further comprises:
    将所述二维码数据添加至所述渲染数据中。The two-dimensional code data is added to the rendering data.
  4. 根据权利要求1所述的方法,其中,所述网页转换请求包括缓存标志,所述方法还包括:The method according to claim 1, wherein the webpage conversion request includes a cache flag, and the method further comprises:
    在所述缓存标志对应采用缓存策略的情况下,将所述存储地址与所述网页转换请求保存至预设缓存区。In a case where the cache flag corresponds to a cache strategy, the storage address and the webpage conversion request are saved to a preset cache area.
  5. 根据权利要求4所述的方法,其中,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    在所述缓存标志对应采用缓存策略的情况下,从所述缓存区中获取与所述网页转换请求对应的存储地址。When the cache flag corresponds to a cache strategy, a storage address corresponding to the webpage conversion request is obtained from the cache area.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    在所述缓存标志对应不采用缓存策略,或,从所述缓存中获取存储地址失败的情况下,根据对所述参考网页地址的访问过程生成图片。When the cache flag correspondingly does not adopt a cache strategy, or fails to obtain a storage address from the cache, a picture is generated according to an access process to the reference web page address.
  7. 根据权利要求1所述的方法,其中,所述参考网页地址包括请求参数,在所述访问所述参考网页地址的步骤之前,还包括:The method according to claim 1, wherein the reference webpage address includes a request parameter, and before the step of accessing the reference webpage address, further comprising:
    在所述请求参数校验失败的情况下,拒绝访问所述参考网页地址,并返回第一提示信息。In the case that the request parameter verification fails, access to the reference webpage address is denied, and a first prompt message is returned.
  8. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, further comprising:
    在所述参考网页地址不在预设白名单内的情况下,拒绝访问述参考网页地址,并返回第二提示信息。If the reference webpage address is not in the preset whitelist, the access to the reference webpage address is denied, and a second prompt message is returned.
  9. 一种图片生成服务器,其中,所述服务器包括:A picture generating server, wherein the server includes:
    转换请求接收模块,用于接收网页转换请求,所述网页转换请求包括参考网页地址;A conversion request receiving module, configured to receive a webpage conversion request, where the webpage conversion request includes a reference webpage address;
    网页转换模块,用于根据对所述参考网页地址的访问过程生成图片;A webpage conversion module, configured to generate a picture according to an access process to the reference webpage address;
    图片存储模块,用于将所述图片上传至预设存储服务器得到所述图片的存储地址,所述存储地址用于返回至所述网页转换请求的发起端。The picture storage module is configured to upload the picture to a preset storage server to obtain a storage address of the picture, where the storage address is used to return to the initiator of the webpage conversion request.
  10. 一种电子设备,包括:An electronic device includes:
    处理器、存储器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至8中一个或多个所述的图片生成方法。A processor, a memory, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the processor implements one or more of claims 1 to 8 Image generation method described above.
  11. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行根据权利要求1至8中的任一个所述的图片生成方法。A computer program includes computer-readable code that, when the computer-readable code runs on a computing processing device, causes the computing processing device to execute the picture generating method according to any one of claims 1 to 8.
  12. 一种计算机可读存储介质,其中存储了如权利要求11所述的计算机程序。A computer-readable storage medium in which a computer program according to claim 11 is stored.
PCT/CN2019/092547 2018-09-07 2019-06-24 Image generation WO2020048189A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811044887.9A CN109165357A (en) 2018-09-07 2018-09-07 Picture Generation Method, server, electronic equipment and readable storage medium storing program for executing
CN201811044887.9 2018-09-07

Publications (1)

Publication Number Publication Date
WO2020048189A1 true WO2020048189A1 (en) 2020-03-12

Family

ID=64894323

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/092547 WO2020048189A1 (en) 2018-09-07 2019-06-24 Image generation

Country Status (2)

Country Link
CN (1) CN109165357A (en)
WO (1) WO2020048189A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591003A (en) * 2021-07-30 2021-11-02 平安普惠企业管理有限公司 Webpage processing method and device, computer equipment and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165357A (en) * 2018-09-07 2019-01-08 北京三快在线科技有限公司 Picture Generation Method, server, electronic equipment and readable storage medium storing program for executing
CN112052376A (en) * 2019-06-06 2020-12-08 百度在线网络技术(北京)有限公司 Resource recommendation method, device, server, equipment and medium
CN110365776B (en) * 2019-07-17 2021-05-04 京东方科技集团股份有限公司 Picture batch downloading method and device, electronic equipment and storage medium
CN110647695A (en) * 2019-08-12 2020-01-03 深圳点猫科技有限公司 Method and device for converting webpage data into picture attachment
CN110516191A (en) * 2019-08-30 2019-11-29 深圳点猫科技有限公司 Webpage data is converted into the method and apparatus of picture file
CN115242777A (en) * 2022-07-12 2022-10-25 观澜网络(杭州)有限公司 Method, system, server and storage medium for generating file

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929604A (en) * 2012-09-29 2013-02-13 北京奇虎科技有限公司 Screen capturing apparatus and method
CN103944864A (en) * 2013-01-22 2014-07-23 腾讯科技(深圳)有限公司 Information transmission method, information sending device, receiving device and system
CN107454147A (en) * 2017-07-06 2017-12-08 北京潘达互娱科技有限公司 Information processing method and device
CN108363734A (en) * 2018-01-17 2018-08-03 链家网(北京)科技有限公司 The page generates the method and device of picture
CN109165357A (en) * 2018-09-07 2019-01-08 北京三快在线科技有限公司 Picture Generation Method, server, electronic equipment and readable storage medium storing program for executing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320440A (en) * 2014-09-30 2015-01-28 珠海市君天电子科技有限公司 Picture remote storage method and picture remote storage processing device
CN106504025B (en) * 2016-10-27 2021-11-09 腾讯科技(北京)有限公司 Multimedia information processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929604A (en) * 2012-09-29 2013-02-13 北京奇虎科技有限公司 Screen capturing apparatus and method
CN103944864A (en) * 2013-01-22 2014-07-23 腾讯科技(深圳)有限公司 Information transmission method, information sending device, receiving device and system
CN107454147A (en) * 2017-07-06 2017-12-08 北京潘达互娱科技有限公司 Information processing method and device
CN108363734A (en) * 2018-01-17 2018-08-03 链家网(北京)科技有限公司 The page generates the method and device of picture
CN109165357A (en) * 2018-09-07 2019-01-08 北京三快在线科技有限公司 Picture Generation Method, server, electronic equipment and readable storage medium storing program for executing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591003A (en) * 2021-07-30 2021-11-02 平安普惠企业管理有限公司 Webpage processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109165357A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
WO2020048189A1 (en) Image generation
US11647096B2 (en) Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
US10055507B2 (en) Infinite scrolling
JP6740373B2 (en) Page component dynamic layout
US8656265B1 (en) Low-latency transition into embedded web view
WO2017206626A1 (en) Network resource access apparatus, mixed apparatus, and method
US20170308279A1 (en) Customization of Mobile Applications Using Web-Based Technology
US9400633B2 (en) Methods and apparatus for voiced-enabling a web application
US9448977B2 (en) Website blueprint generation and display algorithms to reduce perceived web-page loading time
US9292253B2 (en) Methods and apparatus for voiced-enabling a web application
US9781262B2 (en) Methods and apparatus for voice-enabling a web application
US8682964B1 (en) Progressively loading network content
US20140039898A1 (en) Methods and apparatus for voiced-enabling a web application
CN104704468A (en) Cross system installation of WEB applications
US9396053B2 (en) Error handling in a network resource generation environment
US9292252B2 (en) Methods and apparatus for voiced-enabling a web application
CN110825990A (en) Page access method, client, server and system
CN103823841A (en) Method and device for increasing browsing speed for mobile terminal client
US8959426B1 (en) Loading customer-supplied network page generation code
CN112256990A (en) Image processing method and device and computer readable storage medium
CN111581473A (en) Webpage processing method
US20140331117A1 (en) Application-based dependency graph
JP5643449B1 (en) Server and method for displaying display screen on terminal device
US11379653B2 (en) Rendering method for on-demand loading of PDF file on network
CN114780888A (en) Webpage picture generation method and system, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19857186

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19857186

Country of ref document: EP

Kind code of ref document: A1