CN117934652A - Poster generation method and device, computer readable storage medium and server - Google Patents

Poster generation method and device, computer readable storage medium and server Download PDF

Info

Publication number
CN117934652A
CN117934652A CN202410116223.8A CN202410116223A CN117934652A CN 117934652 A CN117934652 A CN 117934652A CN 202410116223 A CN202410116223 A CN 202410116223A CN 117934652 A CN117934652 A CN 117934652A
Authority
CN
China
Prior art keywords
poster
target
generation
compiling
parameters
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202410116223.8A
Other languages
Chinese (zh)
Inventor
冯罡
罗浩欣
蔡亮
赵占胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhonghe Nongxin Agricultural Group Co ltd
Original Assignee
Zhonghe Nongxin Agricultural Group Co ltd
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 Zhonghe Nongxin Agricultural Group Co ltd filed Critical Zhonghe Nongxin Agricultural Group Co ltd
Priority to CN202410116223.8A priority Critical patent/CN117934652A/en
Publication of CN117934652A publication Critical patent/CN117934652A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application belongs to the technical field of computers, and particularly relates to a poster generation method, a poster generation device, a computer readable storage medium and a server. The method is applied to the server and comprises the following steps: responding to a poster generation request sent by terminal equipment, and analyzing the poster generation request to obtain a poster generation parameter corresponding to the poster generation request; generating a target poster according to the poster generation parameters; and sending the target poster to the terminal equipment. By the method, the server can receive the poster generation request sent by the terminal equipment and can generate the target poster according to the poster generation request, so that the poster generation process can be transferred from the terminal equipment to the server with better performance, performance limitation on the poster generation process can be reduced, the poster generation effect can be improved, and user experience can be improved.

Description

