CN112330774A - Method and device for synthesizing pictures in batch, electronic equipment and storage medium - Google Patents

Method and device for synthesizing pictures in batch, electronic equipment and storage medium Download PDF

Info

Publication number
CN112330774A
CN112330774A CN202011333725.4A CN202011333725A CN112330774A CN 112330774 A CN112330774 A CN 112330774A CN 202011333725 A CN202011333725 A CN 202011333725A CN 112330774 A CN112330774 A CN 112330774A
Authority
CN
China
Prior art keywords
picture
character
pictures
data table
bits
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
Application number
CN202011333725.4A
Other languages
Chinese (zh)
Other versions
CN112330774B (en
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.)
Ctrip Travel Network Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Network Technology Shanghai 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 Ctrip Travel Network Technology Shanghai Co Ltd filed Critical Ctrip Travel Network Technology Shanghai Co Ltd
Priority to CN202011333725.4A priority Critical patent/CN112330774B/en
Publication of CN112330774A publication Critical patent/CN112330774A/en
Application granted granted Critical
Publication of CN112330774B publication Critical patent/CN112330774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method and a device for synthesizing pictures in batch, electronic equipment and a storage medium, wherein the method comprises the following steps: displaying a batch synthesis picture interface in a browser based on a browser canvas; acquiring a background template and displaying the background template on a batch synthesis picture interface, wherein the background template comprises at least one picture position and at least one character position; acquiring a data table; filling data in the data table into a background template according to the corresponding relation between the data table and the picture bits and/or the character bits so as to display the data on a batch synthesis picture interface; responding to the editing operation of a user on the batch synthesis picture interface, and adjusting pictures filled with picture positions and/or characters filled with character positions; and responding to the downloading operation of the user on the batch synthesis picture interface, so that the background template displayed on the batch synthesis picture interface and the pictures filled with the picture bits and/or the characters filled with the character bits form an output picture to download the output picture. The method and the device provided by the invention realize the batch synthesis of the pictures.

Description

