Generation of a page sharing picture, page sharing method and device

Through the collaborative work of the client and the server, the page sharing pictures containing business dynamic data are generated and displayed, which solves the problem of high cost of updating page sharing pictures and achieves the real-time and effectiveness of picture content.

CN112052420BActive Publication Date: 2025-08-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011094649.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-14
Publication Date
2025-08-05
Estimated Expiration
2040-10-14

AI Technical Summary

Technical Problem

In the prior art, the cost of updating page sharing images is high, resulting in poor real-time and effectiveness of image content, making it difficult to update according to real-time changes in the business of the application page.

Method used

In response to the application page display operation, the client sends a picture request message to the control device. The server generates and returns a page sharing picture containing business dynamic data. The client updates the page configuration information and displays it in the communication interaction window. Dynamic parameter information and dynamic data are used to fill the page sharing picture template to reduce duplicate drawing and manual operations.

Benefits of technology

It realizes automatic update of page sharing pictures, improves the real-time and effectiveness of picture content, reduces update costs, and users can intuitively obtain the latest business dynamic data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112052420B_ABST
    Figure CN112052420B_ABST
Patent Text Reader

Abstract

The present application relates to computer technology, in particular to the field of image processing technology, and discloses a method and device for generating and sharing a page sharing image. The method for generating and sharing a page sharing image disclosed in the present application includes: a client displays a target application page in response to an application page display operation, and sends a picture request message to a control device. The server obtains the business dynamic data associated with the target application page contained in the picture request message, generates a page sharing image that displays the above-mentioned business dynamic data, and returns the page sharing image to the client. The client updates the page configuration information corresponding to the target application page based on the received page sharing image, and displays the page sharing image in the communication interaction window between the target user and the sharing object in response to the business sharing operation for the target application page. In this way, the real-time and effectiveness of the image content are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to computer technology, in particular to the field of image processing technology, and more particularly to a method and device for generating a page sharing image and a page sharing method and device. Background Art

[0002] With the development of Internet technology, the types and number of applications are increasing, and the corresponding mini-programs are also increasing accordingly. Since mini-programs do not require software download and installation, their application is becoming more and more popular.

[0003] In some application scenarios, applications usually need to use pre-configured pictures for page sharing. To improve page sharing efficiency, the pictures are usually pre-configured designated pictures.

[0004] For example, in order to improve the efficiency of mini program page sharing, it is necessary to pre-configure a designated page sharing picture for each application page, so that when the mini program responds to the user's page sharing operation, it can quickly share the page according to the configured page sharing picture.

[0005] However, with this approach, since the labor and time costs of redrawing and updating images are also high, the images shared on the page are usually fixed, and the real-time and effectiveness of the image content displayed in the images shared on the page are poor. Summary of the Invention

[0006] The embodiments of the present application provide a method and apparatus for generating and sharing a page-sharing picture, so as to improve the real-time performance and effectiveness of the picture content displayed in the page-sharing picture.

[0007] On the one hand, a method for generating a page sharing picture is provided, comprising:

[0008] Receive an image request message triggered by a client for a currently displayed target application page, where the image request message includes business dynamic data associated with the target application page;

[0009] Generate a page sharing image showing business dynamic data;

[0010] Return the page shared image to the client.

[0011] In one aspect, a page sharing method is provided, comprising:

[0012] In response to the target user's business sharing operation on the target application page, jump to the communication interaction window;

[0013] A page sharing picture of the target application page is displayed in the communication interaction window, and business dynamic data associated with the target application page is displayed in the page sharing picture.

[0014] On the one hand, a device for generating a page sharing picture is provided, comprising:

[0015] a receiving unit, configured to receive an image request message triggered by a client for a currently displayed target application page, wherein the image request message includes business dynamic data associated with the target application page;

[0016] A generating unit, configured to generate a page sharing image displaying business dynamic data;

[0017] The return unit is used to return the page sharing image to the client.

[0018] Preferably, the image request message further includes image template identification information corresponding to the page sharing image, and the image template identification information is obtained from page configuration information corresponding to the target application page; and the generating unit is used to:

[0019] Get the page sharing image template corresponding to the image template identification information;

[0020] Generate a page sharing image that displays business dynamic data based on the page sharing image template.

[0021] Preferably, the image request message further includes image drawing information, the page sharing image template includes at least one dynamic parameter information, the business dynamic data includes each dynamic parameter information and dynamic data corresponding to each dynamic parameter information, and the business dynamic data and image drawing information are obtained from the page configuration information; and the generation unit is used to:

[0022] Fill the page sharing picture template with each business dynamic data according to each dynamic parameter information and the dynamic data corresponding to each dynamic parameter information to obtain the target page sharing picture template;

[0023] Based on the image drawing information, the target page sharing image template is rendered and screenshotted to obtain the page sharing image.

[0024] Preferably, the generating unit is used to:

[0025] Obtaining load indication information of each image drawing application included in the image drawing application set, wherein each image drawing application adopts a single-process mode;

[0026] Filtering out a picture drawing application meeting a preset filtering condition from the picture drawing applications according to the load indication information of the picture drawing applications;

[0027] Through the filtered image drawing applications, according to the target page sharing image template and image drawing information, image rendering and screenshot are performed to obtain the page sharing image.

[0028] Preferably, the generating unit is further configured to:

[0029] When the image retrieval indication contained in the image request message indicates image retrieval, if the target database contains a page sharing image corresponding to the image identification information, the page sharing image is obtained from the target database; otherwise, a page sharing image displaying business dynamic data is generated, and the page sharing image is saved in the target database with the image identification information as the index.

[0030] Preferably, the return unit is used to:

[0031] When the image format indication information indicates binary, obtaining image binary information corresponding to the page shared image, and returning the image binary information to the client, so that the client updates the page configuration information corresponding to the target application page based on the image binary information;

[0032] When the image format indication information indicates the image download address, the image download address information corresponding to the page shared image is obtained and returned to the client, so that the client updates the page configuration information corresponding to the target application page based on the image download address information.

[0033] Preferably, the dynamic data includes any one or combination of the following:

[0034] User attribute data corresponding to the target user who logs into the client, and business data of the target user who logs into the client on the target application page during the set time period.

[0035] In one aspect, a page sharing device is provided, comprising:

[0036] A sharing unit, configured to jump to a communication interaction window in response to a target user's service sharing operation on a target application page;

[0037] The display unit is used to display a page sharing picture of the target application page in the communication interaction window, wherein the page sharing picture displays business dynamic data associated with the target application page.

[0038] Preferably, the sharing unit is also used for:

[0039] Get the business dynamic data corresponding to the target application page;

[0040] Sending a picture request message containing business dynamic data to the control device;

[0041] The receiving control device shares the picture based on the page returned by the picture request message.

[0042] On the one hand, a control device is provided, including a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the program, the steps of generating any of the above-mentioned page sharing pictures or page sharing methods are performed.