Poster generation method and device, computer readable storage medium and server
Technical Field
The application belongs to the technical field of computers, and particularly relates to a poster generation method, a poster generation device, a computer readable storage medium and a server.
Background
With the development of internet technology, people can browse various information through a network and share information in various ways. For example, people can share information by way of a poster. However, due to hardware and performance limitations of the terminal device, the effect of generating the poster on the terminal device is poor, and user experience is affected.
Disclosure of Invention
In view of the above, embodiments of the present application provide a method, an apparatus, a computer readable storage medium, and a server for generating a poster, so as to solve the problem in the prior art that the effect of generating the poster on a terminal device is poor, and the user experience is affected.
A first aspect of an embodiment of the present application provides a poster generating method applied to a server, which may include:
Responding to a poster generation request issued by a terminal device, and analyzing the poster generation request to obtain a poster generation parameter corresponding to the poster generation request;
Generating a target poster according to the poster generation parameters;
And sending the target poster to the terminal equipment.
In a specific implementation manner of the first aspect, the generating the target poster according to the poster generating parameter may include:
According to the poster generation parameters, performing code compiling by using a preset compiling module to obtain target compiling codes;
Rendering the target compiling code by using a preset rendering module to obtain a target rendering page;
and generating the target poster according to the poster generation parameters and the target rendering page.
In a specific implementation manner of the first aspect, the poster generation parameters may include poster content parameters;
And compiling codes by using a preset compiling module according to the poster generating parameters to obtain target compiling codes, wherein the method comprises the following steps:
And according to the poster content parameters, performing code compiling by utilizing a default poster template preset in the compiling module to obtain the target compiling code.
In a specific implementation manner of the first aspect, the poster generation parameters may further include template generation parameters;
And compiling codes by utilizing a preset compiling module according to the poster generating parameters to obtain target compiling codes, and further comprising:
Determining a target poster template in the compiling module according to the template generation parameters;
and according to the poster content parameters, performing code compiling by utilizing a target poster template in the compiling module to obtain the target compiling code.
In a specific implementation manner of the first aspect, the template generation parameter may include a poster image format; wherein, the poster image format is a static image format or a dynamic image format.
In a specific implementation manner of the first aspect, the generating the target poster according to the poster generation parameter and the target rendering page may include:
If the poster image format is a static image format, performing screen capturing operation on the target rendering page to obtain a screen capturing image;
and determining the screen capturing image as the target poster.
In a specific implementation manner of the first aspect, the method may further include:
if the poster image format is a dynamic image format, performing screen recording operation on the target rendering page to obtain a video file;
performing image conversion on the video file by using a preset video conversion module to obtain a dynamic image;
and determining the dynamic image as the target poster.
A second aspect of an embodiment of the present application provides a poster generating apparatus applied to a server, which may include:
The request response module is used for responding to a poster generation request issued by the terminal equipment, analyzing the poster generation request and obtaining a poster generation parameter corresponding to the poster generation request;
The poster generation module is used for generating a target poster according to the poster generation parameters;
and the poster sending module is used for sending the target poster to the terminal equipment.
In a specific implementation manner of the second aspect, the poster generating module may include:
the code compiling sub-module is used for compiling codes by utilizing a preset compiling module according to the poster generating parameters to obtain target compiling codes;
the code rendering sub-module is used for rendering the target compiled code by utilizing a preset rendering module to obtain a target rendering page;
and the poster generation sub-module is used for generating the target poster according to the poster generation parameters and the target rendering page.
In a specific implementation manner of the second aspect, the poster generation parameters may include poster content parameters;
The code compiling sub-module may include:
and the first compiling unit is used for compiling codes according to the poster content parameters by utilizing a default poster template preset in the compiling module to obtain the target compiling codes.
In a specific implementation manner of the second aspect, the poster generation parameters may further include template generation parameters;
the code compiling sub-module may further include:
the poster template determining unit is used for determining a target poster template in the compiling module according to the template generating parameters;
And the second compiling unit is used for compiling codes by utilizing the target poster templates in the compiling module according to the poster content parameters to obtain the target compiling codes.
In a specific implementation manner of the second aspect, the template generation parameter may include a poster image format; wherein, the poster image format is a static image format or a dynamic image format.
In a specific implementation manner of the second aspect, the poster generating submodule may include:
the screen capturing operation unit is used for carrying out screen capturing operation on the target rendering page if the poster image format is a static image format to obtain a screen capturing image;
And the first poster determining unit is used for determining the screen capturing image as the target poster.
In a specific implementation manner of the second aspect, the poster generating submodule may further include:
The screen recording operation unit is used for carrying out screen recording operation on the target rendering page if the poster image format is a dynamic image format to obtain a video file;
The image conversion unit is used for carrying out image conversion on the video file by utilizing a preset video conversion module to obtain a dynamic image;
and a second poster determining unit for determining the dynamic image as the target poster.
A third aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of any of the above-described poster generation methods.
A fourth aspect of the embodiments of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of any one of the above-mentioned poster generation methods applied to the server when executing the computer program.
A fifth aspect of an embodiment of the present application provides a computer program product, which when run on a server, causes the server to perform the steps of any of the above-described poster generation methods applied to the server.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the embodiment of the application is applied to a server, and can respond to the poster generation request sent by the terminal equipment and analyze the poster generation request to obtain the poster generation parameters corresponding to the poster generation request; generating a target poster according to the poster generation parameters; and sending the target poster to the terminal equipment. According to the embodiment of the application, the server can receive the poster generation request sent by the terminal equipment and can generate the target poster according to the poster generation request, so that the poster generation process can be transferred from the terminal equipment to the server with better performance, the performance limit on the poster generation process can be reduced, the poster generation effect can be improved, and the user experience can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an embodiment of a poster generation method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a specific implementation of a poster generation method;
FIG. 3 is a schematic diagram of another specific implementation of a poster generation method;
FIG. 4 is a block diagram of an embodiment of a poster generating apparatus according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present application more comprehensible, the technical solutions in the embodiments of the present application are described in detail below with reference to the accompanying drawings, and it is apparent that the embodiments described below are only some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted in context as "when … …" or "once" or "in response to a determination" or "in response to detection. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application, the terms "first," "second," "third," etc. are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
With the development of internet technology, people can browse various information through a network and share information in various ways. For example, people can share information by way of a poster.
However, due to hardware and performance limitations of the terminal device, the effect of generating the poster on the terminal device is poor, and user experience is affected.
For example, in the prior art, a canvas is typically used to generate a poster, and in an applet, there is often a limitation on the size of the canvas, so that a long chart cannot be generated, but an equal scaling is required, which may cause a serious loss of definition of the poster. As another example, if the performance of the terminal device is low, it may take a longer time to generate the poster.
In view of the above, embodiments of the present application provide a method, an apparatus, a computer readable storage medium, and a server for generating a poster, so as to solve the problem in the prior art that the effect of generating the poster on a terminal device is poor, and the user experience is affected.
It should be noted that, the execution body of the method of the present application is a server, and specifically, may be a common computing device such as a desktop computer, a notebook computer, a palm computer, or other computing devices. The server of the embodiment of the application can be a server which establishes communication with the client on the terminal equipment by using a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP), and the HTTP server can receive and process the request from the client on the terminal equipment and return corresponding response.
Referring to fig. 1, an embodiment of a poster generating method according to an embodiment of the present application may include:
And step S101, responding to the poster generation request issued by the terminal equipment, and analyzing the poster generation request to obtain the poster generation parameters corresponding to the poster generation request.
In the embodiment of the application, when the user needs to generate the poster, the user can send a poster generation request to the server through the terminal equipment so as to instruct the server to generate the poster. The poster generation request can carry poster generation parameters, and the poster production parameters can be used for indicating the generation content and template form of the target poster.
Specifically, the user can set the poster generation parameters at the client installed on the terminal device, and the terminal device can generate the corresponding poster generation instruction according to the poster generation parameters set by the user.
In a specific implementation manner of the embodiment of the application, a user can set the poster generation parameters in an applet on the terminal device, and the terminal device can generate corresponding poster generation instructions according to the poster generation parameters set by the user and can issue the poster generation instructions to the server.
In another specific implementation manner of the embodiment of the present application, a user may set a poster generation parameter in an application program on a terminal device, and the terminal device may generate a corresponding poster generation instruction according to the poster generation parameter set by the user and may issue the poster generation instruction to a server.
And step S102, generating a target poster according to the poster generation parameters.
Specifically, step S102 may include the following procedure:
And S1021, compiling codes by using a preset compiling module according to the poster generating parameters to obtain target compiling codes.
The poster generation parameters can comprise poster content parameters, and the poster content parameters can be used for indicating the size in the target poster and the content to be contained; in particular, the poster content parameters may include at least the width of the target poster and the content of the target poster, which may include, but is not limited to, text, images, and other data.
For example, the user may set the width of the target poster to 400 device independent pixels (device-INDEPENDENT PIXELS, dp) as desired, and may set the content of the target poster to "communication sharing party, sharing content: how to solve the confusion and challenges encountered in learning? How to break communication disorder in life? How to break through and lift oneself? The width of the target poster generated by the method can be 400dp, and the content of the target poster can be a communication sharing party, and the content is shared: how to solve the confusion and challenges encountered in learning? How to break communication disorder in life? How to break through and lift oneself? ".
In the embodiment of the application, after receiving the poster generation request issued by the terminal equipment, the server can respond to the poster generation request, analyze the poster generation request to obtain the poster generation parameters corresponding to the poster generation request, and generate the target poster according to the parameters.
In a specific implementation manner of the embodiment of the application, code compiling can be performed by using a preset compiling module according to the poster content parameters to obtain target compiling codes. The preset compiling module may be used for compiling hypertext markup language (Hyper Text Markup Language, HTML) codes, and the compiling module may specifically include, but is not limited to, an EJS template engine. Specifically, the compiling module can take parameter information such as text, images and other data in the poster content parameters as input data, and can use a default poster template preset in the compiling module to compile codes to obtain target compiling codes; the default poster template can be a preset template for generating a target poster; the default poster templates may include, but are not limited to, HTML structures, cascading style sheets (CASCADING STYLE SHEET, CSS), static content (e.g., icons, background images, and fixed text content), dynamic content placeholders, javaScript code, etc.; by combining the poster content parameters with the default poster templates, the compiling module may perform code compilation, thereby obtaining target compiled code. In practical application, the default poster template can be embodied and set in a scene according to practical requirements, and the application is not limited to the specific poster template.
In a specific implementation manner of the embodiment of the present application, the poster generation parameters may further include template generation parameters; the template generation parameters can be used for setting a poster template in the compiling module, and the template generation parameters can comprise, but are not limited to, HTML (hypertext markup language) structures, CSS (CSS styles), javaScript codes and the like; specifically, a target poster template can be determined in a compiling module according to template generation parameters, and then code compiling can be performed by utilizing the target poster template in the compiling module according to poster content parameters to obtain target compiling codes. For example, the page layout structure, visual style (font, color, etc.), and dynamic computation script of the target poster template may be determined according to the HTML structure, CSS style, dynamic content placeholder, javaScript code, etc.; then, the target compiling code can be obtained by combining the poster content parameters and the target poster template and compiling the code by utilizing a compiling module.
Through the preset compiling module, any high-level style such as round corners, gradual change characters, custom fonts and the like can be realized, so that the design drawing can be restored with high fidelity, and the development cost can be reduced without using canvas in the process, so that the generation effect of the poster is simply and efficiently improved.
And step 1022, rendering the target compiled code by using a preset rendering module to obtain a target rendering page.
The preset rendering module may be used for rendering the target compiled code, and the rendering template may specifically include, but is not limited to Puppeteer.
Specifically, the rendering module can simulate the behavior of a browser, render the HTML content in real time, analyze the HTML content into a DOM tree, apply CSS styles, execute JavaScript codes and the like, and finally obtain a rendered target rendering page.
And step S1023, generating a target poster according to the poster generation parameters and the target rendering page.
In the embodiment of the application, the poster generation parameters may further include a poster image format, the poster image format may be used to indicate an image format of a target poster, and the poster image format may be a still image format or a dynamic image format. For example, when it is desired to obtain a target poster in a still image format (e.g., jpg format, etc.), the user may set the poster image format to the still image format. For another example, when it is desired to obtain a target poster having an image format that is a moving image format (e.g., gif format, etc.), the user may set the poster image format to the moving image format.
If the poster image format is a static image format, the rendering module can perform screen capturing operation on the target rendering page to obtain a screen capturing image, and the screen capturing image can be determined to be the target poster.
If the poster image format is a dynamic image format, the rendering module can perform screen recording operation on the target rendering page to obtain a video file, then, a preset video conversion module can be utilized to perform image conversion on the video file to obtain a dynamic image, and the dynamic image can be determined to be a target poster. The preset video conversion module may convert video into dynamic images, and the video conversion module may specifically include, but is not limited to FFmepg.
The specific screen recording duration of the screen recording operation can be set specifically and in a scene according to actual needs, and the application is not limited to the specific screen recording duration.
And step S103, sending the target poster to the terminal equipment.
In the embodiment of the application, the generated target poster can be sent to the terminal equipment, and the terminal equipment can share or display the target poster.
Accordingly, the poster generation process can be transferred to the server, so that the poster generation process is not limited by the performance of the terminal equipment, and the poster with any size and high definition can be generated.
For easy understanding, the poster generating method according to the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
In a specific implementation manner, referring to fig. 2, when a user needs to generate a poster, a client installed on a terminal device sets a poster generation parameter, and may issue a poster generation request to a server to instruct the server to generate a poster; the poster generation request carries the poster generation parameters set by the user. After receiving the poster generation instruction, the server can respond to the poster generation instruction and analyze the poster generation request to obtain the poster generation parameters corresponding to the poster generation request; afterwards, the poster generation parameters can be transmitted into a preset compiling module, the compiling module carries out code compiling to obtain target compiling codes (HTML codes), and the target compiling codes can be returned to the server; then, the server can inject the target compiling code into a preset rendering module so that the rendering module renders the target compiling code in real time to obtain a target rendering page; if the poster image format is a static image format, the rendering module may perform a screen capturing operation on the target rendering page to obtain a screen capturing image, and may return the screen capturing image to the server, the server may determine the screen capturing image as the target poster, and then the server may send the target poster (screen capturing image) to the client of the terminal device.
In another specific implementation, referring to fig. 3, when a user needs to generate a poster, a user may set a parameter for generating the poster through a client installed on a terminal device, and may issue a request for generating the poster to a server to instruct the server to generate the poster. When receiving the poster generation instruction, the server can respond to the poster generation instruction and analyze the poster generation request to obtain the poster generation parameters corresponding to the poster generation request; afterwards, the poster generation parameters can be transmitted into a preset compiling module, the compiling module carries out code compiling to obtain target compiling codes (HTML codes), and the target compiling codes can be returned to the server; then, the server can inject the target compiling code into a preset rendering module so that the rendering module renders the target compiling code in real time to obtain a target rendering page; if the poster image format is a dynamic image format, the rendering module can perform screen recording operation on the target rendering page to obtain a video file, and the video file can be returned to the server; then, the server can transmit the video file to a preset video conversion module, the video conversion module can carry out image conversion on the video file to obtain a dynamic image, and the dynamic image is returned to the server; the server may determine the moving image as a target poster, and may transmit the target poster (moving image) to the client of the terminal apparatus.
In summary, the embodiment of the application is applied to a server, and can respond to a poster generation request sent by a terminal device, analyze the poster generation request, and obtain a poster generation parameter corresponding to the poster generation request; generating a target poster according to the poster generation parameters; and sending the target poster to the terminal equipment. According to the embodiment of the application, the server can receive the poster generation request sent by the terminal equipment and can generate the target poster according to the poster generation request, so that the poster generation process can be transferred from the terminal equipment to the server with better performance, the performance limit on the poster generation process can be reduced, the poster generation effect can be improved, and the user experience can be improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Corresponding to the method for generating a poster described in the above embodiments, fig. 4 shows a block diagram of an embodiment of a poster generating apparatus according to an embodiment of the present application.
In an embodiment of the present application, a poster generating apparatus applied to a server may include:
A request response module 401, configured to respond to a poster generation request issued by a terminal device, and parse the poster generation request to obtain a poster generation parameter corresponding to the poster generation request;
A poster generation module 402, configured to generate a target poster according to the poster generation parameter;
and the poster sending module 403 is configured to send the target poster to the terminal device.
In a specific implementation manner of the embodiment of the present application, the poster generating module may include:
the code compiling sub-module is used for compiling codes by utilizing a preset compiling module according to the poster generating parameters to obtain target compiling codes;
the code rendering sub-module is used for rendering the target compiled code by utilizing a preset rendering module to obtain a target rendering page;
and the poster generation sub-module is used for generating the target poster according to the poster generation parameters and the target rendering page.
In a specific implementation manner of the embodiment of the present application, the poster generation parameters may include poster content parameters;
The code compiling sub-module may include:
and the first compiling unit is used for compiling codes according to the poster content parameters by utilizing a default poster template preset in the compiling module to obtain the target compiling codes.
In a specific implementation manner of the embodiment of the present application, the poster generation parameters may further include template generation parameters;
the code compiling sub-module may further include:
the poster template determining unit is used for determining a target poster template in the compiling module according to the template generating parameters;
And the second compiling unit is used for compiling codes by utilizing the target poster templates in the compiling module according to the poster content parameters to obtain the target compiling codes.
In a specific implementation manner of the embodiment of the present application, the template generation parameter may include a poster image format; wherein, the poster image format is a static image format or a dynamic image format.
In a specific implementation manner of the embodiment of the present application, the poster generating submodule may include:
the screen capturing operation unit is used for carrying out screen capturing operation on the target rendering page if the poster image format is a static image format to obtain a screen capturing image;
And the first poster determining unit is used for determining the screen capturing image as the target poster.
In a specific implementation manner of the embodiment of the present application, the poster generating submodule may further include:
The screen recording operation unit is used for carrying out screen recording operation on the target rendering page if the poster image format is a dynamic image format to obtain a video file;
The image conversion unit is used for carrying out image conversion on the video file by utilizing a preset video conversion module to obtain a dynamic image;
and a second poster determining unit for determining the dynamic image as the target poster.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described apparatus, modules and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Fig. 5 shows a schematic block diagram of a server according to an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
As shown in fig. 5, the server 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The steps in the above-described respective poster generation method embodiments, such as steps S101 to S103 shown in fig. 1, are implemented when the processor 50 executes the computer program 52. Or the processor 50, when executing the computer program 52, performs the functions of the modules/units of the apparatus embodiments described above, e.g. the functions of the modules 401 to 403 shown in fig. 4.
By way of example, the computer program 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used to describe the execution of the computer program 52 in the server 5.
It will be appreciated by those skilled in the art that fig. 5 is merely an example of the server 5 and is not meant to be limiting of the server 5, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the server 5 may also include input and output devices, network access devices, buses, etc.
The Processor 50 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the server 5, for example, a hard disk or a memory of the server 5. The memory 51 may be an external storage device of the server 5, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the server 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the server 5. The memory 51 is used for storing the computer program as well as other programs and data required by the server 5. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/server and method may be implemented in other manners. For example, the above-described apparatus/server embodiments are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable storage medium may include content that is subject to appropriate increases and decreases as required by jurisdictions and by jurisdictions in which such computer readable storage medium does not include electrical carrier signals and telecommunications signals.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A poster generation method, characterized in that it is applied in a server, the method comprising:
Responding to a poster generation request issued by a terminal device, and analyzing the poster generation request to obtain a poster generation parameter corresponding to the poster generation request;
Generating a target poster according to the poster generation parameters;
And sending the target poster to the terminal equipment.
2. The poster generation method according to claim 1, wherein said generating a target poster according to said poster generation parameters comprises:
According to the poster generation parameters, performing code compiling by using a preset compiling module to obtain target compiling codes;
Rendering the target compiling code by using a preset rendering module to obtain a target rendering page;
and generating the target poster according to the poster generation parameters and the target rendering page.
3. The poster generation method according to claim 2, wherein said poster generation parameters comprise poster content parameters;
And compiling codes by using a preset compiling module according to the poster generating parameters to obtain target compiling codes, wherein the method comprises the following steps:
And according to the poster content parameters, performing code compiling by utilizing a default poster template preset in the compiling module to obtain the target compiling code.
4. A poster generation method according to claim 3, wherein said poster generation parameters further comprise template generation parameters;
And compiling codes by utilizing a preset compiling module according to the poster generating parameters to obtain target compiling codes, and further comprising:
Determining a target poster template in the compiling module according to the template generation parameters;
and according to the poster content parameters, performing code compiling by utilizing a target poster template in the compiling module to obtain the target compiling code.
5. The poster generation method according to claim 4, wherein said template generation parameters comprise a poster image format; wherein, the poster image format is a static image format or a dynamic image format.
6. The poster generation method according to claim 5, wherein said generating said target poster based on said poster generation parameters and said target rendering page comprises:
If the poster image format is a static image format, performing screen capturing operation on the target rendering page to obtain a screen capturing image;
and determining the screen capturing image as the target poster.
7. The poster generation method according to claim 6, further comprising:
if the poster image format is a dynamic image format, performing screen recording operation on the target rendering page to obtain a video file;
performing image conversion on the video file by using a preset video conversion module to obtain a dynamic image;
and determining the dynamic image as the target poster.
8. A poster generation apparatus for use in a server, the apparatus comprising:
The request response module is used for responding to a poster generation request issued by the terminal equipment, analyzing the poster generation request and obtaining a poster generation parameter corresponding to the poster generation request;
The poster generation module is used for generating a target poster according to the poster generation parameters;
and the poster sending module is used for sending the target poster to the terminal equipment.
9. A computer-readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the poster generation method according to any of claims 1-7.
10. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the poster generation method according to any of claims 1-7 when executing the computer program.
CN202410116223.8A 2024-01-26 2024-01-26 Poster generation method and device, computer readable storage medium and server Pending CN117934652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410116223.8A CN117934652A (en) 2024-01-26 2024-01-26 Poster generation method and device, computer readable storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410116223.8A CN117934652A (en) 2024-01-26 2024-01-26 Poster generation method and device, computer readable storage medium and server