Method and device for synthesizing pictures in batch, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method and an apparatus for batch composition of pictures, an electronic device, and a storage medium.
Background
Currently, in APP development and user interactive design, drawing is usually performed by a designer through a special drawing software (such as photoshop). However, the number of functions of the APP is increasing, and meanwhile, the time for updating the APP by various activities requires more time only by designers for drawing production. In order to relieve the pressure of designers, at present, an operator can assist in making drawings, however, the operator has limited authority or a computer configures an operating environment in which drawing software cannot be installed, so that the drawing difficulty is increased. Meanwhile, in the case of producing moving pictures, the same steps are usually required to be repeatedly operated, but different languages and techniques also easily cause manual operation errors such as omission in copying, and fields are frequently updated, so that fatigue is increased and efficiency is gradually reduced.
Therefore, how to simplify the production of moving pictures to realize batch production and avoid document errors caused by manual operation is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a method, a device, electronic equipment and a storage medium for synthesizing pictures in batches, so that file errors caused by manual operation can be avoided while batch generation is realized by simplifying the production of moving pictures.
According to an aspect of the present invention, there is provided a method of batch synthesizing pictures, including:
displaying a batch synthesis picture interface in a browser based on a browser canvas;
acquiring a background template and displaying the background template on the batch synthesis picture interface, wherein the background template comprises at least one picture position and at least one character position;
acquiring a data table;
filling the data in the data table into the background template according to the corresponding relation between the data table and the picture bit and/or the character bit so as to display the data in the batch composite picture interface;
responding to the editing operation of the user on the batch synthesis picture interface, and adjusting the pictures filled in the picture positions and/or the characters filled in the character positions displayed on the batch synthesis picture interface;
and responding to the downloading operation of the user on the batch synthesis picture interface, so that the background template displayed on the batch synthesis picture interface and the picture filled in the picture position and/or the character filled in the character position form an output picture to download the output picture.
In some embodiments of the present invention, the picture bits are associated with a coordinate region of a background template, and when the picture bits are filled in the pictures in the data table,
automatically adapting pictures in the data table to the coordinate regions of the picture bits; or
Filling the picture bits according to the original size of the picture in the data table, hiding the part of the picture in the data table, which exceeds the coordinate area of the picture bits, when the original size of the picture in the data table is larger than or equal to the coordinate area of the picture bits, and displaying the part, which does not fill the coordinate area of the picture bits, of the picture in the data table as a solid background when the original size of the picture in the data table is smaller than the coordinate area of the picture bits.
In some embodiments of the present invention, the character bit is associated with a coordinate area of a background template, and the character bit is filled with the character in the data table in one of the following manners:
automatically adapting the size, character spacing and line spacing of characters in the data table to the coordinate area of the character bits;
adjusting characters in the data table according to the character display attributes associated with the character bits to fill in the coordinate areas of the character bits; or
And according to the character display attribute of the characters in the data table, performing line feed according to the coordinate area of the character position so as to fill the characters in the data table into the coordinate area of the character position.
In some embodiments of the present invention, the fields associated with the picture bits and the character bits correspond to headers in the data table one-to-one, so that the picture bits and/or the character bits are filled with pictures and/or characters according to matching of the fields and the headers.
In some embodiments of the present invention, the adjusting the pictures filled in the picture bits and/or the characters filled in the character bits displayed on the batch composite picture interface in response to the editing operation of the user on the batch composite picture interface includes:
responding to an editing operation of a user on pictures filled in the picture positions and/or characters filled in the character positions in one background template displayed by the batch synthesis picture interface, so as to adjust the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to the background template, simultaneously adjust the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to all the background templates, and synchronously displaying the adjustment of the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to each background template on the batch synthesis picture interface.
In some embodiments of the present invention, the data table includes a picture table and a character table independent of each other; or
The corresponding pictures and characters of each output picture in the data table are positioned on the same row/column of the data table,
and the pictures in the data table are the pictures embedded in the data table or the paths for acquiring the pictures.
In some embodiments of the present invention, when the picture is filled in the picture bit, a main body part matching the field is identified from the picture according to the field of the picture bit, and at least the main body part is displayed in the center of the picture bit.
According to still another aspect of the present invention, there is also provided an apparatus for batch-synthesizing pictures, including:
the first display module is used for displaying a batch synthesis picture interface in the browser based on the browser canvas;
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a background template and displaying the background template on the batch synthesis picture interface, and the background template comprises at least one picture position and at least one character position;
the second acquisition module is used for acquiring a data table;
the filling module is used for filling the data in the data table into the background template according to the corresponding relation between the data table and the picture bit and/or the character bit so as to display the data on the batch composite picture interface;
the adjusting module is used for responding to the editing operation of the user on the batch synthesis picture interface, and adjusting the pictures filled in the picture positions and/or the characters filled in the character positions displayed on the batch synthesis picture interface;
and the synthesis downloading module is used for responding to the downloading operation of the user on the batch synthesis picture interface, so that the background template displayed on the batch synthesis picture interface and the picture filled in the picture position and/or the character filled in the character position form an output picture to download the output picture.
According to still another aspect of the present invention, there is also provided an electronic apparatus, including: a processor; a storage medium having stored thereon a computer program which, when executed by the processor, performs the steps of the method of batch composition of pictures as described above.
According to yet another aspect of the present invention, there is also provided a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of batch composition of pictures as described above.
Compared with the prior art, the invention has the advantages that:
on one hand, the background template can be decoupled from the picture position and the character position, so that the reworking of the drawing generation is avoided; on the other hand, the method is realized in a browser, has low requirements on system environment and is convenient to operate; on the other hand, through the batch filling of the character bits and the picture bits, repeated boring operation is avoided, and the design productivity is used in a more needed place; in another aspect, operation or entry errors caused by manual operation are reduced by batch filling; further, the operation steps of the picture composition process can also be shortened.
Drawings
The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 shows a flow chart of a method of batch composition of pictures according to an embodiment of the invention.
Fig. 2 shows a flowchart of editing a picture according to a specific embodiment of the present invention.
FIG. 3 shows a schematic diagram of a batch composition picture interface according to an embodiment of the invention.
Fig. 4 is a block diagram illustrating an apparatus for batch-synthesizing pictures according to an embodiment of the present invention.
Fig. 5 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the disclosure.
Fig. 6 schematically illustrates an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In order to solve the defects of the prior art, the invention provides a method and a device for synthesizing pictures in batches, electronic equipment and a storage medium, wherein the method and the device are used for simplifying the production of moving pictures to realize batch generation and avoiding file errors caused by manual operation.
Referring first to fig. 1, fig. 1 shows a schematic diagram of a method for batch synthesizing pictures according to an embodiment of the present invention. The method for synthesizing pictures in batches comprises the following steps:
step S110: and displaying a batch synthesis picture interface in the browser based on the browser canvas.
Specifically, in some embodiments, the present invention may run in a browser based on html as well as javascript languages. For example, visual interactive development may be performed using the features of the browser canvas, and the present invention may provide a custom tool to address specified requirements. Therefore, the method and the device can realize convenient operation on canvas of canvas based on the open source framework easeljs, solve the aim of short-term tool development, and flexibly and quickly respond to the adjustment of the tool by the service. The invention can manually adjust the zoom size and the positioning of the picture, can independently set the color of each field (when the invention is applied to an online travel agency, the field can comprise a title, a house type, night, description, price and the like), can replace the outline figure, can finely adjust the size of the title characters and the positioning of an x axis and/or a y axis, and can finely adjust the size of the description characters. Clicking the download button can save pictures in various formats (such as png format) into the local browser download directory.
Step S120: and acquiring a background template and displaying the background template on the batch synthesis picture interface, wherein the background template comprises at least one picture bit and at least one character bit.
In some embodiments, each picture bit and character bit is associated with its coordinate position and coordinate range in the background template. Further, each picture bit and character bit may also be associated with a display parameter, e.g., for a character bit, it may be associated with a character font, font size, spacing, line spacing, etc.
Step S130: and acquiring a data table.
In particular, when the background template includes only one picture bit, the data table may be only a character table. When the background template includes a plurality of picture bits and a plurality of character bits, the data table may include a picture table and a character table independent of each other. Meanwhile, the picture tables and the character tables are in one-to-one correspondence (for example, a row of picture tables and a row of character tables are in one-to-one correspondence; for example, a column of picture tables and a column of character tables are in one-to-one correspondence). Specifically, the picture bits and the fields associated with the character bits are in one-to-one correspondence with headers in the data table, so that pictures and/or characters are filled in the picture bits and/or the character bits according to matching of the fields and the headers. Furthermore, the pictures and characters corresponding to each output picture in the data table are located in the same row/column of the data table, so that the data table simultaneously comprises the picture table and the character table.
In some embodiments of the present invention, the pictures in the data table may be pictures embedded in the data table, so as to reduce picture reading operations. In some variations, the picture in the data table may also be a path for obtaining the picture, so as to reduce the data size of the data table, and facilitate flexible modification of the picture of the corresponding path. In particular, the data table may be an excel table for ease of fabrication and loading.
Step S140: and filling the data in the data table into the background template according to the corresponding relation between the data table and the picture bit and/or the character bit so as to display the data in the batch synthesis picture interface.
Step S150: and responding to the editing operation of the user on the batch synthesis picture interface, and adjusting the pictures filled in the picture positions and/or the characters filled in the character positions displayed on the batch synthesis picture interface.
Step S160: and responding to the downloading operation of the user on the batch synthesis picture interface, so that the background template displayed on the batch synthesis picture interface and the picture filled in the picture position and/or the character filled in the character position form an output picture to download the output picture.
In particular, referring to fig. 3, fig. 3 shows a schematic diagram of a batch composition picture interface 200 according to an embodiment of the invention. The batch composition picture interface 200 displays a plurality of background templates 210, wherein the background templates 210 include at least one picture bit 211 and at least one character bit 212, and a data table is loaded to fill the picture bit 211 and the character bit 212 so as to obtain a plurality of different pictures for single-frame downloading or batch downloading. The batch composition picture interface 200 also provides a plurality of function keys for performing editing and other functional operations.
In the method for synthesizing pictures in batches, on one hand, the background template can be decoupled from the picture position and the character position, so that the repeated reworking of the generation of the drawing is avoided; on the other hand, the method is realized in a browser, has low requirements on system environment and is convenient to operate; on the other hand, through the batch filling of the character bits and the picture bits, repeated boring operation is avoided, and the design productivity is used in a more needed place; in another aspect, operation or entry errors caused by manual operation are reduced by batch filling; further, the operation steps of the picture composition process can also be shortened.
In some embodiments of the present invention, the picture bits are associated with a coordinate region of a background template, and when the picture bits are filled in the pictures in the data table, the pictures in the data table can be automatically adapted to the coordinate region of the picture bits. In other words, the length and width of the pictures in the data table can be automatically made to coincide with the coordinate area of the picture bit, whereby batch processing of the pictures can be automatically realized. In some variations, when the picture bits are filled in the pictures in the data table, the picture bits may be filled in according to the original sizes of the pictures in the data table, when the original sizes of the pictures in the data table are greater than or equal to the coordinate regions of the picture bits, the parts of the pictures in the data table that exceed the coordinate regions of the picture bits are hidden, and when the original sizes of the pictures in the data table are smaller than the coordinate regions of the picture bits, the parts of the pictures in the data table that do not fill the coordinate regions of the picture bits are displayed as a solid background. Therefore, picture distortion caused by the fact that the picture is stretched transversely or longitudinally is avoided. Further, in this embodiment, the user may also adjust the size of the picture and the position of the picture in the coordinate area through a function key, touch or drag operation. Further, in some embodiments of the present invention, when the picture is filled in the picture bit, a main portion matching the field is identified from the picture according to the field of the picture bit, and at least the main portion is displayed in a center position of the picture bit. For example, when the field is a guest room, a part of the picture which embodies the guest room and matches the field is identified from the picture (this step can be realized by a trained model), and the part of the picture which can embody the guest room most is arranged at the center of the picture position.
In some embodiments of the present invention, the character bits are associated with a coordinate region of a background template, and when filling the character bits with the characters in the data table, the size, character interval, and line spacing of the characters in the data table can be automatically adapted to the coordinate region of the character bits. For example, the size, character interval, and line space of the character that is most suitable for obtaining may be calculated from the size of the coordinate area and the number of characters. A corresponding algorithm may be preset, for example, a character interval may be set to be a normal character interval, 1 line of characters is preferentially set, the size of a character is calculated according to 1 line of characters, and when the calculated size of a character is larger than a predetermined threshold, the size of the character is adopted; and when the calculated character size is less than or equal to the preset threshold value, setting the characters in 2 lines, calculating the character size again, and judging the relationship between the character size and the preset threshold value again, thereby avoiding the situation that the characters are too small.
In some variations, the character bits are associated with a coordinate region of a background template, and when filling the character bits with the characters in the data table, the characters in the data table may be adjusted according to the character display attribute (e.g., may include font, font size, space, line spacing, color, etc.) associated with the character bits to fill the coordinate region of the character bits.
In still other variations, the character bit is associated with a coordinate region of a background template, and when filling the character bit with the character in the data table, a line may be changed according to the character display attribute of the character in the data table and the coordinate region of the character bit, so as to fill the character in the data table into the coordinate region of the character bit.
In the above embodiments, the display attribute of the character can be edited and modified by subsequent function key or touch operation.
Referring now to fig. 2, fig. 2 illustrates a flow diagram for editing a picture, according to an embodiment of the present invention. Fig. 2 shows a specific implementation of adjusting the pictures filled in the picture bits and/or the characters filled in the character bits displayed on the batch composite picture interface in response to the editing operation of the user on the batch composite picture interface, which includes the following steps:
step S151: responding to the editing operation of the pictures filled in the picture positions and/or the characters filled in the character positions in a background template displayed by the batch synthesis picture interface by a user, and adjusting the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to the background template;
step S152: and simultaneously, adjusting the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to all the background templates, and synchronously displaying the adjustment of the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to all the background templates on the batch synthesis picture interface.
In the present embodiment, step S151 and step S152 are simultaneously performed to provide the user with a function of batch editing. Further, the present invention can also realize a function of individual editing.
In some variations of the present invention, after the import data table is filled with pictures and characters, a step of identifying whether editing is required may be further included, for example, by judging whether the picture is blocked, whether the picture bit is not filled, and whether the character exceeds the character bit (thereby causing partial characters not to be displayed), when any one of the situations exists, an alarm mark can be displayed on the background template of the situation, alarm information can be provided in the form of a pop-up window and the like, and skipping to the corresponding background template based on the alarm information for the user to edit the background template (in this embodiment, if the user is in the batch editing state before providing the alarm information, the user exits the batch editing state after skipping to the corresponding background template through the alarm information, thereby realizing an individual editing function and avoiding the occurrence of errors/alarms after completing batch editing of other background templates).
Furthermore, the invention can support paging display and operation in consideration of overlarge required result picture.
The foregoing is merely an exemplary description of various implementations of the invention and is not intended to be limiting thereof.
The invention also provides a device for synthesizing pictures in batches, and fig. 4 is a schematic diagram of the device for synthesizing pictures in batches according to the embodiment of the invention. The apparatus 300 for batch composition of pictures includes a first display module 310, a first obtaining module 320, a second obtaining module 330, a filling module 340, an adjusting module 350, and a composition downloading module 360.
The first display module 310 is configured to display a batch composite picture interface in a browser based on a browser canvas;
the first obtaining module 320 is configured to obtain a background template and display the background template on the batch composite picture interface, where the background template includes at least one picture bit and at least one character bit;
the second obtaining module 330 is configured to obtain a data table;
the filling module 340 is configured to fill the data in the data table into the background template according to the corresponding relationship between the data table and the picture bits and/or the character bits, so as to display the data on the batch composite picture interface;
the adjusting module 350 is configured to adjust the pictures filled in the picture bits and/or the characters filled in the character bits displayed on the batch composite picture interface in response to the editing operation of the user on the batch composite picture interface;
the synthesis downloading module 360 is configured to respond to a downloading operation of the user on the batch synthesis picture interface, so that the background template displayed on the batch synthesis picture interface and the picture filled in the picture bits and/or the characters filled in the character bits form an output picture to download the output picture.
In the device for synthesizing pictures in batches, on one hand, the background template can be decoupled from the picture position and the character position, so that the repeated reworking of the generation of the drawing is avoided; on the other hand, the method is realized in a browser, has low requirements on system environment and is convenient to operate; on the other hand, through the batch filling of the character bits and the picture bits, repeated boring operation is avoided, and the design productivity is used in a more needed place; in another aspect, operation or entry errors caused by manual operation are reduced by batch filling; further, the operation steps of the picture composition process can also be shortened.
Fig. 4 is only a schematic illustration of the apparatus for batch composition of pictures provided by the present invention, and the splitting, merging, and adding of modules are within the scope of the present invention without departing from the concept of the present invention. The device for batch synthesis of pictures provided by the invention can be realized by software, hardware, firmware, plug-in and any combination thereof, and the invention is not limited by the invention.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored, which when executed by, for example, a processor, may implement the steps of the method for batch synthesis of pictures described in any of the above embodiments. In some possible embodiments, the aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the invention described in the method part of batch composition of pictures described above in this specification, when the program product is run on the terminal device.
Referring to fig. 5, a program product 400 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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 computer readable storage medium may include a propagated data signal with 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 readable storage medium may also be any readable medium that is not a 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 readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the tenant computing device, partly on the tenant device, as a stand-alone software package, partly on the tenant computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing devices may be connected to the tenant computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, there is also provided an electronic device, which may include a processor, and a memory for storing executable instructions of the processor. Wherein the processor is configured to perform the steps of the method for batch synthesis of pictures in any of the above embodiments via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the method part of batch composition of pictures described above in this specification. For example, the processing unit 610 may perform the steps as shown in fig. 1 to 2.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a tenant to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method for batch composition of pictures according to the embodiments of the present disclosure.
Compared with the prior art, the invention has the advantages that:
on one hand, the background template can be decoupled from the picture position and the character position, so that the reworking of the drawing generation is avoided; on the other hand, the method is realized in a browser, has low requirements on system environment and is convenient to operate; on the other hand, through the batch filling of the character bits and the picture bits, repeated boring operation is avoided, and the design productivity is used in a more needed place; in another aspect, operation or entry errors caused by manual operation are reduced by batch filling; further, the operation steps of the picture composition process can also be shortened.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for batch composition of pictures, comprising:
displaying a batch synthesis picture interface in a browser based on a browser canvas;
acquiring a background template and displaying the background template on the batch synthesis picture interface, wherein the background template comprises at least one picture position and at least one character position;
acquiring a data table;
filling the data in the data table into the background template according to the corresponding relation between the data table and the picture bit and/or the character bit so as to display the data in the batch composite picture interface;
responding to the editing operation of the user on the batch synthesis picture interface, and adjusting the pictures filled in the picture positions and/or the characters filled in the character positions displayed on the batch synthesis picture interface;
and responding to the downloading operation of the user on the batch synthesis picture interface, so that the background template displayed on the batch synthesis picture interface and the picture filled in the picture position and/or the character filled in the character position form an output picture to download the output picture.
2. The method of claim 1, wherein the picture bits are associated with a coordinate region of a background template, and when the picture bits are filled in the pictures in the data table,
automatically adapting pictures in the data table to the coordinate regions of the picture bits; or
Filling the picture bits according to the original size of the picture in the data table, hiding the part of the picture in the data table, which exceeds the coordinate area of the picture bits, when the original size of the picture in the data table is larger than or equal to the coordinate area of the picture bits, and displaying the part, which does not fill the coordinate area of the picture bits, of the picture in the data table as a solid background when the original size of the picture in the data table is smaller than the coordinate area of the picture bits.
3. The method of batch composition of pictures as claimed in claim 1, wherein said character bits are associated with a coordinate area of a background template, and said character bits are filled with characters in said data table in one of the following ways:
automatically adapting the size, character spacing and line spacing of characters in the data table to the coordinate area of the character bits;
adjusting characters in the data table according to the character display attributes associated with the character bits to fill in the coordinate areas of the character bits; or
And according to the character display attribute of the characters in the data table, performing line feed according to the coordinate area of the character position so as to fill the characters in the data table into the coordinate area of the character position.
4. The method according to claim 1, wherein the fields associated with the picture bits and the character bits are in one-to-one correspondence with headers in the data table, so as to fill the picture bits and/or the character bits with pictures and/or characters according to matching of the fields and the headers.
5. The method for batch composition of pictures according to claim 1, wherein the adjusting the pictures filled in the picture bits and/or the characters filled in the character bits displayed on the batch composition picture interface in response to the editing operation of the user on the batch composition picture interface comprises:
responding to the editing operation of the pictures filled in the picture positions and/or the characters filled in the character positions in a background template displayed by the batch synthesis picture interface by a user, and adjusting the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to the background template;
and simultaneously, adjusting the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to all the background templates, and synchronously displaying the adjustment of the display attributes of the pictures filled in the picture positions and/or the characters filled in the character positions corresponding to all the background templates on the batch synthesis picture interface.
6. The method for batch synthesis of pictures according to any one of claims 1 to 5,
the data table comprises a picture table and a character table which are mutually independent; or
The corresponding pictures and characters of each output picture in the data table are positioned on the same row/column of the data table,
and the pictures in the data table are the pictures embedded in the data table or the paths for acquiring the pictures.
7. The method as claimed in any one of claims 1 to 5, wherein when the picture is filled in the picture bits, a main portion matching the field is identified from the picture according to the field of the picture bits, and at least the main portion is displayed at a central position of the picture bits.
8. An apparatus for batch composition of pictures, comprising:
the first display module is used for displaying a batch synthesis picture interface in the browser based on the browser canvas;
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a background template and displaying the background template on the batch synthesis picture interface, and the background template comprises at least one picture position and at least one character position;
the second acquisition module is used for acquiring a data table;
the filling module is used for filling the data in the data table into the background template according to the corresponding relation between the data table and the picture bit and/or the character bit so as to display the data on the batch composite picture interface;
the adjusting module is used for responding to the editing operation of the user on the batch synthesis picture interface, and adjusting the pictures filled in the picture positions and/or the characters filled in the character positions displayed on the batch synthesis picture interface;
and the synthesis downloading module is used for responding to the downloading operation of the user on the batch synthesis picture interface, so that the background template displayed on the batch synthesis picture interface and the picture filled in the picture position and/or the character filled in the character position form an output picture to download the output picture.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
storage medium having stored thereon a computer program which, when being executed by the processor, performs the method of batch composition of pictures as claimed in any one of claims 1 to 7.
10. A storage medium having stored thereon a computer program for performing, when executed by a processor, a method of batch composition of pictures according to any one of claims 1 to 7.
CN202011333725.4A 2020-11-24 2020-11-24 Method and device for synthesizing pictures in batches, electronic equipment and storage medium Active CN112330774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011333725.4A CN112330774B (en) 2020-11-24 2020-11-24 Method and device for synthesizing pictures in batches, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011333725.4A CN112330774B (en) 2020-11-24 2020-11-24 Method and device for synthesizing pictures in batches, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112330774A true CN112330774A (en) 2021-02-05
CN112330774B CN112330774B (en) 2023-09-08