[0043] On the one hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of generating any of the above-mentioned page sharing pictures or page sharing methods are implemented.

[0044] In one aspect, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the aforementioned methods for generating a page sharing image or various optional implementations of page sharing.

[0045] In a method and apparatus for generating and sharing a page sharing picture provided by an embodiment of the present application, the client displays the target application page requested by the user in response to the application page display operation, and sends a picture request message triggered for the target application page to the control device. The server obtains the business dynamic data associated with the target application page contained in the picture request message, generates a page sharing picture displaying the above-mentioned business dynamic data, and returns the page sharing picture to the client. The client displays the page sharing picture in the communication interaction window in response to the business sharing operation for the target application page. In this way, the page sharing picture set for the target application page can be automatically updated each time a picture request message is received, so that the current business dynamic data is displayed in the page sharing picture, thereby improving the real-time and effectiveness of the picture content corresponding to the page sharing picture.

[0046] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present application. The purposes and other advantages of the present application can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0048] Figure 1This is an architecture diagram of a page sharing image generation and page sharing system in an embodiment of the present application;

[0049] Figure 2 This is a flowchart of a method for generating a page sharing picture and sharing a page in an embodiment of the present application;

[0050] Figure 3a This is an example diagram of a page sharing picture template in an embodiment of this application;

[0051] Figure 3b This is an example diagram of a target page sharing image template in an embodiment of this application;

[0052] Figure 3c This is an example diagram of a pool structure in an embodiment of the present application;

[0053] Figure 3d This is an example diagram of a game sharing page in an embodiment of this application;

[0054] Figure 4 This is a detailed implementation flowchart of a method for generating a page sharing picture in an embodiment of the present application;

[0055] Figure 5 This is an interactive flow chart of a page sharing method in an embodiment of the present application;

[0056] Figure 6a This is an example of a page sharing picture in a related technology in the implementation of this application Figure 1 ;

[0057] Figure 6b This is an example of a page sharing picture in a related technology in the implementation of this application Figure 2 ;

[0058] Figure 6c This is an example picture of a book sharing picture in the implementation manner of this application;

[0059] Figure 6d This is an example of an operation sharing picture in the implementation method of this application Figure 1 ;

[0060] Figure 6e This is an example of an operation sharing picture in the implementation method of this application Figure 2 ;

[0061] Figure 7a This is a schematic diagram of the structure of a device for generating a page sharing picture in an embodiment of the present application. Figure 1 ;

[0062] Figure 7b This is a schematic diagram of the structure of a page sharing device in the embodiment of this application. Figure 2 ;

[0063] Figure 8 This is a structural diagram of a control device in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solutions and beneficial effects of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0065] First, some of the terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0066] Terminal device: can be a mobile terminal, fixed terminal or portable terminal, such as a mobile phone, station, unit, device, multimedia computer, multimedia tablet, Internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system device, personal navigation device, personal digital assistant, audio / video player, digital camera / camcorder, positioning device, television receiver, radio broadcast receiver, e-book device, gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. It is also foreseeable that the terminal device can support any type of user interface (such as wearable device), etc.

[0067] Server: It can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms.

[0068] Cloud storage: A new concept that has been extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and business access functions.

[0069] Currently, storage systems utilize a method for creating logical volumes. When creating a logical volume, physical storage space is allocated for each logical volume. This physical storage space may consist of disks on a specific storage device or several storage devices. Applications store data on a logical volume, essentially storing it on a file system. The file system divides the data into multiple parts, each of which is an object. Objects contain not only the data but also additional information such as data identifiers. The file system writes each object to the physical storage space of the logical volume and records the storage location of each object. This allows applications to access data based on the object's storage location information when they request access.

[0070] The storage system allocates physical storage space to logical volumes by pre-dividing the physical storage space into stripes based on the estimated capacity of the objects to be stored in the logical volume (this estimate usually has a large margin relative to the actual capacity of the objects to be stored) and the Redundant Array of Independent Disks (RAID) groupings. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.

[0071] Database: Simply put, it can be thought of as a digital filing cabinet—a place where electronic files are stored, where users can add, query, update, and delete data. A database is a collection of data stored in a specific way, shared by multiple users, with minimal redundancy, and independent of applications.

[0072] A database management system (DBMS) is a computer software system designed for managing databases, typically providing basic functions such as storage, retrieval, security, and backup. DBMSs can be categorized by the database model they support, such as relational or XML; by the type of computer they support, such as server clusters or mobile phones; by the query language they use, such as Structured Query Language (SQL) or XQuery; by performance priorities, such as maximum scale or maximum speed; or by other classification methods. Regardless of the classification method used, some DBMSs can cross categories, for example, supporting multiple query languages simultaneously.

[0073] Image template identification information: used to mark the page sharing image template that needs to be drawn.

[0074] The following introduces the design concept of the embodiment of this application.

[0075] With the development of Internet technology, the types and number of applications are increasing, and the corresponding mini-programs are also increasing accordingly. Since mini-programs do not require software download and installation, their application is becoming more and more popular.

[0076] In some application scenarios, applications usually need to use pre-configured pictures for page sharing. To improve page sharing efficiency, the pictures are usually pre-configured designated pictures.

[0077] For example, in order to improve the efficiency of mini program page sharing, it is necessary to pre-configure a designated page sharing picture for each application page, so that when the mini program responds to the user's page sharing operation, it can quickly share the page according to the configured page sharing picture.

[0078] In the related art, when configuring a page sharing picture for an application page of a mini program, the mini program usually configures a specified page sharing picture for the application page.

[0079] However, page sharing pictures are usually fixed and difficult to change according to real-time changes in the business of the application page. The effectiveness and real-time performance of the page sharing picture content are poor.

[0080] Obviously, the relevant technology does not provide a technical solution for page image configuration and page sharing that can reduce the update cost of page shared images and improve the effectiveness and real-time nature of the image content displayed in page shared images. Therefore, a technical solution for generating and sharing page shared images is needed to reduce the image update cost and improve the effectiveness and real-time nature of the image content corresponding to the page shared images when configuring page shared images for the application page of the application.

[0081] In view of the above analysis and considerations, a data processing solution is provided in an embodiment of the present application, in which the client displays the target application page requested by the user in response to the application page display operation, and sends a picture request message triggered for the target application page to the control device. The server obtains the business dynamic data associated with the target application page contained in the picture request message, generates a page sharing picture displaying the above business dynamic data, and returns the page sharing picture to the client. The client updates the page configuration information corresponding to the target application page based on the received page sharing picture. In response to the business sharing operation for the target application page, the client displays the page sharing picture in the communication interaction window between the target user and the sharing object.

[0082] To further illustrate the technical solutions provided by the embodiments of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of the present application provide the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on conventional or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present application. During the actual processing process or when the device is executed, the method can be executed in the order of the methods shown in the embodiments or drawings or in parallel.

