CN113536755A - Method, device, electronic equipment, storage medium and product for generating poster - Google Patents

Method, device, electronic equipment, storage medium and product for generating poster Download PDF

Info

Publication number
CN113536755A
CN113536755A CN202110757121.0A CN202110757121A CN113536755A CN 113536755 A CN113536755 A CN 113536755A CN 202110757121 A CN202110757121 A CN 202110757121A CN 113536755 A CN113536755 A CN 113536755A
Authority
CN
China
Prior art keywords
poster
view
poster template
input
modified
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
CN202110757121.0A
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.)
Beijing Doumen Information Technology Co ltd
Original Assignee
Beijing Doumen Information Technology 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 Beijing Doumen Information Technology Co ltd filed Critical Beijing Doumen Information Technology Co ltd
Priority to CN202110757121.0A priority Critical patent/CN113536755A/en
Publication of CN113536755A publication Critical patent/CN113536755A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a method, an apparatus, an electronic device, a storage medium, and a computer program for generating a poster, which relate to the field of computer technologies, and in particular, to the field of information sharing. The specific implementation scheme is as follows: receiving a poster template and a set data specification issued by a management platform, wherein the poster template is generated based on the set data specification; receiving a first input from a user, modifying the poster template based on the set data specifications in response to the first input; and generating a poster picture based on the modified poster template. The embodiment of the disclosure enables users to customize poster style content according to actual needs of the users, and meets the requirements of personalized posters.

Description

