CN112330774B - Method and device for synthesizing pictures in batches, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112330774B
CN112330774B CN202011333725.4A CN202011333725A CN112330774B CN 112330774 B CN112330774 B CN 112330774B CN 202011333725 A CN202011333725 A CN 202011333725A CN 112330774 B CN112330774 B CN 112330774B
Authority
CN
China
Prior art keywords
picture
character
data table
filled
batch
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.)
Active
Application number
CN202011333725.4A
Other languages
Chinese (zh)
Other versions
CN112330774A (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

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 application provides a method, a device, electronic equipment and a storage medium for synthesizing pictures in batches, wherein the method comprises the following steps: displaying a batch composite picture interface in a browser based on the browser canvas; obtaining a background template and displaying the background template on a batch composite 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 bit and/or the character bit so as to be displayed on a batch synthesis picture interface; responding to the editing operation of a user on a batch synthesized picture interface, and adjusting the picture filled in the picture position and/or the character filled in the character position; responding to the downloading operation of the user on the batch synthesized picture interface, enabling the background template displayed on the batch synthesized picture interface and the picture filled in the picture position and/or the character filled in the character position to form an output picture, and downloading the output picture. The method and the device provided by the application realize batch synthesis of pictures.

Description

Method and device for synthesizing pictures in batches, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for synthesizing pictures in batches.
Background
Currently, in APP development and user interaction design, it is often necessary for a designer to draw by dedicated drawing software (such as photoshop). However, APP functions are increasing, and at the same time, various activities require more time for APP update, and only by a designer to make drawings. In order to relieve the pressure of a designer, at present, the drawing can be made with the assistance of an operator, however, the operator is limited in authority or the computer is configured to be unable to install the operation environment of drawing software, so that the difficulty is increased for drawing. Meanwhile, when moving pictures are produced, the same steps are usually required to be repeatedly operated, but different text languages are easy to cause manual operation errors such as omission in copying, fields are frequently updated, and fatigue degree is increased and efficiency is gradually reduced.
Therefore, how to simplify the production of moving pictures to realize batch generation and avoid text errors caused by manual operation is a technical problem to be solved by the technicians in the field.
Disclosure of Invention
In order to overcome the defects in the prior art, the application provides a method, a device, electronic equipment and a storage medium for synthesizing pictures in batches, which are used for avoiding document errors caused by manual operation while simplifying the production of moving pictures to realize batch generation.
According to one aspect of the present application, there is provided a method of synthesizing pictures in batches, comprising:
displaying a batch composite picture interface in a browser based on the browser canvas;
obtaining a background template and displaying the background template on the batch composite 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 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 data table on the batch synthesized picture interface;
responding to the editing operation of the user on the batch synthesized picture interface, and adjusting the pictures filled in the picture positions and/or the characters filled in the character positions displayed on the batch synthesized picture interface;
and responding to the downloading operation of the user on the batch synthesized picture interface, enabling the background template displayed on the batch synthesized picture interface and the picture filled in the picture bit and/or the character filled in the character bit to form an output picture, and downloading the output picture.
In some embodiments of the present application, the picture bits are associated with a coordinate region of a background template, and when a picture in the data table fills in the picture bits,
automatically adapting the pictures in the data table to the coordinate areas of the picture bits; or alternatively
And filling the picture bit according to the original size of the picture in the data table, hiding the part of the picture in the data table exceeding the picture bit coordinate area when the original size of the picture in the data table is larger than or equal to the picture bit coordinate area, and displaying the part of the picture in the data table, which is not filled in the picture bit coordinate area, as a solid background when the original size of the picture in the data table is smaller than the picture bit coordinate area.
In some embodiments of the present application, the character bits are associated with a coordinate region of a background template, and characters in the data table are filled in the character bits in one of the following ways:
automatically adapting the size, character spacing and line spacing of the characters in the data table to the coordinate area of the character bit;
according to the character display attribute associated with the character bit, adjusting the characters in the data table to fill the coordinate area of the character bit; or alternatively
And according to the character display attribute of the characters in the data table, wrapping lines according to the coordinate area of the character bits so as to fill the characters in the data table into the coordinate area of the character bits.
In some embodiments of the present application, the fields associated with the picture bits and the character bits are in one-to-one correspondence with the header in the data table, so as to fill the picture bits and/or the character bits with pictures and/or characters according to the matching of the fields and the header.
In some embodiments of the present application, the adjusting the picture filled in the picture bit and/or the character filled in the character bit displayed on the batch composite picture interface in response to the editing operation of the batch composite picture interface by the user includes:
and responding to the editing operation of the user on the picture filled in the picture position and/or the character filled in the character position in one background template displayed by the batch synthesis picture interface, so as to adjust the display attribute of the picture filled in the character position and/or the picture filled in the character position corresponding to the background template, and simultaneously, adjusting the display attribute of the picture filled in the picture position and/or the character filled in the character position corresponding to all the background templates, and synchronously displaying the adjustment of the display attribute of the picture filled in the picture position and/or the character filled in the character position corresponding to each background template on the batch synthesis picture interface.
In some embodiments of the present application, the data table includes a picture table and a character table that are independent of each other; or alternatively
The pictures and characters corresponding to each output picture in the data table are located in the same row/column of the data table,
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 application, when the picture is filled in the picture bit, a main body portion matching the field is identified from the picture according to the field of the picture bit, and at least the main body portion is displayed at a center position of the picture bit.
According to still another aspect of the present application, there is also provided an apparatus for synthesizing pictures in batch, including:
the first display module is used for displaying a batch synthesized picture interface in the browser based on the browser canvas;
the first acquisition module is used for 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;
the second acquisition module is used for acquiring the 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 be displayed on the batch synthesized picture interface;
the adjustment module is used for responding to the editing operation of the user on the batch synthesized picture interface and adjusting the pictures which are displayed on the batch synthesized picture interface and are filled in the picture positions and/or the characters which are filled in the character positions;
and the synthesis downloading module is used for responding to the downloading operation of the user on the batch synthesis picture interface, enabling 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 to form an output picture, and downloading the output picture.
According to still another aspect of the present application, 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 compositing pictures as described above.
According to yet another aspect of the present application, 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 compositing pictures as described above.
Compared with the prior art, the application has the advantages that:
on one hand, the background template can be decoupled from the picture position and the character position, so that multiple reworking of drawing generation is avoided; on the other hand, the method is realized in a browser, has lower requirements on the system environment and is convenient to operate; on the other hand, through batch filling of character positions and picture positions, repeated boring operation is avoided, and design productivity is used in more needed places; on the other hand, operation or input errors caused by manual operation are reduced through batch filling; further, the operation steps of the process of synthesizing the picture can be shortened.
Drawings
The above and other features and advantages of the present application 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 compositing pictures according to an embodiment of the application.
Fig. 2 shows a flow chart of editing a picture according to a specific embodiment of the application.
FIG. 3 illustrates a schematic diagram of a batch composition picture interface, according to an embodiment of the application.
Fig. 4 shows a block diagram of an apparatus for batch compositing pictures according to an embodiment of the application.
Fig. 5 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the present disclosure.
Fig. 6 schematically illustrates a schematic diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many 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 the 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 a repetitive description thereof 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 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 application provides a method, a device, electronic equipment and a storage medium for synthesizing pictures in batches by simplifying the manufacture of moving pictures to realize batch generation and avoiding document errors caused by manual operation.
Referring first to fig. 1, fig. 1 shows a schematic diagram of a method for synthesizing pictures in bulk according to an embodiment of the present application. The method for synthesizing the pictures in batches comprises the following steps:
step S110: based on the browser canvas, a batch composition picture interface is displayed in the browser.
Specifically, in some embodiments, the present application may run in a browser based on html and javascript languages. For example, visual interactive development may be performed using features of a browser canvas, and the present application may provide a custom tool to address specified needs. Therefore, the application can realize the convenient operation on canvas based on the open source framework easejs, solve the aim of developing tools in a short period, and can flexibly and rapidly respond to the adjustment of the tools by the service. The application can manually adjust the size and position of the picture, can independently set the color of each field (when applied to an online travel agency, the fields can comprise title, house, night, description, price and the like), can replace the outer frame graph, can finely adjust the size of title characters and the position of x-axis and/or y-axis, and can finely adjust the size of descriptive characters. Clicking the download button can save pictures in various formats (such as png format) into the local browser download directory.
Step S120: and obtaining a background template and displaying the background template on the batch composite 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 location and coordinate range at 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: a data table is obtained.
In particular, when the background template includes only one picture bit, the data table may be a character table only. 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. At the same time, the picture tables and the character tables are in one-to-one correspondence (for example, one row of picture tables is in one-to-one correspondence with one row of character tables; for example, one column of picture tables is in one-to-one correspondence with one column of character tables). Specifically, the fields associated with the picture bits and the character bits are in one-to-one correspondence with the headers in the data table, so that the picture bits and/or the character bits are filled in according to the matching of the fields and the headers. Further, 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 comprises a picture table and a character table at the same time.
In some embodiments of the present application, the pictures in the data table may be pictures embedded in the data table to reduce picture reading operations. In some variations, the pictures in the data table may also be paths for obtaining the pictures, so as to reduce the data size of the data table, and facilitate flexible modification of the pictures of the corresponding paths. In particular, the data table may be an excel table to facilitate 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 data table on the batch synthesized picture interface.
Step S150: and responding to the editing operation of the user on the batch synthesized picture interface, and adjusting the pictures filled in the picture bits and/or the characters filled in the character bits displayed on the batch synthesized picture interface.
Step S160: and responding to the downloading operation of the user on the batch synthesized picture interface, enabling the background template displayed on the batch synthesized picture interface and the picture filled in the picture bit and/or the character filled in the character bit to form an output picture, and downloading 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 application. The batch composition picture interface 200 displays a plurality of background templates 210, wherein the background templates 210 comprise at least one picture bit 211 and at least one character bit 212, and the picture bit 211 and the character bit 212 are filled in by loading a data table so as to obtain a plurality of different pictures for single-piece downloading or batch downloading. The batch composition picture interface 200 also provides a plurality of function keys for performing functional operations such as editing.
In the method for synthesizing the pictures in batches, on one hand, the background template, the picture position and the character position can be decoupled, so that multiple reworking of drawing generation is avoided; on the other hand, the method is realized in a browser, has lower requirements on the system environment and is convenient to operate; on the other hand, through batch filling of character positions and picture positions, repeated boring operation is avoided, and design productivity is used in more needed places; on the other hand, operation or input errors caused by manual operation are reduced through batch filling; further, the operation steps of the process of synthesizing the picture can be shortened.
In some embodiments of the present application, the picture bit is associated with a coordinate area of a background template, and when the picture in the data table is filled in the picture bit, the picture in the data table may be automatically adapted to the coordinate area of the picture bit. In other words, the length and width of the pictures in the data table can be automatically made to coincide with the coordinate areas of the picture bits, whereby batch processing of the pictures can be automatically realized. In some variations, when the picture in the data table is filled in the picture bit, the picture bit may be filled in according to the original size of the picture in the data table, when the original size of the picture in the data table is greater than or equal to the coordinate area of the picture bit, a portion of the picture in the data table exceeding the coordinate area of the picture bit is hidden, and when the original size of the picture in the data table is smaller than the coordinate area of the picture bit, a portion of the picture in the data table not filled in the coordinate area of the picture bit is displayed as a solid background. Thereby, picture distortion caused by transverse or longitudinal stretching of the picture 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 application, when the picture is filled in the picture bit, a main body portion matching the field is identified from the picture according to the field of the picture bit, and at least the main body portion is displayed at a center position of the picture bit. For example, when the field is a guest room, a picture part which is matched with the field and shows the guest room is identified from the pictures (the step can be realized through a trained model), and the picture part which can show the guest room most is arranged at the center of the picture position.
In some embodiments of the present application, the character bits are associated with a coordinate area of a background template, and when the characters in the data table are filled into the character bits, the size, the character spacing and the line spacing of the characters in the data table can be automatically adapted to the coordinate area of the character bits. For example, the size, character spacing, and line spacing of the most suitable characters may be calculated from the size of the coordinate region, the number of characters. The corresponding algorithm may be preset, for example, the character interval may be set to be normal, the character interval may be set to be 1 row of characters preferentially, the character size is calculated according to the 1 row of characters, and when the calculated character size is greater than a predetermined threshold value, the character size is adopted; when the calculated character size is smaller than or equal to the preset threshold value, setting as 2 lines of characters, calculating the character size again, and judging the relation between the character size and the preset threshold value again, thereby avoiding the condition of too small characters.
In some variations, the character bits are associated with a coordinate region of a background template, and when the characters in the data table are filled into the character bits, the characters in the data table may be adjusted according to the character display attribute (e.g., may include font, font size, spacing, line spacing, color, etc.) associated with the character bits to fill in the coordinate region of the character bits.
In still other variations, the character bits are associated with a coordinate region of a background template, and when the characters in the data table are filled into the character bits, the line can be fed according to the character display attribute of the characters in the data table and the coordinate region of the character bits, so as to fill the characters in the data table into the coordinate region of the character bits.
In each of the above embodiments, editing and modifying the display attribute of the character may be performed through a subsequent function key or touch operation.
Referring now to fig. 2, fig. 2 illustrates a flow chart for editing a picture according to a specific embodiment of the present application. FIG. 2 shows a specific implementation of adjusting the pictures filled in the picture bits and/or characters filled in the character bits displayed on the batch composite picture interface in response to a user editing operation on the batch composite picture interface, comprising the steps of:
step S151: responding to the editing operation of the user on the picture filled in the picture position and/or the character filled in the character position in one background template displayed by the batch synthesis picture interface, so as to adjust the display attribute of the picture filled in the character position and/or the picture filled in the character position 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 the background templates on the batch synthesized 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 application can also realize the function of independent editing.
In some variations of the present application, after the data table is imported to fill in the pictures and characters, the method may further include a step of identifying whether to edit the background template (in this embodiment, if before the alert information is provided, in a batch editing state, after the user jumps to the corresponding background template through the alert information, the user exits the batch editing state, thereby implementing an independent editing function, and avoiding the occurrence of errors/alerts after the batch editing of other completed background templates).
Furthermore, the application considers that the required result picture is too large, and can also support paging display and operation.
The foregoing is merely illustrative of various implementations of the application, and the application is not limited thereto.
The application also provides a device for synthesizing pictures in batches, and fig. 4 shows a schematic diagram of the device for synthesizing pictures in batches according to an embodiment of the application. The apparatus 300 for batch composition of pictures includes a first display module 310, a first acquisition module 320, a second acquisition module 330, a fill-in module 340, an adjustment module 350, and a composition download 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 data in the data table into the background template according to the correspondence between the data table and the picture bit and/or the character bit, so as to display the data in the data table on the batch composite picture interface;
the adjustment module 350 is configured to adjust the picture filled in the picture bit and/or the character filled in the character bit displayed on the batch synthesized picture interface in response to the editing operation of the user on the batch synthesized picture interface;
the composition download module 360 is configured to, in response to a download operation of the user on the batch composition picture interface, enable the background template displayed on the batch composition picture interface and the picture filled in the picture bit and/or the character filled in the character bit to form an output picture, so as to download the output picture.
In the device for synthesizing pictures in batches, on one hand, the background template, the picture position and the character position can be decoupled, so that multiple reworking of drawing generation is avoided; on the other hand, the method is realized in a browser, has lower requirements on the system environment and is convenient to operate; on the other hand, through batch filling of character positions and picture positions, repeated boring operation is avoided, and design productivity is used in more needed places; on the other hand, operation or input errors caused by manual operation are reduced through batch filling; further, the operation steps of the process of synthesizing the picture can be shortened.
Fig. 4 is a schematic illustration of the apparatus for synthesizing pictures in batches provided by the present application, and the splitting, merging and adding of the modules are all within the scope of the present application without departing from the concept of the present application. The device for synthesizing pictures in batches provided by the application can be realized by software, hardware, firmware, plug-in units and any combination of the software, the hardware, the firmware, the plug-in units, and the plug-in units, but the application is not limited to the device.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, on which a computer program is stored, which program, when being executed by, for example, a processor, can implement the steps of the method for batch compositing pictures described in any of the above embodiments. In some possible embodiments, the aspects of the application may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the application as described in the above description of the method of batch compositing pictures, when said program product is run on a terminal device.
Referring to fig. 5, a program product 400 for implementing the above-described method according to an embodiment of the present application 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 application is not limited thereto, and in this 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. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk 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 data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium 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 of the present application 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, partially on the tenant device, as a stand-alone software package, partially on the tenant computing device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of remote computing devices, the remote computing device 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., connected through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, an electronic device is also provided, 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 of batch compositing pictures described in any of the embodiments above via execution of the executable instructions.
Those skilled in the art will appreciate that the various aspects of the application may be implemented as a system, method, or program product. Accordingly, aspects of the application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the application is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 6, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present application described in the above-described method section of batch compositing pictures of the specification. For example, the processing unit 610 may perform the steps as shown in fig. 1-2.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage 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 or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing 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 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.), one or more devices that enable a tenant to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, 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 (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-mentioned method for synthesizing pictures in batches according to the embodiments of the present disclosure.
Compared with the prior art, the application has the advantages that:
on one hand, the background template can be decoupled from the picture position and the character position, so that multiple reworking of drawing generation is avoided; on the other hand, the method is realized in a browser, has lower requirements on the system environment and is convenient to operate; on the other hand, through batch filling of character positions and picture positions, repeated boring operation is avoided, and design productivity is used in more needed places; on the other hand, operation or input errors caused by manual operation are reduced through batch filling; further, the operation steps of the process of synthesizing the picture can 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 adaptations, 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 (8)

1. A method for synthesizing pictures in batches, comprising:
displaying a batch composite picture interface in a browser based on the browser canvas;
obtaining a background template and displaying the background template on the batch composite 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 the background template according to the corresponding relation between the data table and the picture bit and/or the character bit so as to be displayed on the batch synthesized picture interface, wherein the data table comprises a picture table and a character table which are mutually independent; or the pictures and the characters corresponding to each output picture in the data table are positioned in the same row/column of the data table, wherein the pictures in the data table are the pictures embedded in the data table or the paths for acquiring the pictures;
responding to the editing operation of the user on the batch synthesized picture interface, adjusting the pictures filled in the picture bits and/or the characters filled in the character bits displayed on the batch synthesized picture interface, and comprising the following steps: responding to the editing operation of the user on the picture filled in the picture position and/or the character filled in the character position in one background template displayed by the batch synthesis picture interface, so as to adjust the display attribute of the picture filled in the character position and/or the picture filled in the character position corresponding to the background template; simultaneously, adjusting display attributes of pictures filled in the picture positions and/or characters filled in the character positions corresponding to all the background templates, and enabling 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 to be synchronously displayed on the batch synthesized picture interface;
and responding to the downloading operation of the user on the batch synthesized picture interface, enabling the background template displayed on the batch synthesized picture interface and the picture filled in the picture bit and/or the character filled in the character bit to form an output picture, and downloading the output picture.
2. The method of claim 1, wherein the picture bits are associated with a coordinate region of a background template, wherein when the picture bits are filled in the picture bits in the data table,
automatically adapting the pictures in the data table to the coordinate areas of the picture bits; or alternatively
And filling the picture bit according to the original size of the picture in the data table, hiding the part of the picture in the data table exceeding the picture bit coordinate area when the original size of the picture in the data table is larger than or equal to the picture bit coordinate area, and displaying the part of the picture in the data table, which is not filled in the picture bit coordinate area, as a solid background when the original size of the picture in the data table is smaller than the picture bit coordinate area.
3. The method of batch composition of pictures of claim 1, wherein the character bits are associated with a coordinate region of a background template, the character bits being populated with characters in the data table in one of the following ways:
automatically adapting the size, character spacing and line spacing of the characters in the data table to the coordinate area of the character bit;
according to the character display attribute associated with the character bit, adjusting the characters in the data table to fill the coordinate area of the character bit; or alternatively
And according to the character display attribute of the characters in the data table, wrapping lines according to the coordinate area of the character bits so as to fill the characters in the data table into the coordinate area of the character bits.
4. The method of claim 1, wherein fields associated with the picture bits and the character bits are in one-to-one correspondence with headers in the data table to fill pictures and/or characters into the picture bits and/or the character bits based on a match of a field to a header.
5. A method of batch compositing pictures as claimed in any of claims 1 to 4, wherein when the picture is filled in the picture bit, a body portion matching the field is identified from the picture based on the field of the picture bit, at least the body portion being displayed in a central position of the picture bit.
6. An apparatus for synthesizing pictures in batches, comprising:
the first display module is used for displaying a batch synthesized picture interface in the browser based on the browser canvas;
the first acquisition module is used for 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;
the second acquisition module is used for acquiring the data table;
the filling module is used for filling 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 be displayed on the batch synthesized picture interface, and the data table comprises a picture table and a character table which are mutually independent; or the pictures and the characters corresponding to each output picture in the data table are positioned in the same row/column of the data table, wherein the pictures in the data table are the pictures embedded in the data table or the paths for acquiring the pictures;
the adjustment module is used for responding to the editing operation of the user on the batch synthesized picture interface, adjusting the pictures which are displayed on the batch synthesized picture interface and are filled in the picture bits and/or the characters which are filled in the character bits, and comprises the following steps: responding to the editing operation of the user on the picture filled in the picture position and/or the character filled in the character position in one background template displayed by the batch synthesis picture interface, so as to adjust the display attribute of the picture filled in the character position and/or the picture filled in the character position corresponding to the background template; simultaneously, adjusting display attributes of pictures filled in the picture positions and/or characters filled in the character positions corresponding to all the background templates, and enabling 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 to be synchronously displayed on the batch synthesized picture interface;
and the synthesis downloading module is used for responding to the downloading operation of the user on the batch synthesis picture interface, enabling 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 to form an output picture, and downloading the output picture.
7. An electronic device, the electronic device comprising:
a processor;
a storage medium having stored thereon a computer program which, when executed by the processor, performs the method of batch compositing pictures according to any of claims 1-5.
8. A storage medium having stored thereon a computer program which, when executed by a processor, performs a method of batch compositing pictures according to any of claims 1-5.
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 CN112330774A (en) 2021-02-05
CN112330774B true 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AUPR264301A0 (en) * 2001-01-19 2001-02-15 Keyset Phototype Pty Ltd System and method for editing computer files independently of the creator software application
US20200320165A1 (en) * 2019-04-05 2020-10-08 Adobe Inc. Techniques for generating templates from reference single page graphic images

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN112330774A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
US8229576B2 (en) Field device management apparatus and field device management system
US20100107086A1 (en) Method and system for generating report condition input interface
CN113031946B (en) Method and device for rendering page component
CN107451272B (en) Information display method, medium, device and computing equipment
CN113032083A (en) Data display method, device, electronic equipment and medium
US20080098319A1 (en) Method and apparatus for interacvtive multimedia author tool and dynamic toolbar
CN112558967A (en) Page automatic generation method and device, electronic equipment and storage medium
CN112330775A (en) Method and device for synthesizing posters in batches, electronic equipment and storage medium
CN110609981A (en) Text processing method and device, electronic equipment and computer readable storage medium
CN112330774B (en) Method and device for synthesizing pictures in batches, electronic equipment and storage medium
CN113849175A (en) Code generation method, device, equipment and storage medium
CN112068835A (en) Method and device for generating page on line
CN114692055A (en) Form processing method and device, storage medium and electronic equipment
CN112269960B (en) Webpage updating method, system, equipment and storage medium based on associated report
CN111801631B (en) SCADA Web HMI system
CN107220045B (en) Station building method, device, equipment and storage medium based on artificial intelligence
CN112800373A (en) Webpage resource data generation method and device, computer equipment and storage medium
CN112269961A (en) Webpage generation method, system, equipment and storage medium based on associated report
JP7279986B1 (en) Information processing method, information processing system and information processing program
CN112540803B (en) Form design adaptation method, device, equipment and storage medium
CN113535304B (en) Method and device for inserting, displaying and editing third-party model in design software
JP2896536B2 (en) Electronic message system
CN115048138A (en) Page adjusting method and device
CN108563481B (en) Method, equipment and device for modifying preview of skin in real time

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