[0083] The terms "first," "second," and the like (if any) in the description and claims of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.

[0084] See Figure 1 The figure shows an architecture diagram of a system for generating and sharing page-sharing images. The system includes a control device 101 and multiple user devices 102. The control device 101 is typically a backend server, but can also be a terminal device. The user device 102 can also be a terminal device. The client can be located in the control device 101 and / or the user device 102. The client can be an application or a mini-program running within an application.

[0085] The client is used to display the target application page requested by the user in response to an application page display operation, obtain the latest business dynamic data associated with the target application page, send an image request message containing the business dynamic data triggered by the target application page to the control device 101, receive the page sharing image returned by the control device 101 based on the image request message, and update the page configuration information corresponding to the target application page based on the page sharing image; it is also used to display the page sharing image in the communication interaction window between the target user and the sharing object in response to a business sharing operation on the target application page. The user device 102 corresponding to the target object is used to jump to the target application page in response to an application jump operation on the page sharing image displayed in the communication interaction window.

[0086] Control device 101: Receives an image request message sent by the client for the target application page, obtains the business dynamic data and image template identification information contained in the image request message, obtains the page sharing image template corresponding to the image template identification information, and replaces the dynamic parameter information in the page sharing image template with the corresponding dynamic data based on the dynamic parameter information and corresponding dynamic data contained in the business dynamic data, obtains the page sharing image, and returns the page sharing image to the client.

[0087] Furthermore, the control device 101 also obtains the image identification information contained in the image request message and associates the page-sharing image with the image identification information and stores it in the target database. Thus, when a subsequent image request message is received from the client for the target application page, if the image request message contains the image identification information and an image retrieval instruction indicating image retrieval, and if the target database stores a page-sharing image corresponding to the image identification information, the retrieved page-sharing image is returned to the client, thereby avoiding duplicate image drawing and simplifying the tedious operation of obtaining page-sharing images.

[0088] The client may be located in the user device 102 or in the control device 101 .

[0089] For example, the client is a reading applet in the user's mobile phone, and the control device 101 is the background server corresponding to the reading applet. For another example, the client is a game applet in the user's mobile phone, and the control device 101 is the user's mobile phone.

[0090] Optionally, the target database can be in the form of a database or cloud storage, such as the memory, external storage or Tencent Cloud cos service of the control device, etc., which is not limited here.

[0091] In an embodiment of the present application, when a user opens the target application page of the client, the client can obtain the latest business dynamic data related to the business in the target application page from a local or business-related server, and then generate and share a page sharing picture that displays the latest business dynamic data, so that the page sharing picture can be automatically updated to display the latest business dynamic data, without the need for manual picture drawing and page configuration information update. The real-time and effectiveness of the page sharing picture content are high, and users can intuitively and clearly obtain effective information from the page sharing picture, thereby improving the real-time and effectiveness of the picture content corresponding to the page sharing picture.

[0092] See Figure 2 The figure shows a flow chart of the method for generating and sharing a page image provided by this application. The specific process of the method is as follows:

[0093] Step 200: The client sends an image request message to the control device for the currently displayed target application page.

[0094] Specifically, when executing step 200, the following methods can be used:

[0095] The first way is: the client displays the target application page requested by the user in response to the application page display operation, and sends an image request message to the control device for the currently displayed target application page.

[0096] Specifically, after the user launches the client, they execute an application page display operation on the client's page, sending a command to the client to display the target application page requested by the user. After receiving the target application page command, the client jumps to the target application page requested by the user, obtains the page configuration information corresponding to the target application page, obtains the business dynamic data associated with the target application page from a local or associated server, and sends an image request message to the control device based on the page configuration information and business dynamic data.

[0097] Optionally, the client can be an application or a mini-program. The client can be located in the control device or a device other than the control device. The target application page can be any page in the client. Application page display operations can be executed through button clicks, touch screen triggering, sound triggering, odor triggering, shaking, and other sensor triggering methods, without limitation.

[0098] That is, when the page is displayed, an image request message is sent.

[0099] The second way is: the client responds to the target user's business sharing operation on the target application page, obtains business dynamic data corresponding to the target application page, and sends a picture request message containing the business dynamic data to the control device.

[0100] Specifically, the client responds to the target user's business sharing operation on the target application page, jumps to the communication interaction window, obtains the page configuration information corresponding to the target application page, obtains the business dynamic data associated with the target application page from the local or associated server, and sends a picture request message to the control device based on the page configuration information and business dynamic data.

[0101] That is, when a user shares a service, a picture request message is sent.

[0102] The third method is: the client periodically sends an image request message to the control device for the currently displayed target application page.

[0103] Specifically, the client obtains the page configuration information corresponding to the currently displayed target application page according to the preset request duration, obtains the business dynamic data associated with the target application page from the local or associated server, and sends an image request message to the control device based on the page configuration information and business dynamic data.

[0104] The preset request duration can be set according to the actual application scenario, such as 2s, which is not limited here.

[0105] That is, the image request message is sent periodically.

[0106] Among them, business dynamic data is dynamic data associated with the business in the target application page, including dynamic parameter information and corresponding dynamic data. Business dynamic data may include a set of dynamic parameter information and dynamic data, or may include multiple sets of dynamic parameter information and dynamic data. Dynamic data includes any one or a combination of the following: user attribute data corresponding to the target user who logs in to the client, and business data of the target user who logs in to the client for related business performed based on the target application page within a set time period. In actual applications, the set time period can be set according to the actual application scenario, such as within the last 1 hour. In this way, the latest dynamic data related to the business can be obtained.

[0107] For example, the business dynamic data is: %USERNAME% = Zhang San, which means that the dynamic parameter information is %USERNAME%, and the corresponding dynamic data is Zhang San, that is, the user currently logged in to the mini program is Zhang San.

[0108] For another example, business dynamic data includes: Book Name = Dream of the Red Chamber, and Cumulative Number of Readers = 140,000, which means that the book currently opened by the user is Dream of the Red Chamber, and the current cumulative number of readers of Dream of the Red Chamber is 140,000.

[0109] Page configuration information is information pre-configured by the client for each application page to generate images for sharing. The page configuration information includes at least one of the following: image template identification information, image drawing information, image retrieval instructions, image identification information, and image format instructions. The image request message includes at least business dynamic data and may also include at least one of the information in the page configuration information.

[0110] For example, the image request message includes the following fields: image template identification information (templateId), business dynamic data (replacements), image drawing information (meta), image retrieval instruction (ignoresCache), image identification information (cacheKey), and image format instruction information (prefersBinary).

[0111] For another example, assuming that the client is a mini program and the target application page is the Dream of the Red Chamber reading page, the user launches the reading mini program through WeChat and clicks "Dream of the Red Chamber" on the homepage of the reading mini program, so that the reading mini program displays the Dream of the Red Chamber reading page, and obtains the page configuration information and business dynamic data corresponding to the Dream of the Red Chamber reading page, and sends an image request message to the server based on the page configuration information and business dynamic data.