Publications (1)

Publication Number Publication Date
CN117934652A true CN117934652A (en) 2024-04-26

Family

ID=90760847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410116223.8A Pending CN117934652A (en) 2024-01-26 2024-01-26 Poster generation method and device, computer readable storage medium and server

Country Status (1)

Country Link
CN (1) CN117934652A (en)

Similar Documents

Publication Publication Date Title
US8549395B2 (en) Method and system for transforming an integrated webpage
CN107066430B (en) Picture processing method and device, server and client
US9117314B2 (en) Information output apparatus, method, and recording medium for displaying information on a video display
CN107301046B (en) Icon processing method and device, computer equipment and storage medium
CN111915705B (en) Picture visual editing method, device, equipment and medium
CN113655999A (en) Rendering method, device and equipment of page control and storage medium
CN113382083A (en) Webpage screenshot method and device
CN111651966A (en) Data report file generation method and device and electronic equipment
CN108984070B (en) Method, apparatus, electronic device and readable medium for thermodynamic diagram imaging
CN110263279B (en) Page generation method and device, electronic equipment and computer readable storage medium
CN107451163B (en) Animation display method and device
CN111859210B (en) Image processing method, device, equipment and storage medium
CN117934652A (en) Poster generation method and device, computer readable storage medium and server
CN115904167A (en) Processing method and device of webpage icon, storage medium and electronic equipment
EP2310963B1 (en) Information output apparatus, information output method, and recording medium
CN111913703B (en) Object editing method, device, electronic equipment and readable storage medium
CN113849164A (en) Data processing method and device, electronic equipment and memory
CN110187881B (en) Special-shaped window creation method, system, device and computer storage medium
CN114676097A (en) OFD file processing method, device, equipment and medium
CN108376161B (en) Method, device, terminal and storage medium for displaying webpage
CN112306619A (en) Screenshot method and device
CN112418902A (en) Multimedia synthesis method and system based on webpage
CN113703699B (en) Real-time output method and device for electronic file
CN115062255B (en) Website adaptation method and device, electronic equipment and computer readable storage medium
CN115658838B (en) Map set data generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination