CN111754600A - Poster image generation method and device and electronic equipment - Google Patents
Poster image generation method and device and electronic equipment Download PDFInfo
- Publication number
- CN111754600A CN111754600A CN202010635330.3A CN202010635330A CN111754600A CN 111754600 A CN111754600 A CN 111754600A CN 202010635330 A CN202010635330 A CN 202010635330A CN 111754600 A CN111754600 A CN 111754600A
- Authority
- CN
- China
- Prior art keywords
- target
- image
- poster
- parameter data
- rendering
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 239000000470 constituent Substances 0.000 claims abstract description 114
- 238000009877 rendering Methods 0.000 claims abstract description 63
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the disclosure discloses a poster image generation method, a poster image generation device and electronic equipment. One embodiment of the method comprises: receiving parameter data which is sent by a business party and used for generating poster images, wherein the parameter data comprises first parameter data used for determining constituent elements of the poster images; rendering the target constituent element determined by the first parameter data in the reference image in the first image format; generating a target poster image based on the reference image after the target constituent elements are rendered; and returning the target poster image to the business party. This embodiment increases the efficiency of generating a target poster image.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a poster image generation method and device and electronic equipment.
Background
Some applications (apps) or websites provide a user with a function of generating poster images. Therefore, the user can generate poster images in these APPs or websites. In practice, the user may share the generated poster image with other users.
In the related art, a web page including constituent elements of a poster image is first rendered by a browser, and then the poster image is generated by processing the web page.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Embodiments of the present disclosure provide a poster image generation method, a poster image generation device, and an electronic device, which improve efficiency of generating a target poster image.
In a first aspect, embodiments of the present disclosure provide a poster image generation method, the method comprising: receiving parameter data which is sent by a business party and used for generating poster images, wherein the parameter data comprises first parameter data used for determining constituent elements of the poster images; rendering the target constituent element determined by the first parameter data in the reference image in the first image format; generating a target poster image based on the reference image after the target constituent elements are rendered; and returning the target poster image to the business party.
In a second aspect, embodiments of the present disclosure provide a poster image generation apparatus comprising: the poster image processing system comprises a receiving unit, a processing unit and a display unit, wherein the receiving unit is used for receiving parameter data which are sent by a business party and used for generating a poster image, and the parameter data comprise first parameter data used for determining a constituent element of the poster image; a rendering unit configured to render a target constituent element determined by the first parameter data in a reference image in a first image format; a generating unit configured to generate a target poster image based on the reference image after rendering the target constituent elements; and the return unit is used for returning the target poster image to the business party.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the poster image generation method of the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium on which is stored a computer program which, when executed by a processor, carries out the steps of the poster image generation method of the first aspect.
The poster image generation method, the poster image generation device and the electronic equipment provided by the embodiment of the disclosure can receive parameter data which is sent by a business party and used for generating the poster image. The parameter data includes first parameter data for determining constituent elements of the poster image. Further, the target constituent element determined by the first parameter data may be rendered in the reference image in the first image format. Still further, a target poster image may be generated based on the reference image after rendering the target constituent elements. Finally, the target poster image may be returned to the business party. Because the webpage does not need to be rendered through the browser in the process of generating the target poster image, the efficiency of generating the target poster image can be improved to a certain extent.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of a poster image generation method according to the present disclosure;
FIG. 2 is a schematic illustration of one application scenario of a poster image generation method according to the present disclosure;
FIG. 3 is a schematic structural diagram of some embodiments of poster image generation apparatus according to the present disclosure;
FIG. 4 is an exemplary system architecture to which poster image generation methods of some embodiments of the present disclosure may be applied;
fig. 5 is a schematic diagram of a basic structure of an electronic device provided in accordance with some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow diagram of some embodiments of poster image generation methods according to the present disclosure is shown. As shown in fig. 1, the poster image generation method includes the steps of:
In the present embodiment, an execution subject (for example, the server 404 shown in fig. 4) of the poster image generation method may receive parameter data for generating a poster image, which is transmitted by a business party.
The business party may be the party that needs to generate the poster image. In practice, the service party may be a terminal device (e.g., terminal devices 401 and 402 shown in fig. 4) of a user, or may be a server.
It will be appreciated that the parameter data described above may be data used to generate poster images. The parameter data includes first parameter data for determining constituent elements of the poster image.
It will be appreciated that the constituent elements may be elements that constitute a poster image. Optionally, the constituent elements include at least one of: text information, user head portrait and bar code image. In some scenarios, the barcodes included in the barcode image may include one-dimensional barcodes and/or two-dimensional barcodes.
It is to be understood that the first parameter data may be data for determining constituent elements. In some scenarios, constituent elements of the poster image may be included in the first parametric data.
In the present embodiment, the execution subject described above may determine the target constituent element by the first parameter data.
It is understood that the target constituent element may be a constituent element determined by the first parameter data.
In some scenarios, the execution subject may use a constituent element included in the first parameter data as a target constituent element.
In the present embodiment, the execution subject described above may render the target constituent element in the reference image in the first image format.
The reference image may be a reference for generating a poster image. It is understood that the reference image belongs to the first image format. In practice, the first image format may be an image format capable of rendering constituent elements in an image.
In some scenarios, the execution subject may render the target constituent element in the reference image through a preset interface.
And 103, generating a target poster image based on the rendered reference image of the target constituent element.
In this embodiment, the execution body described above may generate a target poster image based on the reference image after rendering the target constituent elements.
In some scenarios, the execution body may render the reference image after the target constituent element as the target poster image.
And step 104, returning the target poster image to the business party.
In this embodiment, the execution body described above may return the target poster image to the business party.
As described in the background, regarding the manner of generating poster images, in the related art, it is necessary to render a web page containing constituent elements of poster images by a browser. Since the speed of rendering a web page by a browser is low, the efficiency of generating poster images can be reduced. Further, the user experience of the user generating the poster image is affected.
In this embodiment, the parameter data sent by the service side is received first. The parameter data includes first parameter data for determining a constituent element of the poster image. Further, in the reference image in the first image format, the target constituent element determined by the first parameter data is rendered. Still further, a target poster image is generated based on the reference image after rendering the target constituent elements. Because the webpage does not need to be rendered through the browser in the process of generating the target poster image, the efficiency of generating the target poster image can be improved to a certain extent.
In some embodiments, the reference image includes an element rendering region for rendering the constituent elements. The constituent elements in the element rendering region have attributes that can adjust attribute values.
It is to be understood that the element rendering region may be a region for rendering constituent elements. Also, the attribute values of the attributes that the constituent elements in the element rendering region have are adjustable.
In some scenarios, the text information as a constituent element may have attributes including at least one of: font type, font size, font color. The user avatar as a constituent element may have attributes including at least one of: reduction or magnification, round corner, and sharpness. The barcode image as a constituent element may have an attribute including at least one of: reduction or magnification, and clarity.
It should be noted that, in practical applications, the constituent elements such as text information, images, barcodes and the like may also have other attributes, which are not listed here.
In these embodiments, by adjusting the attribute value of the attribute that the constituent element has, and rendering the constituent element in the element rendering region included in the reference image, it is possible to achieve targeted rendering of the constituent element in the reference image. Further, the flexibility of generating a target poster image can be improved.
In some embodiments, the parameter data further includes second parameter data. The second parameter data is used to determine a target attribute value of an attribute of the target constituent element in the element rendering region. It will be understood that the target attribute value may be an attribute value of an attribute that the target constituent element has in the element rendering region.
Here, the execution subject of the poster image generation method may render the target constituent element in the reference image in the following manner.
Specifically, the target constituent element is rendered in the element rendering region included in the reference image according to the target attribute value.
It is understood that, when the target constituent element is rendered into the reference image, the attribute value of the attribute that the target constituent element has is the target attribute value.
In these embodiments, the target constituent elements of the target poster image are determined from first parameter data provided by the business party. And, determining a target attribute value of an attribute that the target constituent element has in the target poster image, in accordance with second parameter data provided by the business party. Thus, the flexibility of generating the target poster image can be further improved.
In some embodiments, the reference image renders the target constituent element in the element rendering region by the code file. That is, the code file is used to render the target constituent element in the element rendering region included in the reference image. Optionally, the code file is an xml (EXtensible Markup Language) file.
Here, the execution subject of the poster image generation method may render the target constituent element in the element rendering region contained in the reference image in the following manner.
First, in the code file, the target constituent elements and the target attribute values are added.
In some scenarios, the execution body may add a target constituent element at a position in the code file where the constituent element is to be added. Accordingly, the execution body may add a target attribute value of an attribute that a target constituent element has at a position in the code file where an attribute value is to be added.
And a second step of rendering the target constituent element in an element rendering area included in the reference image based on the code file to which the target constituent element and the target attribute value are added.
In some scenarios, the execution subject may execute the code file with the target constituent element and the target attribute value added, so as to render the target constituent element in an element rendering area included in the reference image.
In these embodiments, the target constituent element and the target attribute value are added to the code file, and then the target constituent element is rendered in the element rendering region included in the reference image based on the code file. Thus, the target constituent element of the target attribute value is rendered in the element rendering region included in the reference image. Thus, a new method of generating a target poster image is provided.
In some embodiments, the first image format is Scalable Vector Graphics (SVG).
The image in the SVG format has the characteristic of being not easy to distort. Therefore, the target poster image is generated based on the reference image in the SVG format, and the quality of the generated target poster image can be improved to a certain extent.
In some embodiments, the target poster image belongs to a second image format. For example, the second image format may be a jpeg (Joint Photographic Experts Group), png (Portable network graphics), or the like image format.
In practice, the execution body of the poster image generation method may generate the target poster image in the second image format in a variety of ways.
In some scenarios, the execution body may convert the reference image after rendering the target constituent elements into the target poster image in the second image format.
In other scenarios, the executing body may capture a screenshot of the reference image after rendering the target constituent element, and generate a target poster image in a second image format.
In these embodiments, the target poster image is generated in a second image format based on the reference image in the first image format. Further, the flexibility of generating the target poster image is improved.
In some embodiments, the first parameter data is a Uniform Resource Locator (URL) of the target constituent element.
In some scenarios, the executing entity of the poster image generation method may determine the target constituent element for generating the target poster image from the uniform resource locator of the target constituent element.
In these embodiments, the business party provides a uniform resource locator for the target constituent element, and the server determines the target constituent element based on the uniform resource locator. Compared with the business side directly providing the target constituent elements, the pressure of the business side for transmitting the target constituent elements to the server can be relieved.
In some embodiments, the reference image is determined from image identification information contained in the parametric data.
The icon identification information may be information that uniquely identifies the reference image. For example, the image identification information may be an encoding of a reference image.
In some scenarios, the executing body of the poster image generation method may determine the reference image identified by the above-described image identification information from a set of reference images.
In these embodiments, the reference image used to generate the target poster image is determined from the image identifying information provided by the business party.
Referring to fig. 2, one application scenario of a poster image generation method according to an embodiment of the present disclosure is shown. As shown in fig. 2, the terminal device 201 is a terminal device of a service side. The server 202 may receive parameter data 203 sent by the business through the terminal device 201 for generating poster images. Included in the parameter data 203 is first parameter data 204 for determining constituent elements of the poster image. Further, the server 202 may render the target constituent element 206 determined by the first parameter data 204 in the reference image 205 in the first image format. Still further, the server 202 may generate a target poster image 207 based on the reference image 205 after rendering the target constituent elements 206. Finally, the server may return the target poster image 207 to the terminal device 201 of the business party.
With further reference to fig. 3, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a poster image generation apparatus, which correspond to the method embodiment shown in fig. 1, and which may be applied in particular in various electronic devices.
As shown in fig. 3, the poster image generating apparatus of the present embodiment includes: a receiving unit 301, a rendering unit 302, a generating unit 303, and a returning unit 304. The receiving unit 301 is configured to: and receiving parameter data which is sent by a business party and used for generating the poster image, wherein the parameter data comprises first parameter data used for determining the constituent elements of the poster image. The rendering unit 302 is configured to: in the reference image in the first image format, the target constituent element determined by the first parameter data is rendered. The generating unit 303 is configured to: and generating a target poster image based on the rendered reference image of the target constituent element. The return unit 304 is configured to: and returning the target poster image to the business party.
In this embodiment, the specific processes of the receiving unit 301, the rendering unit 302, the generating unit 303, and the returning unit 304 of the poster image generating device and the technical effects thereof can refer to the related descriptions of step 101, step 102, step 103, and step 104 in the corresponding embodiment of fig. 1, which are not repeated herein.
In some embodiments, an element rendering region for rendering a constituent element is included in the reference image, and the constituent element in the element rendering region has an attribute with an adjustable attribute value.
In some embodiments, the parameter data further includes second parameter data, and the second parameter data is used to determine a target attribute value of an attribute of the target constituent element in the element rendering region. The rendering unit 302 is further configured to: and rendering the target constituent element in the element rendering region included in the reference image according to the target attribute value.
In some embodiments, the reference image renders the target constituent element in the element rendering region by the code file. The rendering unit 302 is further configured to: adding a target constituent element and a target attribute value in a code file; the target constituent element is rendered in an element rendering region included in the reference image based on the code file to which the target constituent element and the target attribute value are added.
In some embodiments, the first image format is scalable vector graphics.
In some embodiments, the target poster image belongs to a second image format.
In some embodiments, the first parameter data is a uniform resource locator of the target constituent element.
In some embodiments, the reference image is determined based on image identification information contained in the parameter data.
With further reference to fig. 4, fig. 4 illustrates an exemplary system architecture to which poster image generation methods of some embodiments of the present disclosure may be applied.
As shown in fig. 4, the system architecture may include terminal devices 401, 402, a network 403, and a server 404. The network 403 is the medium used to provide communication links between the terminal devices 401, 402 and the server 404. The network 403 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The terminal devices 401, 402 may interact with a server 404 via a network 403. Various client applications may be installed on the terminal devices 401, 402. For example, the terminal devices 401 and 402 may be installed with shopping applications, search applications, news applications, and the like. In some scenarios, the party of the service is a user of the terminal device 401, 402. The terminal devices 401, 402 may send parameter data for generating poster images to the server 404.
The terminal devices 401 and 402 may be hardware or software. When the terminal devices 401, 402 are hardware, they may be various electronic devices having a display screen and supporting information interaction, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal devices 401 and 402 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. And is not particularly limited herein.
The server 404 may be a server that provides various services. In some scenarios, the server 404 may receive the parameter data sent by the terminal devices 401, 402. The parameter data includes first parameter data for determining constituent elements of the poster image. Further, the server 404 may render the target constituent element determined by the first parameter data in the reference image in the first image format. Still further, the server 404 may generate a target poster image based on the reference image after rendering the target constituent elements. Finally, the server 404 may return the target poster image to the terminal devices 401, 402.
The server 404 may be hardware or software. When the server 404 is hardware, it can be implemented as a distributed server cluster composed of a plurality of servers, or as a single server. When the server 404 is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the poster image generation method provided by the embodiment of the present disclosure may be executed by the server 404, and accordingly, the poster image generation apparatus may be provided in the server 404.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 5, a schematic diagram of an electronic device (e.g., the server of fig. 4) suitable for use in implementing some embodiments of the present disclosure is shown. The terminal device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be included in the electronic device or may exist separately without being incorporated in the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving parameter data which is sent by a business party and used for generating poster images, wherein the parameter data comprises first parameter data used for determining constituent elements of the poster images; rendering the target constituent element determined by the first parameter data in the reference image in the first image format; and generating a target poster image based on the rendered reference image of the target constituent element.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The names of these units do not in some cases constitute a limitation on the units themselves, and for example, the receiving unit may also be described as a unit that receives parameter data for generating poster images sent by a business party.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the present disclosure is not limited to the particular combination of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the scope of the present disclosure. For example, the above features may be interchanged with other features disclosed in this disclosure (but not limited to) those having similar functions.
Claims (11)
1. A poster image generation method characterized by comprising:
receiving parameter data which is sent by a business party and used for generating poster images, wherein the parameter data comprises first parameter data used for determining constituent elements of the poster images;
rendering the target constituent element determined by the first parameter data in a reference image in a first image format;
generating a target poster image based on the reference image after rendering the target constituent elements;
and returning the target poster image to the business party.
2. The method according to claim 1, wherein the reference image includes an element rendering region for rendering a constituent element, and the constituent element in the element rendering region has an attribute with an adjustable attribute value.
3. The method according to claim 2, characterized in that second parameter data for determining a target attribute value of an attribute of the target constituent element in the element rendering region is further included in the parameter data; and
the rendering, in a reference image in a first image format, a target constituent element determined by the first parameter data, includes:
and rendering the target constituent element in an element rendering area included in the reference image according to the target attribute value.
4. The method according to claim 3, wherein the reference image renders the target constituent element in the element rendering region by a code file; and
the rendering the target constituent element in the element rendering region included in the reference image according to the target attribute value includes:
adding the target constituent elements and the target attribute values in the code file;
rendering the target constituent element in an element rendering region included in the reference image based on the code file to which the target constituent element and the target attribute value are added.
5. The method of claim 1, wherein the first image format is scalable vector graphics.
6. The method of claim 1 wherein the target poster image belongs to a second image format.
7. The method of claim 1, wherein the first parameter data is a uniform resource locator of the target constituent element.
8. The method according to claim 1, wherein the reference image is determined based on image identification information contained in the parameter data.
9. A poster image generating apparatus, comprising:
the poster image processing device comprises a receiving unit, a processing unit and a display unit, wherein the receiving unit is used for receiving parameter data which are sent by a business party and used for generating a poster image, and the parameter data comprise first parameter data used for determining a constituent element of the poster image;
a rendering unit configured to render a target constituent element determined by the first parameter data in a reference image in a first image format;
a generating unit configured to generate a target poster image based on the reference image after rendering the target constituent element;
and the return unit is used for returning the target poster image to the business party.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
11. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010635330.3A CN111754600B (en) | 2020-07-03 | 2020-07-03 | Poster image generation method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010635330.3A CN111754600B (en) | 2020-07-03 | 2020-07-03 | Poster image generation method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111754600A true CN111754600A (en) | 2020-10-09 |
CN111754600B CN111754600B (en) | 2024-08-27 |
Family
ID=72680409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010635330.3A Active CN111754600B (en) | 2020-07-03 | 2020-07-03 | Poster image generation method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111754600B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113207006A (en) * | 2021-04-20 | 2021-08-03 | 北京异乡旅行网络科技有限公司 | Method, device, equipment and storage medium for automatically generating live broadcast renting house poster |
CN113706662A (en) * | 2021-07-15 | 2021-11-26 | 中科大数据研究院 | Electronic poster generation method, device and storage medium |
CN113742530A (en) * | 2021-09-13 | 2021-12-03 | 国泰君安证券股份有限公司 | System, method, device, processor and storage medium for realizing generation and processing of digital poster picture based on SVG |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050039122A1 (en) * | 2003-08-05 | 2005-02-17 | Meadows Michael Darren | Methodology and system for rendering dynamic images |
CN102436492A (en) * | 2011-11-09 | 2012-05-02 | 浙江大学 | Web publishing method of quantified remote sensing data |
CN102577327A (en) * | 2011-12-26 | 2012-07-11 | 华为技术有限公司 | Method, apparatus and system for realizing web browsing in remote desk environment |
CN102930592A (en) * | 2012-11-16 | 2013-02-13 | 李金地 | Cloud computation rendering method based on uniform resource locator analysis |
-
2020
- 2020-07-03 CN CN202010635330.3A patent/CN111754600B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050039122A1 (en) * | 2003-08-05 | 2005-02-17 | Meadows Michael Darren | Methodology and system for rendering dynamic images |
CN102436492A (en) * | 2011-11-09 | 2012-05-02 | 浙江大学 | Web publishing method of quantified remote sensing data |
CN102577327A (en) * | 2011-12-26 | 2012-07-11 | 华为技术有限公司 | Method, apparatus and system for realizing web browsing in remote desk environment |
CN102930592A (en) * | 2012-11-16 | 2013-02-13 | 李金地 | Cloud computation rendering method based on uniform resource locator analysis |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113207006A (en) * | 2021-04-20 | 2021-08-03 | 北京异乡旅行网络科技有限公司 | Method, device, equipment and storage medium for automatically generating live broadcast renting house poster |
CN113706662A (en) * | 2021-07-15 | 2021-11-26 | 中科大数据研究院 | Electronic poster generation method, device and storage medium |
CN113742530A (en) * | 2021-09-13 | 2021-12-03 | 国泰君安证券股份有限公司 | System, method, device, processor and storage medium for realizing generation and processing of digital poster picture based on SVG |
Also Published As
Publication number | Publication date |
---|---|
CN111754600B (en) | 2024-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111399956B (en) | Content display method and device applied to display equipment and electronic equipment | |
CN111754600B (en) | Poster image generation method and device and electronic equipment | |
CN110809189B (en) | Video playing method and device, electronic equipment and computer readable medium | |
CN111930534A (en) | Data calling method and device and electronic equipment | |
CN112311656B (en) | Message aggregation and display method and device, electronic equipment and computer readable medium | |
CN111459364B (en) | Icon updating method and device and electronic equipment | |
CN110781373B (en) | List updating method and device, readable medium and electronic equipment | |
CN113157153A (en) | Content sharing method and device, electronic equipment and computer readable storage medium | |
CN111596991A (en) | Interactive operation execution method and device and electronic equipment | |
CN112965673A (en) | Content printing method, device, equipment and storage medium | |
CN112053286A (en) | Image processing method, image processing device, electronic equipment and readable medium | |
CN112418249A (en) | Mask image generation method and device, electronic equipment and computer readable medium | |
CN111259636A (en) | Document rendering method and device and electronic equipment | |
CN110619101B (en) | Method and apparatus for processing information | |
CN114428925A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
CN114417782A (en) | Display method and device and electronic equipment | |
CN111596823B (en) | Page display method and device and electronic equipment | |
CN111461965B (en) | Picture processing method and device, electronic equipment and computer readable medium | |
CN111262907B (en) | Service instance access method and device and electronic equipment | |
CN113126985A (en) | Method, device, electronic equipment and computer readable medium for page rendering | |
CN111756953A (en) | Video processing method, device, equipment and computer readable medium | |
CN112445394B (en) | Screenshot method and screenshot device | |
CN113542335A (en) | Information sharing method and device, electronic equipment and storage medium | |
CN111324405A (en) | Character display method and device and electronic equipment | |
CN111273884A (en) | Image display method and device and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TG01 | Patent term adjustment |