[0112] In this way, when the user requests the target application page, an image request message can be sent to the control device to obtain the corresponding page sharing image.

[0113] Step 201: The control device receives an image request message triggered by a client for a currently displayed target application page, and obtains business dynamic data included in the image request message.

[0114] Step 202: Control the device to generate a page sharing image displaying business dynamic data.

[0115] Specifically, when the image request message also includes an image retrieval instruction and image identification information, and the image retrieval instruction indicates an image retrieval, if the target database contains a page sharing image corresponding to the image identification information, the page sharing image is retrieved from the target database. Otherwise, a page sharing image displaying the business dynamic data is generated. Furthermore, the control device saves the page sharing image in the target database using the image identification information as an index.

[0116] That is, when the image request message includes an image retrieval instruction and image identification information, and the image retrieval instruction indicates an image retrieval, and the target database stores a page-sharing image corresponding to the image identification information, there is no need to redraw the page image. When the image request message does not include either the image retrieval instruction or the image identification information, or the image retrieval instruction indicates a non-image retrieval, or the target database does not store a page-sharing image corresponding to the image identification information, the page-sharing image needs to be regenerated based on the business dynamic data.

[0117] The image retrieval indication is used to indicate whether to perform an image retrieval. The image identification information is determined based on business dynamic data and is used to identify the images shared on the page.

[0118] In one embodiment, the image identification information is determined based on business-related data and / or user-related information, as well as business dynamic data. When the data used to determine the image identification information is not updated, the image identification information remains unchanged.

[0119] For example, when sharing a game, the image identification information is a string generated based on the user name, user avatar, and user level.

[0120] For another example, when sharing a book, the image identification information is a string consisting of the book title, number of subscribers, and rating.

[0121] In one application scenario, the hit rate of image retrieval is 85%. In this way, if the target database contains images corresponding to the image identification information, the tedious steps of repeatedly drawing images are reduced, and the efficiency of image acquisition is improved.

[0122] In one embodiment, the image request message also includes image template identification information. When the control device generates a page sharing image displaying business dynamic data, the following steps can be taken:

[0123] The control device obtains the image template identification information also included in the image request message, obtains the page sharing image template set corresponding to the image template identification information, and generates a page sharing image displaying business dynamic data based on the page sharing image template.

[0124] The image template identification information is obtained from the page configuration information corresponding to the target application page. It is set for the page sharing image template corresponding to the page sharing image. The page sharing image template is set for the target application page, such as the book page sharing image template and the game sharing invitation page sharing image template. The page sharing image template includes at least one dynamic parameter information. The dynamic parameter information in the page sharing image template can also be called a placeholder. As the name suggests, it is used to fill in data in the image template. In other words, the dynamic parameter information in the page sharing image template is used to replace it with the corresponding dynamic data.

[0125] It should be noted that the page sharing image template is not an image, but a template for image drawing generated by HyperText Markup Language (HTML), Cascading Style Sheets (CSS) or Javascript.

[0126] Before executing step 202 , the control device pre-generates page sharing picture templates, sets corresponding picture template identification information for each page sharing picture template, and establishes and stores a correspondence between the page sharing picture templates and the picture template identification information.

[0127] For example, see Figure 3a The following is an example of a page sharing picture template. Figure 3a In the page sharing image template shown, the dotted box contains dynamic parameter information, including: book cover, rating, number of reviews, book title, author, and number of readers.

[0128] If the image request message also includes image drawing information, the following steps can be used to generate a page sharing image displaying business dynamic data based on the page sharing image template:

[0129] S2021: The control device fills each business dynamic data in the page sharing picture template according to each dynamic parameter information and the dynamic data corresponding to each dynamic parameter information, and obtains the target page sharing picture template.

[0130] Specifically, the control device replaces the dynamic parameter information in the page sharing picture template with the corresponding dynamic data to obtain the target page sharing picture template.

[0131] See Figure 3b The following is an example of a target page sharing image template. The business dynamic data obtained by the control device are: Book Name = Wine, Author = Mr. Ding, Rating = 8.4****, Number of Comments = 305, Number of Readers = 8051. The control device will Figure 3a Replace the dynamic parameter information in the page sharing picture template shown with the corresponding dynamic data to obtain Figure 3b The picture template shown.

[0132] S2022: The control device renders and takes a screenshot of the target page sharing template based on the image drawing information to obtain a page sharing image.

[0133] Specifically, the control device obtains the image drawing information also included in the image request message, and obtains the load indication information of each image drawing application included in the image drawing application set, and based on the load indication information of each image drawing application, screens out an image drawing application that meets the preset screening conditions from each image drawing application, and uses the screened image drawing application to share the image template and image drawing information according to the target page, perform image rendering and screenshot, and obtain the page sharing image.

[0134] The picture drawing information may be any one or any combination of the following parameters: picture width, height, screen resolution multiple, international digital image compression standard (Joint Photo graphic Experts Group, JPG) compression ratio, etc.

[0135] For example, assuming that the page sharing picture to be generated is a mini program thumbnail, the picture drawing information can be set to: the aspect ratio of the picture is 1:1. Assuming that the page sharing picture to be generated is a poster picture, the picture drawing information can be set to: the aspect ratio of the picture is 3:1.

[0136] In actual applications, the picture drawing information may also be other parameters, which can be set according to actual application scenarios and are not limited here.

[0137] The image drawing application can be a browser, a graphics extension library (GD), a graphics extension library (ImageMagick), etc. For example, the browser can be Google Chrome or a headless browser (Headless Chrome). In actual applications, the corresponding image drawing application can be selected according to the actual application scenario, and there is no limitation here.

[0138] The image drawing application uses a single-process mode to reduce the cost of process context switching and improve image drawing efficiency. Load indication information is used to indicate the running resource status of the image drawing application. The image drawing application collection can be a pool. Each image drawing application can be a single application or multiple applications, without limitation. Headless Chrome is a Chrome browser without a graphical interface (GUI). It has no user interface and is executed via the command line.

[0139] In one embodiment, when selecting a picture drawing application that meets the preset screening conditions from various picture drawing applications, the following steps may be performed:

[0140] The control device determines one or more image drawing applications with the smallest load according to the acquired load indication information of each image drawing application.

[0141] For example, the control device selects a browser instance with the smallest load based on the load indication information of each browser instance.

[0142] In actual applications, the preset filtering conditions can also be set according to the actual application scenario and are not restricted here.

[0143] In one embodiment, according to the target page shared image template and image drawing information, image rendering and screenshot are performed. When obtaining the page shared image, the following steps can be performed:

[0144] The control device selects an idle window according to the screened picture drawing application, and uses the window to render the page sharing picture template according to the picture drawing information, and takes a screenshot of the rendered picture to obtain and save the page sharing picture.

[0145] Furthermore, the control device may also close the window after determining that the page sharing picture is obtained.

[0146] The window is used for image rendering and screenshots, and can be pre-started or created in real time. Optionally, the window can be a browser window (tab).

[0147] See Figure 3c The figure shows an example of a pool structure. Figure 3c In the example, the browser pool includes browser instance 1, browser instance 2, browser instance 3, and browser instance 4. Each browser instance includes one or more windows, namely tab1, tab2, ...

[0148] Before executing step 202 , the control device pre-creates and starts multiple picture drawing applications, and adds each picture drawing application to a picture drawing application set so as to perform the same scheduling management.

[0149] In one implementation, the control device creates a browser instance, stores the created browser instance in a pool for management, enables a single-process mode of the browser instance, and performs parameter tuning on the browser instance.

[0150] For example, the control device enables single-process mode and parameter tuning through the following instructions: --single-process; --disable-gpu --no-first-run --disable-dev-shm-usage --disable-extensions.

[0151] Among them, --single-process: used to enable single-process mode; --disable-gpu: used to turn off GPU acceleration; --no-first-run: used to turn off unnecessary information for the first startup; --disable-dev-shm-usage: used to save resources; --disable-extensions: disable browser plug-ins.

[0152] Since GPU acceleration is enabled by default on user desktops, but most servers lack GPUs / graphics processors, enabling it will result in negative optimization. Therefore, you can disable GPU acceleration with the --disable-gpu option. Browsers like Chrome perform special logic on first startup, such as displaying a welcome page and providing user education. This information is not needed in our scenario, so it can be disabled with the --no-first-run option. Furthermore, you can disable browser plug-ins with the --disable-extensions option to improve performance. A typical cold start time is 600ms. This can significantly reduce the cold start time of image rendering applications.

[0153] Since browsers usually have memory leak problems, that is, if the browser is not closed for a long time, it will occupy more and more memory, resulting in longer and longer freezing time. Therefore, in an embodiment of the present application, a timer is used to periodically move each browser instance in the pool to the area to be destroyed according to a preset duration, and multiple browser instances are regenerated and the regenerated browser instances are saved in the pool. The control device determines that the tabs of the browser instances in the area to be destroyed are all closed and then destroyed. Among them, the tabs of the browser instance are all closed means that all the drawing and screenshot tasks processed by the browser instance are completed.

[0154] For example, the preset duration may be 30 minutes. In actual applications, the preset duration may be set according to actual application scenarios and is not limited here.

[0155] In the embodiment of the present application, only obtaining a page sharing picture through a browser instance is used as an example for explanation. Similarly, page sharing pictures can also be obtained through other picture drawing applications, which will not be repeated here.

[0156] In the embodiments of this application, HTML, CSS, or JavaScript are used to generate a page-sharing image template, which is then rendered by the browser according to the page-sharing image template. A screenshot is then taken to pin the drawn image and obtain the page-sharing image, thus balancing development convenience and drawing efficiency. Furthermore, by pre-creating and launching multiple windows of image drawing applications, image drawing efficiency is further improved. The single-process mode reduces the resource and time loss of process context switching. Furthermore, by periodically updating browser instances, memory usage and lag time are reduced, further improving image drawing efficiency.

[0157] Step 203: The control device returns the page sharing image to the client.

[0158] Specifically, the image request message further includes image format indication information. The control device obtains the image format indication information included in the image request message and returns the page sharing image to the client based on the image format indication information.

[0159] The image format indication information includes binary and an image download address. The image download address can be a Uniform Resource Locator (URL). In actual applications, the image format indication information can also be in other formats and can be set according to actual application scenarios, which is not limited here.

[0160] Based on the image format indication information, the following two methods can be used to return the page shared image to the client:

[0161] The first method is: when the image format indication information indicates binary, the control device obtains the image binary information corresponding to the page shared image, and returns the image binary information to the client.

[0162] The second way is: when the picture format indication information indicates the picture download address, the control device obtains the picture download address information corresponding to the page shared picture, and returns the picture download address information to the client.

[0163] In this way, the page sharing pictures can be returned to the client in the form of binary information or URL, which improves the transmission efficiency and reduces the consumption of broadband resources.

[0164] Step 204: The client receives the page sharing image returned by the control device, and updates the page configuration information corresponding to the target application page based on the page sharing image.

[0165] Specifically, when the client receives the image binary information, the control device updates the page configuration information corresponding to the target application page based on the image binary information. When the client receives the image download address information, the control device updates the page configuration information corresponding to the target application page based on the image download address information.

[0166] That is, the binary information or the image download address information of the page sharing image in the page configuration information corresponding to the target application page is updated to the binary information or the image download address information returned by the control device.

[0167] Step 205: In response to the target user's service sharing operation on the target application page, the client jumps to the communication interaction window and displays the page sharing image of the target application page in the communication interaction window.

[0168] Specifically, the client responds to the target user's business sharing operation on the target application page, displays the identification information of each communication friend of the target object, obtains the sharing object selected by the target user among each communication friend, and based on the page sharing picture in the page configuration information, displays the page sharing picture corresponding to the page sharing picture information in the communication interaction window between the target user and the sharing object.

[0169] That is to say, in response to the business sharing operation, the client obtains the binary information or picture download address information of the page sharing picture in the page configuration information, and generates and displays the page sharing picture based on the binary information of the page sharing picture in the communication interaction window between the target user and the sharing object, or downloads and displays the page sharing picture based on the picture download address information.

[0170] It should be noted that the page sharing picture displayed in the communication interaction window is in the form of a hyperlink. The user device corresponding to the sharing object responds to the application jump operation of the sharing object for the page sharing picture displayed in the communication interaction window, and jumps to the target application page, thereby realizing the sharing of mini program pages between users.

[0171] Furthermore, in response to the business sharing operation on the target application page, the client may further include a business sharing page including a page sharing image, and display the business sharing page in the communication interaction window between the target user and the sharing object.

[0172] That is to say, when sharing a page, the page sharing picture can be displayed in the communication interaction window, and the business sharing page can also be displayed.

[0173] In one embodiment, a user clicks a service sharing button on a target application page. In response to the user's service sharing operation, the client generates a service sharing page based on the shared image on the page and sends the service sharing page to the target application's communication application, based on the target's communication application account. After receiving the service sharing page, the target's communication application responds to an application redirection operation on the service sharing page and redirects to the target application page.

[0174] For example, see Figure 3d The following is an example of a game sharing page. The client is a game applet, and the game sharing page includes: Neurofrog (user name), Companion Reader 1 (user level), and user avatar. When the user clicks the business sharing button on the game page, the game applet generates a game sharing page based on the game sharing picture, and sends the generated game sharing page to the communication friends through the communication application. The communication friends can see the game sharing page in the communication application and open the game applet through the game sharing page.