Family

ID=74308575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011333725.4A Active CN112330774B (en) 2020-11-24 2020-11-24 Method and device for synthesizing pictures in batches, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112330774B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040078786A1 (en) * 2001-01-19 2004-04-22 Hoolahan Ronald Francis System and method for editing computer-generated documents independently of the creater software application
CN105339881A (en) * 2013-03-14 2016-02-17 维克斯网有限公司 Device, system, and method of website building by utilizing data lists
CN106599212A (en) * 2016-12-16 2017-04-26 济南浪潮高新科技投资发展有限公司 Method for importing data in batches through business interface
CN109978972A (en) * 2019-03-20 2019-07-05 珠海天燕科技有限公司 A kind of method and device of copy editor in picture
CN110109591A (en) * 2019-04-15 2019-08-09 珠海格力电器股份有限公司 A kind of picture editing method and device
CN111104030A (en) * 2019-12-06 2020-05-05 稿定(厦门)科技有限公司 Picture batch editing method based on mobile terminal
CN111339733A (en) * 2020-03-20 2020-06-26 成都药王科技股份有限公司 Batch picture rapid manufacturing method, system, terminal equipment and storage medium for commercial operation
US20200320165A1 (en) * 2019-04-05 2020-10-08 Adobe Inc. Techniques for generating templates from reference single page graphic images

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040078786A1 (en) * 2001-01-19 2004-04-22 Hoolahan Ronald Francis System and method for editing computer-generated documents independently of the creater software application
CN105339881A (en) * 2013-03-14 2016-02-17 维克斯网有限公司 Device, system, and method of website building by utilizing data lists
CN106599212A (en) * 2016-12-16 2017-04-26 济南浪潮高新科技投资发展有限公司 Method for importing data in batches through business interface
CN109978972A (en) * 2019-03-20 2019-07-05 珠海天燕科技有限公司 A kind of method and device of copy editor in picture
US20200320165A1 (en) * 2019-04-05 2020-10-08 Adobe Inc. Techniques for generating templates from reference single page graphic images
CN110109591A (en) * 2019-04-15 2019-08-09 珠海格力电器股份有限公司 A kind of picture editing method and device
CN111104030A (en) * 2019-12-06 2020-05-05 稿定(厦门)科技有限公司 Picture batch editing method based on mobile terminal
CN111339733A (en) * 2020-03-20 2020-06-26 成都药王科技股份有限公司 Batch picture rapid manufacturing method, system, terminal equipment and storage medium for commercial operation