Method, device, electronic equipment, storage medium and product for generating poster
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, a storage medium, and a computer program product for generating a poster.
Background
With the development of internet technology, people can browse various information through a network and can share information in various ways.
The poster picture sharing method is a commonly used information sharing mode at present, a user shares a poster picture with product information, an information inlet and the like to other users, and the other users can acquire information shared by the user through the information inlet in the poster picture.
Disclosure of Invention
The present disclosure provides a method, apparatus, electronic device, storage medium, and computer program product for generating posters, so that users can customize poster style content according to their actual needs, and meet the requirements of personalized posters.
According to an aspect of the present disclosure, there is provided a method for generating a poster, comprising:
receiving a poster template and a set data specification issued by a management platform, wherein the poster template is generated based on the set data specification;
receiving a first input from a user, modifying the poster template based on the set data specifications in response to the first input;
and generating a poster picture based on the modified poster template.
According to another aspect of the present disclosure, there is provided an apparatus for generating a poster, comprising:
the first receiving module is used for receiving a poster template issued by a management platform and a set data specification, and the poster template is generated based on the set data specification;
the second receiving module is used for receiving a first input of a user;
a modification module for modifying the poster template based on the set data specifications in response to the first input;
and the generation module is used for generating poster pictures based on the modified poster template.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method according to any embodiment of the disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform a method according to any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a method according to any of the embodiments of the present disclosure.
The technical scheme has the following advantages or beneficial effects: the user can customize poster style content according to the actual needs of the user, and the requirements of personalized posters are met.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic illustration of a flow of a method for generating a poster according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow diagram of a method for redrawing a poster according to an embodiment of the disclosure;
FIG. 3 is a schematic flow diagram of a method for layering the rendered layers of a poster template according to an embodiment of the disclosure;
FIG. 4 is a schematic flow diagram of a method for layering the rendered layers of a poster template according to an embodiment of the disclosure;
FIG. 5 is a schematic block diagram of an apparatus for generating a poster according to an embodiment of the present disclosure;
FIG. 6 is a schematic block diagram of a module for redrawing a poster according to an embodiment of the disclosure;
FIG. 7 is a schematic block diagram of a module for layering the drawing layers of a poster template in accordance with an embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device used to implement a method for generating a poster of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
Sharing poster pictures as described above is a common information sharing method at present. For example, after a user publishes his or her work (video, picture, etc.) using a WeChat applet, etc., the user wants to share his or her work and wants to be seen by more people, one is to use the applet's own ability to directly share the current work with a friend, and the other is to generate a poster picture with an applet code jumping to the work and store the poster picture locally, and then send the picture to the friend or to a friend circle, etc. The sharing mode is good, but the displayed content of the poster is in a fixed style, the posters sent by different people are only different in content such as works and titles, and users cannot modify the content and the style of the posters in a personalized mode. In addition, for small program developers, poster typesetting and the like generated by different works and classifications proposed by a product manager are completely different, so that not only a new poster needs to be redeveloped, but also a new version needs to be reissued for support, dynamic update of a poster template is not facilitated, and the management cost is increased.
Based on the above, the present disclosure provides a method, an apparatus, an electronic device, a storage medium, and a computer program product for generating a poster, so that a user can customize poster style content according to the actual needs of the user, and the requirements of personalized posters are met.
According to an embodiment of the present disclosure, a method for generating a poster is provided.
Fig. 1 is a schematic illustration of a flow of a method for generating a poster according to an embodiment of the present disclosure. As shown in fig. 1, a method for generating a poster provided by an embodiment of the present disclosure includes:
s101, receiving a poster template issued by a management platform and a set data specification, wherein the poster template is generated based on the set data specification;
s102, receiving a first input of a user, and modifying the poster template based on the set data specification in response to the first input;
s103, generating a poster picture based on the modified poster template.
For example, the method for generating a poster provided by the embodiment of the disclosure can be applied to various applets such as WeChat applets, which can be loaded to various mobile terminals such as smart phones, tablets and the like. Of course, the method for generating the poster provided by the embodiment of the disclosure is not limited to be applied to the applet, and can be applied to other various program products or devices with poster generation capability.
The management platform is, for example, an applet management platform, and is used for managing and updating the applet content and the like.
The poster template may be generated by an operator or designer drawing from different target users at the management platform. For example, a poster template appropriate for a training institution is drawn for the training institution and a poster template appropriate for a government institution is drawn for the government institution. And in order to dynamically update the poster template on the management platform instead of directly fixing the main content and style of the poster template in the applet code as described above, in the embodiment of the present disclosure, a data specification for drawing the poster template is set, the data specification defines the format, drawing rules, and the like of the poster, and an operator or designer can draw different types of poster templates based on the data specification, and modify and update the poster template.
Illustratively, in the embodiment of the present disclosure, the set data specification is, for example, a JSON (JavaScript Object Notation) drawing specification. Poster templates are implemented by html5 based on the JSON drawing specification. And each view of the poster template supports dragging, and the JSON drawing specification is generated by dynamically recording the position and other styles.
In S101, the front end such as an applet receives a poster template drawn by the back end and a set data specification from a management platform. The poster template is generated based on the set data specifications.
In the embodiment of the present disclosure, since the poster template is generated by defining the data specification of the poster and based on the data specification, the poster template is not directly fixed in the code of the applet or the like. Therefore, after the front end of the small program receives the poster template, the user is allowed to modify the poster template based on the set data specification, so that personalized customization of the poster is realized, and the user experience is improved.
In S102, a front end, such as an applet, receives a first input from a user and modifies the poster template based on the set data specifications in response to the first input.
In an embodiment of the disclosure, the first input comprises, for example, a user dragging, zooming, deleting or editing operation of a view in the poster template. The first input represents information input by a user operating on respective views in a poster template provided at the front end of, for example, an applet. The first input represents a modification action of a certain view or certain views in the user poster template, such as dragging the position of the view, zooming or deleting the view, and editing the content in the view, such as editing the text in the view. Or to switch between multiple views to edit different views.
Upon receiving the first input by a user, modifying the poster template based on the set data specification in response to the first input. For example, a user edits the textual content of a view in the poster template, the poster template is modified based on the edited textual content. For another example, if the user adjusts the position of a view in the poster template, the poster template is modified based on the adjusted position of the view.
And in the process of modifying the poster template, rendering is carried out based on the set data specification, so that the updated poster template is obtained.
Illustratively, in embodiments of the present disclosure, the modification of the poster template may be achieved based on the following principles: for example, the front end of the applet constructs a Palette for generating poster pictures according to the set data specification issued by the management platform, and then transmits the Palette to the Painter in the running process of the program. The Painter calls Pen (paintbrush), draws a corresponding dynamic template according to the contents of the paintte, and when the dynamic template is used, the Painter supports dragging, zooming and deleting operations of a user on a poster view (view) in a default mode, so that the freedom degree of the poster template is increased. The style of the operation icon (icon) and the operation box can be customized through the customamactionsstyle. The initial template is imported through the dance palette, and when the template level is refreshed subsequently, the imported value of the dance plette is modified. action is used for modification of the incoming single view (view) level. If the incoming view (view) has an identity (id), the view (view) with the id matching will be overwritten, and if no id exists, the currently selected view will be overwritten by default. The currently selected view (view) can be obtained through touch and or the deletion operation of the user is sensed. If the view (view) is to be scaled, a scalable: true value needs to be configured in css, and if the view (view) is to be deleted, a scalable: true value needs to be configured in css; further customization is achieved by dynamically updating the view (view) attributes, such as replacing the view url, modifying the text, and modifying the text style.
In S103, the poster picture generated based on the modified poster template may be locally stored, so that the user may share the poster picture.
Illustratively, in an embodiment of the present disclosure, the method for generating a poster further comprises:
receiving a second input from the user, and canceling or restoring the modification to the poster template in response to the second input. That is, in the disclosed embodiment, the ability to undo a user's custom editing behavior is supported.
The principle of realizing the functions of canceling and restoring modification is as follows: maintaining two arrays of future (future) and history (history) in a poster rendering page, respectively recording the changes which need to be recovered and need to be cancelled, and when a modification operation is performed, firstly transferring the current state of the view into the history array before modification, and simultaneously emptying the future (future) array. And if the click is cancelled, transmitting the view at the click moment into a future (future) array, and updating the poster template by using the view at the top of the history array. If the click recovers, the view at the moment of the click is imported into the history array, and the poster template is updated with the view at the top of the future array.
Exemplarily, in an embodiment of the present disclosure, before S102, the method for generating a poster further includes: receiving a third input from the user and providing the poster template to the user in response to the third input. The third input is, for example, a user operation of a front-end control. The front-end control is configured to trigger a request for generating the poster when operated, and the front end enters the process of generating the poster. Illustratively, the front-end control is, for example, an operation button provided by the applet end, and the first input is a click or a press of the operation button. When the user clicks or presses the button, the operation of generating the poster is triggered, and the applet provides the poster template issued by the management platform for the user, for example, the poster template is displayed in the page of the applet.
In the embodiment of the disclosure, when the poster template is modified, in order to reduce the drawing time, only necessary redrawing operation is performed, instead of refreshing the whole template every time, so that the interaction experience is improved. To achieve the above capability, in an embodiment of the present disclosure, the modifying the poster template based on the set data specification in response to the second input comprises:
and determining a view to be modified in the poster template, and redrawing the view to be modified based on the first input and the set data specification.
That is, in the embodiment of the present disclosure, when the poster template is modified, only a single view that needs to be modified is redrawn, instead of redrawing all views, so that due to the reduction of the drawing content, the time for completing redrawing is greatly shortened, and the interactive experience is improved.
Embodiments of the present disclosure also provide a method for redrawing a poster.
FIG. 2 is a schematic flow diagram of a method for redrawing a poster according to an embodiment of the disclosure.
As shown in fig. 2, a method for redrawing a poster of an embodiment of the present disclosure includes:
s201, layering drawing layers corresponding to the poster template;
s202, determining a drawing layer corresponding to the view to be modified;
s203, redrawing the drawing layer corresponding to the view to be modified based on the first input and the set data specification.
In S201, the drawing layers corresponding to the poster template are layered. By layering the poster template drawing layers, when a single view needs to be redrawn, only the corresponding drawing layer of the view needs to be redrawn. The exemplary principle is as follows: and (4) carrying out layering operation on the painter palette of the small program, namely cutting the poster template into a plurality of small templates and respectively rendering. Thus, if a single view needs to be redrawn, the pointer only redraws canvas of a corresponding level, and the contents drawn at other levels do not need to be perceived to have the operation at all. Due to the reduction of the drawing content, the redrawing completion time can be greatly shortened.
In S202, the drawing layer to which the view to be modified corresponds, i.e. which of the plurality of drawing layers formed in S201 for the poster template drawing layer hierarchy corresponds to the view to be modified, is determined.
In S203, redrawing the drawing layer corresponding to the view to be modified based on the first input and the set data specification. That is, the view to be modified is redrawn on the drawing layer corresponding to the view, and the drawing process is performed based on the first input and the set data specification. For example, if the first input indicates to re-edit the text in the view, in S203, the drawing layer corresponding to the view to be modified is re-drawn based on the edited text content and the set data specification, and the edited text content is updated to the view.
It will be appreciated that a variety of suitable layering methods may be used to layer the corresponding rendered layers of the poster template. The disclosed embodiments provide an exemplary layering method, which will be described below in conjunction with fig. 3 and 4.
Fig. 3 is a flow diagram of a method for layering the rendered layers of a poster template according to an embodiment of the disclosure.
As shown in fig. 3, a method for layering the drawn layers of a poster template of an embodiment of the present disclosure includes:
s301, setting a separate drawing layer for the view to be modified;
s302, dividing the background layer of the poster template into a top layer and a bottom layer.
In S301, an operation layer is separately created for the view to be updated, which is equivalent to cutting out the view to be updated from the poster template, drawing the view on a separate level, and then only redrawing the operation layer for subsequent modification.
In S302, the background layer of the poster template is divided into a top layer and a bottom layer. The three-layer type division mode draws the original layer higher than the updated view to the top layer and draws the original layer lower than the updated view to the bottom layer each time, and the layered scheme can reasonably avoid the visual problem caused by uncontrollable drawing time in a mode of adjusting the drawing sequence. For example, if the newly switched view is higher than the original level, it is drawn up from the bottom level, and if the newly switched view is lower than the original level, it is drawn down from the top level. And the effect similar to seamless switching can be achieved by using the visual residual before the drawing is finished.
In the embodiment of the present disclosure, the layering a drawing layer of a poster template by the above-mentioned exemplary layering method, in this embodiment, redrawing the drawing layer corresponding to the view to be modified based on the first input and the set data specification includes:
drawing the modified view on the separate drawing layer;
determining the level of the modified view and other views in the poster template;
adding the modified view to the top layer if the modified view is at a higher level than other views in the poster template;
adding the modified view to the bottom layer if the modified view is at a lower level than other views in the poster template.
Fig. 4 is a flow diagram of a method for layering the rendered layers of a poster template according to an embodiment of the disclosure.
As shown in fig. 4, in an implementation manner of an embodiment of the present disclosure, the method for layering the drawing layer corresponding to the poster template may further include:
s401, providing a top layer operation layer, wherein the top layer operation layer is located at the topmost layer of the drawing layer of the poster template, and the top layer operation layer is configured to respond to the selection of the user for the view in the poster template, provide a selection frame for the selected view, mark the position of the selected view, and receive the first input through the frame.
The problem of frequent refreshing caused by frequent update operations on the same view can be solved by providing a top operation layer. The principle is as follows: the drawing layer of the poster template is divided into three canvases (a single layer, a top layer and a bottom layer), and a front canvas layer (namely a top layer operation layer) is also created, is positioned at the topmost layer of the whole drawing layer and is bound with various finger touch events. When a user touch event occurs, the front canvas layer will draw a selection box at the selected view position to mark the selected view position. Meanwhile, icons for zooming and deleting are provided on the selection frame. When the touch event of the user is monitored to occur in the zoom icon, the zoom operation is performed, and in the delete icon, the view is deleted. In addition, if the operation is a dragging operation, the view is dragged, if the operation is a clicking operation, the view at the corresponding position in the process of clicking is clicked (if the view is not available, the view is deselected), or when a plurality of views are overlapped at the same position, the selected view can be switched by clicking for a plurality of times.
The disclosed embodiment also provides a device for generating the poster. Fig. 5 is a schematic block diagram of an apparatus 500 for generating a poster according to an embodiment of the present disclosure.
As shown in fig. 5, an apparatus 500 for generating a poster according to an embodiment of the present disclosure includes a first receiving module 510, a second receiving module 520, a modifying module 530, and a generating module 540.
The first receiving module 510 is configured to receive a poster template and a set data specification issued by a management platform, where the poster template is generated based on the set data specification.
The second receiving module 520 is used for receiving a first input of a user. The first input comprises a user's drag, zoom, delete, or edit operation of a view in the poster template.
A modification module 530 is used to modify the poster template based on the set data specifications in response to the first input. In one embodiment of the present disclosure, the modification module 530 is configured to determine a view to be modified in the poster template, and redraw the view to be modified based on the first input and the set data specification.
The generating module 540 is configured to generate a poster picture based on the modified poster template.
In one embodiment of the present disclosure, the second receiving module 520 is further configured to receive a second input from the user, and the modifying module 530 is further configured to undo or reinstate modification of the poster template in response to the second input.
In one embodiment of the present disclosure, the second receiving module 520 is further configured to receive a third input from the user and provide the poster template to the user in response to the third input.
The disclosed embodiments also provide a module for redrawing a poster. FIG. 6 is a schematic block diagram of a module 600 for redrawing a poster according to an embodiment of the disclosure.
As shown in fig. 6, a module 600 for redrawing a poster according to an embodiment of the present disclosure includes a layering unit 610, a determining unit 620, and a redrawing unit 630.
The layering unit 610 is used for layering the corresponding drawing layers of the poster template.
The determining unit 620 is configured to determine a drawing layer corresponding to the view to be modified.
The redrawing unit 630 is configured to redraw a drawing layer corresponding to the view to be modified based on the first input and the set data specification.
In one embodiment of the present disclosure, the modification module 530 may be implemented as the module 600.
The disclosed embodiments also provide a unit for layering the drawn layers of a poster template. Fig. 7 is a schematic block diagram of a unit 700 for layering the rendered layers of a poster template according to an embodiment of the disclosure.
As shown in fig. 7, a unit 700 for layering the drawn layers of a poster template of an embodiment of the present disclosure includes a first layering subunit 710, a second layering subunit 720, and a third layering subunit 730.
The first hierarchical subunit 710 is configured to set a separate rendering layer for the view to be modified.
The second layering subunit 720 is used to separate the background layer of the poster template into a top layer and a bottom layer.
The third layering subunit 730 is configured to provide a top-level operation layer, which is located at the topmost level of the drawing layer of the poster template; the top-level operation layer is configured to respond to the user's selection of the view in the poster template, provide a selection box for the selected view, mark the position of the selected view, and receive the first input through the box.
In one embodiment of the present disclosure, hierarchical element 610 may be implemented as element 700.
In one embodiment of the present disclosure, the redraw unit 630 is further configured to draw the modified view on the separate drawing layer; determining the level of the modified view and other views in the poster template; adding the modified view to the top layer if the modified view is at a higher level than other views in the poster template; adding the modified view to the bottom layer if the modified view is at a lower level than other views in the poster template.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general purpose and/or special purpose processing views with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The computing unit 801 executes the respective methods and processes described above, such as a method for generating a poster, a method for redrawing a poster, or a method for layering the drawn layers of a poster template. For example, in some embodiments, the method for generating a poster, the method for redrawing a poster, or the method for layering the drawing layers of a poster template may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When loaded into RAM 803 and executed by the computing unit 801, a computer program may perform one or more steps of the above described method for generating a poster, method for redrawing a poster, or method for layering the drawn layers of a poster template. Alternatively, in other embodiments, the computing unit 801 may be configured by any other suitable means (e.g. by means of firmware) to perform the method for generating a poster, the method for redrawing a poster, or the method for layering the drawn layers of a poster template.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (13)