[0175] It should be noted that the embodiments of this application are mainly explained using the page sharing of the mini program as an example. In actual applications, the embodiments of this application can be applied to application scenarios where the image content needs to change accordingly with the dynamic changes of business data, and will not be repeated here.

[0176] The following uses a specific application scenario to illustrate the above embodiment. In this application scenario, the client is a small program in the user terminal, and the control device is a server. Figure 4 The figure shows a detailed implementation flow chart of a method for generating a page sharing picture provided by this application. The specific process of the method is as follows:

[0177] Step 400: The mini program displays the target application page requested by the user in response to the application page display operation.

[0178] Step 401: The server receives the image request message sent by the mini-program, and obtains the image retrieval instruction and image identification information also included in the image request message.

[0179] Step 402: The server determines whether the image retrieval indication indicates image retrieval. If so, the server executes step 403; otherwise, the server executes step 404.

[0180] Step 403: The server determines whether the target database contains the picture corresponding to the picture identification information. If so, step 409 is executed; otherwise, step 404 is executed.

[0181] Step 404: The server obtains the picture template identification information, business dynamic data, and picture drawing information contained in the picture request message.

[0182] Step 405: The server obtains the page sharing picture template corresponding to the picture template identification information.

[0183] Step 406: The server replaces the dynamic parameter information in the page sharing picture template with the corresponding dynamic data based on the acquired business dynamic data, and obtains the target page sharing picture template.

[0184] Step 407: The server uses the browser instance to render and capture the target page sharing image template based on the image drawing information to obtain the page sharing image.

[0185] Step 408: The server associates and stores the page shared image and image identification information in the target database.

[0186] Step 409 : The server obtains the picture format indication information included in the picture request message, and determines whether the picture format indication information is binary. If so, step 410 is executed; otherwise, step 411 is executed.

[0187] Step 410: The server returns the binary information of the page shared image to the mini program and executes step 412.

[0188] Step 411: The server returns the URL of the page sharing image to the mini program.

[0189] Step 412: The mini program updates the page configuration information corresponding to the target application page based on the received binary information or URL of the page sharing image.

[0190] Step 413: In response to the service sharing operation on the target application page, the mini program displays the page sharing picture in the communication interaction window between the target user and the sharing object based on the binary information or URL of the page sharing picture in the interface configuration information.

[0191] The following uses a specific application scenario to illustrate the above embodiment. In this application scenario, the client is located in the user device, and the control device is the server. Figure 5 The figure shows an interactive flow chart of a page sharing method provided by this application. The specific process of this method is as follows:

[0192] Step 500: The user device displays the target application page requested by the user in response to the application page display operation.

[0193] Step 501: The user equipment sends a picture request message to the server.

[0194] Step 502: The server obtains the business dynamic data in the image request message.

[0195] Step 503: The server generates a page sharing image displaying business dynamic data.

[0196] Step 504: The server returns a page for sharing pictures to the user device.

[0197] Step 505: The user device updates the page configuration information corresponding to the target application page according to the page sharing picture.

[0198] Step 506: In response to the service sharing operation on the target application page, the user device displays the page sharing image in the communication interaction window between the target user and the sharing object based on the page configuration information.

[0199] The following is a comparison between the business sharing page generated in the related art and the business sharing page generated in the embodiment of the present application.

[0200] See Figure 6a As shown, this is an example of a page sharing picture in a related technology Figure 1 See Figure 6b As shown, this is an example of a page sharing picture in a related technology Figure 2 , see Figure 6c As shown in FIG, an example picture of a book sharing picture provided in an embodiment of the present application is shown. Figure 6d The following is an example of an operation sharing picture Figure 1 , see Figure 6e The following is an example of an operation sharing picture Figure 2 .

[0201] Figure 6a The page sharing images in the are generated based on a screenshot of part of the target app page. Figure 6b The page sharing images in are generated based on the specified book images. Figure 6c The book sharing page is generated based on dynamically acquired book information. Figure 6d The operation sharing page can display the latest issue of books. Figure 6e The operation sharing page can display multiple books that are currently ranked high.

[0202] Obviously, in the related art, the page sharing images generated by screenshots have messy image information and layout, and the effectiveness and readability of the image content are poor. The page sharing images generated by using specified book images are fixed and cannot display the latest business dynamic data related to the business. In the embodiment of the present application, the page sharing images are generated by dynamic data, which can display the latest dynamic data. The page image template is pre-configured and only needs to be filled with the current dynamic data to generate different page sharing images. There is no need for manual image production, which reduces labor costs and time costs.

[0203] In an embodiment of the present application, a page sharing picture and a business sharing page containing the page sharing picture are generated through a page sharing picture template and the latest dynamic data, so that the page sharing picture can display the current latest dynamic data, making the shared page sharing picture or business sharing page more attractive, and increasing the viewing rate of the page sharing picture or business sharing page. The corresponding page sharing picture can also be automatically generated according to the page sharing picture template configured for a specific application scenario, without the need for manual picture drawing, thereby improving the picture drawing efficiency. Furthermore, through the picture retrieval method, the time and tedious steps consumed in repeated picture drawing are reduced, and by pre-creating and starting multiple picture drawing applications and windows, the cold start time of the picture drawing application is greatly reduced, and the parameters of the picture drawing application are pre-tuned, which greatly reduces the drawing time and further reduces the cost.

[0204] Based on the same inventive concept, an embodiment of the present application also provides a device for generating page sharing pictures. Since the principles of solving the problems of the above-mentioned devices and equipment are similar to those of a method for generating page sharing pictures, the implementation of the above-mentioned devices can refer to the implementation of the method, and the repeated parts will not be repeated.

[0205] like Figure 7a FIG. 1 is a schematic diagram of a structure of a device for generating a page sharing picture provided in an embodiment of the present application. Figure 1 A device for generating a page sharing picture includes:

[0206] The receiving unit 711 is configured to receive an image request message triggered by a client for a currently displayed target application page, where the image request message includes business dynamic data associated with the target application page;

[0207] A generating unit 712 is configured to generate a page sharing image displaying business dynamic data;

[0208] The returning unit 713 is used to return the page sharing picture to the client.

[0209] Preferably, the image request message further includes image template identification information corresponding to the page sharing image, and the image template identification information is obtained from page configuration information corresponding to the target application page; and the generating unit 712 is used to:

[0210] Get the page sharing image template corresponding to the image template identification information;

[0211] Generate a page sharing image that displays business dynamic data based on the page sharing image template.

[0212] Preferably, the image request message further includes image drawing information, the page sharing image template includes at least one dynamic parameter information, the business dynamic data includes each dynamic parameter information and dynamic data corresponding to each dynamic parameter information, and the business dynamic data and image drawing information are obtained from the page configuration information; and the generation unit 712 is used to:

[0213] Fill the page sharing picture template with each business dynamic data according to each dynamic parameter information and the dynamic data corresponding to each dynamic parameter information to obtain the target page sharing picture template;

[0214] Based on the image drawing information, the target page sharing image template is rendered and screenshotted to obtain the page sharing image.

[0215] Preferably, the generating unit 712 is used to:

[0216] Obtaining load indication information of each image drawing application included in the image drawing application set, wherein each image drawing application adopts a single-process mode;

[0217] Filtering out a picture drawing application meeting a preset filtering condition from the picture drawing applications according to the load indication information of the picture drawing applications;

[0218] Through the filtered image drawing applications, according to the target page sharing image template and image drawing information, image rendering and screenshot are performed to obtain the page sharing image.

[0219] Preferably, the generating unit 712 is further configured to:

[0220] When the image retrieval indication contained in the image request message indicates image retrieval, if the target database contains a page sharing image corresponding to the image identification information, the page sharing image is obtained from the target database; otherwise, a page sharing image displaying business dynamic data is generated, and the page sharing image is saved in the target database with the image identification information as the index.

[0221] Preferably, the returning unit 713 is used to:

[0222] When the image format indication information indicates binary, obtaining image binary information corresponding to the page shared image, and returning the image binary information to the client, so that the client updates the page configuration information corresponding to the target application page based on the image binary information;

[0223] When the image format indication information indicates the image download address, the image download address information corresponding to the page shared image is obtained and returned to the client, so that the client updates the page configuration information corresponding to the target application page based on the image download address information.

[0224] Preferably, the dynamic data includes any one or combination of the following:

[0225] User attribute data corresponding to the target user who logs into the client, and business data of the target user who logs into the client on the target application page during the set time period.

[0226] Based on the same inventive concept, a page sharing device is also provided in an embodiment of the present application. Since the principle of solving the problem by the above-mentioned device and equipment is similar to that of a page sharing method, the implementation of the above-mentioned device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0227] like Figure 7b FIG. 1 is a schematic diagram of a page sharing device provided in an embodiment of the present application. Figure 2 A page display device includes:

[0228] Sharing unit 721, configured to jump to the communication interaction window in response to a target user's service sharing operation on a target application page;

[0229] The display unit 722 is configured to display a page sharing picture of the target application page in the communication interaction window, wherein the page sharing picture displays business dynamic data associated with the target application page.

[0230] Preferably, the sharing unit 721 is further used for:

[0231] Get the business dynamic data corresponding to the target application page;

[0232] Sending a picture request message containing business dynamic data to the control device;

[0233] The receiving control device shares the picture based on the page returned by the picture request message.

[0234] In a method and apparatus for generating and sharing a page sharing picture provided by an embodiment of the present application, the client displays the target application page requested by the user in response to the application page display operation, and sends a picture request message triggered for the target application page to the control device. The server obtains the business dynamic data associated with the target application page contained in the picture request message, generates a page sharing picture displaying the above-mentioned business dynamic data, and returns the page sharing picture to the client. The client displays the page sharing picture in the communication interaction window in response to the business sharing operation for the target application page. In this way, the page sharing picture set for the target application page can be automatically updated each time a picture request message is received, so that the current business dynamic data is displayed in the page sharing picture, which reduces the update cost of the page sharing picture and improves the real-time and effectiveness of the picture content corresponding to the page sharing picture.

[0235] Figure 8 FIG1 shows a schematic diagram of the structure of a control device 8000. Figure 8 As shown, the control device 8000 includes: a processor 8010, a memory 8020, a power supply 8030, a display unit 8040, and an input unit 8050.

[0236] The processor 8010 is the control center of the control device 8000. It uses various interfaces and lines to connect various components, and performs various functions of the control device 8000 by running or executing software programs and / or data stored in the memory 8020, thereby monitoring the control device 8000 as a whole.

[0237] In the embodiment of the present application, the processor 8010 executes the following when calling the computer program stored in the memory 8020: Figure 2 The embodiment shown in provides a method for generating a page sharing picture and a page sharing method.

[0238] Optionally, the processor 8010 may include one or more processing units. Preferably, the processor 8010 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and applications, and the modem processor primarily processes wireless communications. It is understood that the modem processor may not be integrated into the processor 8010. In some embodiments, the processor and memory may be implemented on a single chip. In some embodiments, they may also be implemented on separate chips.

[0239] The memory 8020 may primarily include a program storage area and a data storage area. The program storage area may store an operating system, various applications, and the like; the data storage area may store data generated based on the use of the control device 8000. Furthermore, the memory 8020 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state memory device.

[0240] The control device 8000 also includes a power supply 8030 (such as a battery) for supplying power to various components. The power supply can be logically connected to the processor 8010 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.

[0241] The display unit 8040 can be used to display information input by the user or information provided to the user, as well as various menus of the control device 8000. In the embodiment of the present invention, it is mainly used to display the display interface of each application in the control device 8000 and objects such as text and images displayed on the display interface. The display unit 8040 may include a display panel 8041. The display panel 8041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.

[0242] The input unit 8050 can be used to receive information such as numbers or characters input by the user. The input unit 8050 may include a touch panel 8051 and other input devices 8052. The touch panel 8051, also known as a touch screen, can receive user touch operations on or near it (for example, operations performed by the user using a finger, a stylus, or any other suitable object or accessory on or near the touch panel 8051).

[0243] Specifically, the touch panel 8051 can detect user touch operations and the signals generated by the touch operations, convert these signals into touch point coordinates, and send them to the processor 8010. It can also receive and execute commands sent by the processor 8010. In addition, the touch panel 8051 can be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. Other input devices 8052 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, a joystick, etc.

[0244] Of course, the touch panel 8051 can cover the display panel 8041. When the touch panel 8051 detects a touch operation on or near it, it transmits it to the processor 8010 to determine the type of touch event. Then the processor 8010 provides corresponding visual output on the display panel 8041 according to the type of touch event. Figure 8 In the embodiment, the touch panel 8051 and the display panel 8041 are two independent components to realize the input and output functions of the control device 8000, but in some embodiments, the touch panel 8051 and the display panel 8041 can be integrated to realize the input and output functions of the control device 8000.

[0245] The control device 8000 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc. Of course, according to the needs of specific applications, the control device 8000 may also include other components such as a camera. Since these components are not the key components used in the embodiments of this application, Figure 8 It is not shown and will not be described in detail.

[0246] Those skilled in the art will understand that Figure 8 This is merely an example of a control device and does not constitute a limitation on the control device. The control device may include more or fewer components than shown in the figure, or a combination of certain components, or different components.

[0247] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the generation of page sharing pictures and the page sharing method in any of the above method embodiments.

[0248] The present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the page sharing image generation and page sharing method described in any of the above method embodiments.

[0249] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the relevant technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a control device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or certain parts of the embodiment.