Also Published As

Publication number Publication date
CN112330774B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
CN108415706B (en) Method, system, equipment and storage medium for generating visual webpage
US8938685B2 (en) Automated graphical user interface design and development systems and methods
US20100023140A1 (en) Field device management apparatus and field device management system
US20080098319A1 (en) Method and apparatus for interacvtive multimedia author tool and dynamic toolbar
US9548042B2 (en) Responsive document breakpoints systems and methods
CN113032083A (en) Data display method, device, electronic equipment and medium
CN112330775A (en) Method and device for synthesizing posters in batches, electronic equipment and storage medium
CN112558967A (en) Page automatic generation method and device, electronic equipment and storage medium
CN113849175A (en) Code generation method, device, equipment and storage medium
CN112330774B (en) Method and device for synthesizing pictures in batches, electronic equipment and storage medium
EP1744253A1 (en) Document processing device and document processing method
US9082104B2 (en) Method and apparatus for managing system specifications
CN116755665A (en) General page template development method and system based on database table structure
US9785326B2 (en) Defining and tracking an interactive user interface
CN114692055A (en) Form processing method and device, storage medium and electronic equipment
CN107220045B (en) Station building method, device, equipment and storage medium based on artificial intelligence
US20210081180A1 (en) Focused specification generation for interactive designs
CN112269960B (en) Webpage updating method, system, equipment and storage medium based on associated report
CN112269961A (en) Webpage generation method, system, equipment and storage medium based on associated report
JPH04278992A (en) Character string display method
CN112540803B (en) Form design adaptation method, device, equipment and storage medium
JP2896536B2 (en) Electronic message system
CN117093306A (en) Wafer map processing system based on B/S architecture
CN114625472A (en) Page display method and device, electronic equipment and storage medium

Legal Events

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