1. A method for generating a poster, comprising:
receiving a poster template and a set data specification issued by a management platform, wherein the poster template is generated based on the set data specification;
receiving a first input from a user, modifying the poster template based on the set data specifications in response to the first input;
and generating a poster picture based on the modified poster template.
2. The method of claim 1, wherein the first input comprises at least one of a drag, zoom, delete, and edit operation of a user on a view in the poster template.
3. The method of claim 1 or 2, further comprising:
receiving a second input by the user, and canceling or restoring the modification to the poster template in response to the second input.
4. The method of any of claims 1-3, wherein the modifying the poster template based on the set data specification in response to the first input comprises:
and determining a view to be modified in the poster template, and redrawing the view to be modified based on the first input and the set data specification.
5. The method of claim 4, wherein said redrawing the view to be modified based on the first input and the set data specification comprises:
layering drawing layers corresponding to the poster template;
determining a drawing layer corresponding to the view to be modified;
and redrawing the drawing layer corresponding to the view to be modified based on the first input and the set data specification.
6. The method of claim 5, wherein the layering of the corresponding drawing layers of the poster template comprises:
setting a separate drawing layer for the view to be modified;
the background layer of the poster template is divided into a top layer and a bottom layer.
7. The method of claim 6, wherein the redrawing the drawing layer corresponding to the view to be modified based on the first input and the set data specification comprises:
drawing the modified view on the separate drawing layer;
determining the level of the modified view and other views in the poster template;
adding the modified view to the top layer if the modified view is at a higher level than other views in the poster template;
adding the modified view to the bottom layer if the modified view is at a lower level than other views in the poster template.
8. The method of claim 5, wherein the layering of the corresponding drawing layers of the poster template further comprises:
providing a top layer operation layer, wherein the top layer operation layer is positioned at the topmost layer of the drawing layer of the poster template;
the top-level operation layer is configured to respond to the user's selection of the view in the poster template, provide a selection box for the selected view, mark the position of the selected view, and receive the first input through the selection box.
9. The method according to any one of claims 1-8, wherein the set data specification comprises a JSON drawing specification.
10. An apparatus for generating a poster, comprising:
the first receiving module is used for receiving a poster template issued by a management platform and a set data specification, and the poster template is generated based on the set data specification;
the second receiving module is used for receiving a first input of a user;
a modification module for modifying the poster template based on the set data specifications in response to the first input;
and the generation module is used for generating poster pictures based on the modified poster template.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-9.
13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-9.
CN202110757121.0A 2021-07-05 2021-07-05 Method, device, electronic equipment, storage medium and product for generating poster Pending CN113536755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110757121.0A CN113536755A (en) 2021-07-05 2021-07-05 Method, device, electronic equipment, storage medium and product for generating poster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110757121.0A CN113536755A (en) 2021-07-05 2021-07-05 Method, device, electronic equipment, storage medium and product for generating poster

Publications (1)

Publication Number Publication Date
CN113536755A true CN113536755A (en) 2021-10-22

Family

ID=78097765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110757121.0A Pending CN113536755A (en) 2021-07-05 2021-07-05 Method, device, electronic equipment, storage medium and product for generating poster

Country Status (1)

Country Link
CN (1) CN113536755A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327736A (en) * 2022-01-19 2022-04-12 福建中科多特健康科技有限公司 Poster generation method and system
CN115357238A (en) * 2022-09-06 2022-11-18 中国建设银行股份有限公司 Data processing method, device, equipment, storage medium and product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144628A (en) * 2018-07-05 2019-01-04 厦门微芽互娱科技有限公司 Poster generation method, medium, terminal device and device
CN111462281A (en) * 2020-03-31 2020-07-28 北京创鑫旅程网络技术有限公司 Poster generation method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144628A (en) * 2018-07-05 2019-01-04 厦门微芽互娱科技有限公司 Poster generation method, medium, terminal device and device
CN111462281A (en) * 2020-03-31 2020-07-28 北京创鑫旅程网络技术有限公司 Poster generation method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KUJIALE-MOBILE: ""小程序生成图片库,轻松通过 json 方式绘制一张可以发到朋友圈的图片", pages 1 - 18, Retrieved from the Internet <URL:https://web.archive.org/web/20201212094057/https://github.com/Kujiale-Mobile/Painter> *
KUJIALE-MOBILE: "动态模版简介", pages 1 - 3, Retrieved from the Internet <URL:https://github.com/Kujiale-Mobile/Painter/wiki/%E5%8A%A8%E6%80%81%E6%A8%A1%E7%89%88%E7%AE%80%E4%BB%8B> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327736A (en) * 2022-01-19 2022-04-12 福建中科多特健康科技有限公司 Poster generation method and system
CN115357238A (en) * 2022-09-06 2022-11-18 中国建设银行股份有限公司 Data processing method, device, equipment, storage medium and product

Similar Documents

Publication Publication Date Title
US10762277B2 (en) Optimization schemes for controlling user interfaces through gesture or touch
KR102307163B1 (en) Cross-platform rendering engine
US9575652B2 (en) Instantiable gesture objects
CN103365761A (en) Progress bar
CN103370689A (en) Cross-environment application compatibility
CN103425479A (en) User interface for remote device virtualization
EP2992411A1 (en) Automatically manipulating visualized data based on interactivity
US20140331179A1 (en) Automated Presentation of Visualized Data
CN112230909A (en) Data binding method, device and equipment of small program and storage medium
AU2020202901B2 (en) Enriching collaboration using visual comments in a shared review
CN113536755A (en) Method, device, electronic equipment, storage medium and product for generating poster
EP3230895A1 (en) Presentation of content from within spreadsheet application
US20200293164A1 (en) Html editing operations
CN110992112A (en) Method and device for processing advertisement information
CN114116098B (en) Application icon management method and device, electronic equipment and storage medium
KR20160113135A (en) Providing print view of document for editing in web-based application
CN114239524A (en) Questionnaire generation method, questionnaire generation device, computer equipment and storage medium
CN105324795B (en) Merge graphic operation
EP2994861A1 (en) Transforming visualized data through visual analytics based on interactivity
CN116719456A (en) Icon style switching method and device, electronic equipment and storage medium
CN113126863B (en) Object selection implementation method and device, storage medium and electronic equipment
CN115408002A (en) Webpage generation method, system, electronic equipment and storage medium
CN114371838A (en) Method, device and equipment for rendering small program canvas and storage medium
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
CN113672149A (en) View display method and device, electronic equipment and computer 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