[0250] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for generating a page sharing picture, characterized in that: include: Receive an image request message triggered by a client for a currently displayed target application page, the image request message including business dynamic data associated with the target application page; the business dynamic data including various dynamic parameter information and dynamic data corresponding to each dynamic parameter information, the dynamic data including business data of a target user logged into the client performing related business based on the target application page within a set time period; the image request message further including an image retrieval instruction and image identification information, the image identification information being determined based on business-related data and / or user-related information, and the business dynamic data; and when the data used to determine the image identification information is not updated, the image identification information remains unchanged; When the image retrieval instruction included in the image request message indicates image retrieval, if the target database includes a page sharing image corresponding to the image identification information, obtaining the page sharing image from the target database; Otherwise, a page sharing picture displaying the business dynamic data is generated, and the page sharing picture is saved in the target database with the picture identification information as an index; the page sharing picture is a mini program thumbnail; Returning the page sharing image to the client, so that the client updates the page configuration information corresponding to the target application page; The client jumps to the communication interaction window in response to the target user's business sharing operation on the target application page, and displays a page sharing image in a hyperlink form in the communication interaction window based on the page configuration information.

2. The method according to claim 1, wherein The picture request message also includes picture template identification information corresponding to the page sharing picture, and the picture template identification information is obtained from the page configuration information corresponding to the target application page; The generating of a page sharing picture displaying the business dynamic data includes: Obtain the page sharing picture template corresponding to the picture template identification information; Based on the page sharing picture template, a page sharing picture displaying the business dynamic data is generated.

3. The method according to claim 2, wherein The picture request message further includes picture drawing information, the page sharing picture template includes at least one dynamic parameter information, and the business dynamic data and the picture drawing information are obtained from the page configuration information; as well as The step of generating a page sharing picture displaying the business dynamic data based on the page sharing picture template includes: Fill the page sharing picture template with each business dynamic data according to each dynamic parameter information and the dynamic data corresponding to each dynamic parameter information to obtain the target page sharing picture template; Based on the picture drawing information, the target page sharing picture template is rendered and captured to obtain the page sharing picture.

4. The method according to claim 3, wherein Based on the image drawing information, rendering and taking a screenshot of the target page sharing image template to obtain the page sharing image includes: Obtaining load indication information of each image drawing application included in the image drawing application set, wherein each image drawing application adopts a single-process mode; Filtering out a picture drawing application meeting a preset filtering condition from the picture drawing applications according to the load indication information of the picture drawing applications; The screened picture drawing application is used to render and take screenshots according to the target page sharing picture template and the picture drawing information to obtain a page sharing picture.

5. The method according to any one of claims 1 to 4, characterized in that The picture request message also includes picture format indication information, and returning the page sharing picture to the client includes: When the image format indication information indicates binary, obtaining image binary information corresponding to the page shared image, and returning the image binary information to the client, so that the client updates page configuration information corresponding to the target application page based on the image binary information; When the image format indication information indicates an image download address, the image download address information corresponding to the page shared image is obtained and returned to the client, so that the client updates the page configuration information corresponding to the target application page based on the image download address information.

6. The method according to any one of claims 1 to 4, characterized in that The dynamic data also includes: User attribute data corresponding to the target user who logs into the client.

7. A page sharing method, characterized in that: include: In response to the target user's business sharing operation on the target application page, jump to the communication interaction window; Based on the page configuration information corresponding to the target application page, displaying a page sharing image in the form of a hyperlink in the communication interaction window; Before displaying the page sharing picture in the form of a hyperlink in the communication interaction window, the method further includes: Obtaining business dynamic data corresponding to the target application page; the business dynamic data includes various dynamic parameter information and dynamic data corresponding to each dynamic parameter information, and the dynamic data includes business data of related businesses performed by the target user who logged into the client based on the target application page within a set time period; Sending a picture request message containing business dynamic data to a control device, so that the control device executes: when the picture retrieval instruction contained in the picture request message indicates picture retrieval, if the target database contains a page sharing picture corresponding to the picture identification information, obtaining the page sharing picture from the target database; otherwise, generating a page sharing picture displaying the business dynamic data; the picture request message further includes the picture retrieval instruction and the picture identification information, the picture identification information being determined based on the business-related data and / or user-related information, as well as the business dynamic data; when the data used to determine the picture identification information is not updated, the picture identification information remains unchanged; receiving a page sharing picture returned by the control device based on the picture request message, wherein the page sharing picture is a thumbnail of the mini program; Update the page configuration information corresponding to the target application page.

8. A device for generating a page sharing picture, characterized in that: include: A receiving unit, configured to receive an image request message triggered by a client for a currently displayed target application page, the image request message including business dynamic data associated with the target application page; the business dynamic data including various dynamic parameter information and dynamic data corresponding to each dynamic parameter information, the dynamic data including business data of a target user logged into the client performing related business based on the target application page within a set time period; the image request message further including an image retrieval instruction and image identification information, the image identification information being determined based on business-related data and / or user-related information, and the business dynamic data; and when the data used to determine the image identification information is not updated, the image identification information remains unchanged; a generating unit configured to, when the image retrieval indication included in the image request message indicates image retrieval, obtain the page sharing image from the target database if the target database includes the page sharing image corresponding to the image identification information; Otherwise, generating a page sharing picture displaying the business dynamic data, and saving the page sharing picture into the target database using the picture identification information as an index; a returning unit, configured to return the page sharing image to the client, so that the client updates the page configuration information corresponding to the target application page; The client jumps to the communication interaction window in response to the target user's business sharing operation on the target application page, and displays a page sharing image in a hyperlink form in the communication interaction window based on the page configuration information.

9. A page sharing device, characterized in that: include: A sharing unit, configured to jump to a communication interaction window in response to a target user's service sharing operation on a target application page; A display unit, configured to display a page sharing image in a hyperlinked form in the communication interaction window based on page configuration information corresponding to the target application page; The sharing unit is further used for: Obtaining business dynamic data corresponding to the target application page; the business dynamic data includes various dynamic parameter information and dynamic data corresponding to each dynamic parameter information, and the dynamic data includes business data of related businesses performed by the target user who logged into the client based on the target application page within a set time period; Sending an image request message containing business dynamic data to a control device, so that the control device executes: when the image retrieval instruction contained in the image request message indicates image retrieval, if a target database contains a page sharing image corresponding to the image identification information, obtaining the page sharing image from the target database; otherwise, generating a page sharing image displaying the business dynamic data; The image request message further includes the image retrieval instruction and the image identification information, where the image identification information is determined based on service-related data and / or user-related information, as well as service dynamic data. When the data used to determine the image identification information is not updated, the image identification information remains unchanged. receiving a page sharing picture returned by the control device based on the picture request message, wherein the page sharing picture is a thumbnail of the mini program; Update the page configuration information corresponding to the target application page.

10. A control device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 6 or 7 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 or 7 are implemented.

Citation Information

Patent Citations

  • Picture generation method, server, electronic device, and readable storage medium

    CN109165357A

  • Poster generation method, device and equipment and storage medium

    CN111462281A