CN109801347B - Method, device, equipment and medium for generating editable image template - Google Patents

Method, device, equipment and medium for generating editable image template Download PDF

Info

Publication number
CN109801347B
CN109801347B CN201910073487.9A CN201910073487A CN109801347B CN 109801347 B CN109801347 B CN 109801347B CN 201910073487 A CN201910073487 A CN 201910073487A CN 109801347 B CN109801347 B CN 109801347B
Authority
CN
China
Prior art keywords
editable
layer
image
image template
picture
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
CN201910073487.9A
Other languages
Chinese (zh)
Other versions
CN109801347A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910073487.9A priority Critical patent/CN109801347B/en
Publication of CN109801347A publication Critical patent/CN109801347A/en
Application granted granted Critical
Publication of CN109801347B publication Critical patent/CN109801347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the disclosure discloses a method, a device, equipment and a medium for generating an editable image template. The method comprises the steps of obtaining an image design draft; carrying out layer identification on the image design draft to obtain layer parameters, wherein the layer parameters comprise: elements included in the layers, characteristic parameters of the elements, and relationships between the layers; marking editable attributes of the layer parameters to form marking information; and generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image. By adopting the technical scheme, the generation of the editable image template can be automatically realized, the generation efficiency of the editable image template is improved, and the manpower and material resources consumed for generating the editable image template are reduced.

Description

Method, device, equipment and medium for generating editable image template
Technical Field
The present disclosure relates to data processing technologies, and in particular, to a method, an apparatus, a device, and a medium for generating an editable image template.
Background
With the development of the internet and intelligent terminals, various application programs are increased, and channels for people to obtain information are also increased continuously. In order to push own products, advertisers need to push information to users through advertisements in the process of browsing the information by the users.
The existing advertisement information is often pushed in an image mode, and the advertisement image comprises a plurality of component elements, such as element contents of pictures, foreground characters, background landscape, advertisement characters, contact ways and the like. The advertisement images which are well designed are often used by the advertisers for a long time, but can be edited and adjusted to a certain extent along with factors such as product upgrading, advertisement language change and the like. Thus, the prior art would set the advertisement image as an editable image template, allowing the advertiser to make editing adjustments to the elements in the template based on the editable image template.
In the prior art, the design draft of the advertisement image is completely identified manually, and then template codes are compiled for an advertiser to replace or edit and adjust elements in the template so as to form a new advertisement image. The technical scheme has higher consumed labor cost, and has low working efficiency when the advertisement images are changed day by day and are continuously increased.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a medium for generating an editable image template, so as to automatically realize the generation of the editable image template and improve the generation efficiency.
In a first aspect, an embodiment of the present disclosure provides a method for generating an editable image template, including:
acquiring an image design draft;
carrying out layer identification on the image design draft to obtain layer parameters, wherein the layer parameters comprise: elements included in the layers, characteristic parameters of the elements, and relationships between the layers;
marking editable attributes of the layer parameters to form marking information;
and generating an editable image template corresponding to the image design draft according to the layer parameters and the labeling information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image.
In a second aspect, an embodiment of the present disclosure provides an apparatus for generating an editable image template, including:
the design draft acquisition module is used for acquiring an image design draft;
and the layer identification module is used for identifying the layer of the image design draft so as to acquire layer parameters, wherein the layer parameters comprise: elements included in the layers, characteristic parameters of the elements, and relationships between the layers;
the attribute labeling module is used for labeling editable attributes of the layer parameters to form labeling information;
and the template generating module is used for generating an editable image template corresponding to the image design draft according to the layer parameters and the labeling information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image.
In a third aspect, an embodiment of the present disclosure provides an apparatus, including:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of generating an editable image template according to an embodiment of the disclosure.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements the method for generating an editable image template according to an embodiment of the disclosure.
In the technical scheme for generating the editable image template, an image design draft is acquired; carrying out layer identification on the obtained image design draft to obtain layer parameters, wherein the layer parameters comprise elements included in a layer, characteristic parameters of the elements and a relation between the layers; marking editable attributes of the layer parameters to form marking information; and generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, so that a user can edit the editable attributes to generate a new image. By adopting the technical scheme, the generation of the editable image template can be automatically realized, the generation efficiency of the editable image template is improved, and the manpower and material resources consumed for generating the editable image template are reduced.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic flowchart of a method for generating an editable image template according to an embodiment of the disclosure;
fig. 2A is a schematic flowchart of another method for generating an editable image template according to an embodiment of the disclosure;
FIG. 2B is a schematic diagram of a user interaction interface for an editable image template according to an embodiment of the disclosure;
fig. 2C is a schematic diagram of an editable image template selection interface provided in the embodiment of the disclosure;
fig. 3 is a block diagram of a device for generating an editable image template according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus provided in an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the figures and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and that no limitation of the disclosure is intended. It is also noted that, for the sake of convenience in description, only some but not all of the matters related to the present disclosure are shown in the drawings.
Fig. 1 is a schematic flowchart of a method for generating an editable image template according to an embodiment of the present disclosure. The present embodiment may be applicable to a case of constructing an editable image template, and the method for generating the editable image template provided in the present embodiment may be executed by a generating apparatus of the editable image template, where the apparatus is implemented by software and/or hardware, and may be generally integrated in a device with an image editing function, such as a computer or a notebook computer. As shown in fig. 1, a method for generating an editable image template provided by the embodiment of the disclosure includes:
and S110, acquiring an image design draft.
In this embodiment, the image design draft may be acquired from a local device or another device that establishes a communication connection with the home terminal. Illustratively, the image design selected by the user can be obtained locally based on the selection operation of the user; or generating an acquisition instruction based on the triggering operation of the user, sending the acquisition instruction to other equipment for storing the image design draft corresponding to the acquisition instruction or sending the acquisition instruction to the other equipment through the server, and receiving the image design draft returned by the other equipment based on the acquisition instruction; or during the process of designing the image design draft by the designer, whether the image design draft is designed completely is judged according to the set period detection or based on the trigger operation of the designer, and the image design draft is automatically acquired after the design of the image design draft is finished. The image design draft may be any type of design draft generated by a designer using any graphic design software, such as an advertisement-style design draft, a PPT design draft, an interior decoration design draft, and the like, and the image design draft may include one or more layers, which is not limited herein. The embodiment of the present disclosure takes an image design as a design draft of an advertisement style and includes a plurality of layers as an example for explanation.
S120, carrying out layer identification on the image design draft to obtain layer parameters, wherein the layer parameters comprise: the method comprises the steps of including elements in layers, characteristic parameters of the elements and relations between the layers.
Specifically, each layer and the relationship between layers in the image design draft may be determined according to the image information of the image design draft, and for each layer, the elements included in the layer are obtained, and the characteristic parameters of each element are determined.
The image information of the image design draft may be understood as related information describing a structure of the image design draft, such as related information describing a structure of each layer of the image design draft and a relationship between each layer, and generally, the computer device may render the image design draft according to the related information describing the structure of the image design draft; the image layers in the image design draft can comprise a common layer, a background layer, a character layer, an adjusting layer, an effect layer and/or a graphic layer and the like; the relationship between the layers can be the upper and lower covering relationship of the layers, namely the upper and lower layer relationship of each layer when in display; the elements included in the layer can be pictures, characters, figures or effects included in the layer; the characteristic parameter of the element may be a type, a size, and/or a position in the layer of the element.
In an optional implementation manner of the embodiment of the present disclosure, the image design draft is a PSD file, and the image layer includes a picture layer and a text layer; the elements of the picture layer are pictures, and the characteristic parameters of the pictures comprise at least one of picture content, coordinate values, length and width; the elements of the character layer are characters, and the characteristic parameters of the characters comprise at least one of character content, character style, color and character size; the relation between the layers comprises the upper and lower covering relation of the layers. The PSD file is in a special picture file format of Photoshop of graphic design software, namely, the image design draft is a draft designed by a designer by adopting Photoshop software.
Generally, with the update of the displayed content, such as the update of the product version, etc., an image design manuscript user (such as a product dealer or an advertiser) needs to replace the content of the image design manuscript, such as the picture of the product in the image design manuscript and/or the text description of the product, etc., so that the image design manuscript can display the latest version of the product, therefore, after the image design manuscript is acquired, the picture layer and/or the text layer in the image design manuscript and the up-down overlay relationship between the picture layer and the text layer can be determined according to the image information of the image design manuscript, and further the content, the coordinate value, the length and the width of the picture contained in the picture layer and the text content, the font, the color and the word number of the text contained in the text layer can be determined according to the picture layer information of the text contained in the image information, so as to subsequently generate an editable image template according to the content, the coordinate value, the length and the width of the picture and the content, the font, the color and the word number of the text. The image design may include at least one picture layer and/or at least one text layer.
And S130, marking the editable attributes of the layer parameters to form marking information.
In this step, the annotation information may be understood as related information describing editable attributes of layer parameters of each layer of the image design draft; the editable attribute can be an attribute of whether each layer parameter can be edited or under what condition, the editable/non-editable attribute can be edited. In view of convenience in editing the layer parameters, in this step, preferably, names of editable attributes (e.g., editable contents) may also be labeled, and in this case, the labeling information preferably includes names of editable attributes and editing rights.
For example, the name of the editable attribute may be text and picture content, picture coordinate values, picture length, picture width, text content, text font, text color or text font size, etc.; the edit right may be understood as information representing whether or not the specific parameter is editable, and may include only editable and non-editable, or may include a plurality of editable levels, so that users having different rights can edit the attribute of the image design corresponding to the corresponding editable level.
Taking a picture layer as an example, the editing right of the picture content of the picture layer can be marked as low, the editing right of the picture length and the picture width can be marked as medium, the editing right of the picture coordinate value can be marked as high, correspondingly, after the editable image template is generated, a user with the low editing right can only edit the picture content in the picture layer of the editable image template, namely, only other pictures can be adopted to replace the pictures in the editable picture layer; the user with the editing authority can edit the picture content, the picture length and the picture width in the editable image template picture layer, and has the authority of editing the picture content, the picture length and the picture width; the user with high editing authority can edit the picture content, the picture length, the picture width and the coordinate value of the picture in the editable image template picture layer, and has the authority of editing the picture content, the picture length, the picture width and the coordinate value of the picture.
Specifically, the editable attributes of the layer parameters can be labeled automatically or based on the operation of the user or designer of the image design draft. For example, all layer parameters in the image design draft may be determined as editable layer parameters, or according to a set rule, one or several types of layer parameters (such as content of characters, font, color, font size, and/or content, coordinate values, length, width, and the like of pictures) in the layer parameters are marked as editable layer parameters or user-editable layer parameters with corresponding rights, and other layer parameters (such as special effects, graphics, and the like in the image design draft) are marked as non-editable layer parameters; the editable attributes of the layer parameters can also be labeled manually by an image design draft designer to generate different labeling information for different image design drafts, so that the situation that a user of the image design draft is incorrectly labeled due to the influence caused by unfamiliarity in labeling a certain image parameter as editable/non-editable is avoided.
And S140, generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image.
In this step, the editable image template includes the layer parameters and the label information of the image design draft, so that the user can edit the editable layer parameters in the editable image template as required to generate a new image. The format of the editable image template can be flexibly set according to needs, and illustratively, the editable image template is a json format file.
The method for generating the editable image template, provided by the embodiment of the disclosure, acquires an image design draft; carrying out layer identification on the obtained image design draft to obtain layer parameters, wherein the layer parameters comprise elements included in a layer, characteristic parameters of the elements and the relationship between the layers; marking editable attributes of the layer parameters to form marking information; and generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, so that a user can edit the editable attributes to generate a new image. By adopting the technical scheme, the generation of the editable image template can be automatically realized, the generation efficiency of the editable image template is improved, and the manpower and material resources consumed for generating the editable image template are reduced.
Fig. 2A is a schematic flowchart of a method for generating an editable image template according to an embodiment of the present disclosure, where the embodiment is optimized based on the foregoing embodiment, and further includes, after performing layer identification on the image design draft to obtain layer parameters, further: and establishing a layer expression tree according to the layer parameters, wherein each leaf node corresponds to one layer, and the layer expression tree is used for storing the layer parameters.
Further, after generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, the method further includes: associating the editable image template with a user interaction interface, wherein a user input space of the user interaction interface corresponds to the annotation information in the editable image template.
Correspondingly, as shown in fig. 2A, the method for generating an editable image template provided by this embodiment includes:
and S210, acquiring an image design draft.
S220, carrying out layer identification on the image design draft to obtain layer parameters, wherein the layer parameters comprise: the method comprises the steps of including elements in layers, characteristic parameters of the elements and relations between the layers.
S230, establishing a layer expression tree according to the layer parameters, wherein each leaf node corresponds to one layer, and the layer expression tree is used for storing the layer parameters.
In this embodiment, the layer parameters may be stored in a layer expression tree manner. At this time, after the layer parameters of the image design draft are acquired, a layer expression tree may be constructed according to the number of layers in the image design draft, each leaf node of the layer expression tree corresponds to one image, and the layer parameters of each layer are stored in the corresponding leaf node position.
And S240, marking the editable attributes of the layer parameters to form marking information.
And S250, generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image.
And S260, associating the editable image template with a user interaction interface, wherein the user input space of the user interaction interface corresponds to the annotation information in the editable image template.
Specifically, the editable image template may be associated with a trigger operation of a user in the user interaction interface, for example, the annotation information in the editable image template may be associated with a user input space of the user interaction interface (as shown in fig. 2B), so that after the user selects the corresponding editable image template in the editable image template selection interface (as shown in fig. 2C), the user may enter the user interaction interface shown in fig. 2B, so as to perform the corresponding trigger operation (e.g., an input operation) in the user interaction interface to edit the editable attribute (e.g., the background map, the Logo map, etc.) in the editable image template. The user interaction interface associated with the editable image template can display the editable attribute in the editable image template and can also further comprise other non-editable attributes in the editable image template; the embodiment may describe the editable attribute in the editable image template in the user interaction interface in the form of characters, or display the editable image template in the user interaction interface in the form of images and identify the editable attribute in the editable image template according to a set mode.
In order to improve the intuitiveness of the editable image template, the embodiment preferably may display the editable image template and the editable attributes in the editable image template in the form of an image in the user interaction interface. In this case, for example, the non-editable content in the editable image template may be displayed in the original display manner (including color, position, size, and the like) in the image design, the editable content (such as editable characters and/or pictures and the like) in the editable image template may be displayed in a set display manner different from that in the image design, such as displaying the editable characters or pictures with a set transparency or gray scale, displaying the editable characters with a set font, tilt, and the like, or identifying the editable characters or pictures and the like with a set graphic (such as a wavy line or a dashed line frame). Correspondingly, after the editable image template is displayed, the editable attribute window of the character or the picture can be popped up after the user clicks the display position of the editable character or the editable picture, and the editable attribute window can contain the name of the editable attribute and the editing window of the editable attribute; the picture input window or the text editing window may also be displayed based on a clicking operation of the user at the editable picture or editable text display position, and the size (including the length and width) and the display position (i.e., the coordinate values of the picture) of the picture may be changed based on an enlarging, reducing, or dragging operation of the user at the picture display position.
The generation method of the editable image template provided by the embodiment of the disclosure acquires an image design draft; carrying out layer identification on the image design draft to obtain layer parameters; establishing a layer expression tree according to the layer parameters; marking editable attributes of the layer parameters to form marking information; and generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, and associating the editable image template with the user interaction interface. By adopting the technical scheme, the embodiment of the disclosure can improve the intuitiveness of the editable image template, reduce the operation difficulty of a user when generating a new image based on the editable image template, reduce the time consumed by generating the new image, and improve the operation experience of the user.
Fig. 3 is a schematic structural diagram of an apparatus for generating an editable image template according to an embodiment of the present disclosure. The apparatus may be implemented by software and/or hardware, and may be generally integrated into a device having an image editing function, and typically may be integrated into a device such as a terminal or a server, and may generate an editable image template by executing a method for generating the editable image template. As shown in fig. 3, an apparatus for generating an editable image template according to an embodiment of the present disclosure includes: a design acquisition module 301, a layer identification module 302, an attribute labeling module 303 and a template generation module 304, wherein,
a design acquisition module 301, configured to acquire an image design;
a layer identification module 302, configured to perform layer identification on the image design draft to obtain layer parameters, where the layer parameters include: elements included in the layers, characteristic parameters of the elements, and relationships between the layers;
an attribute labeling module 303, configured to label editable attributes of the layer parameters to form labeling information;
a template generating module 304, configured to generate an editable image template corresponding to the image design draft according to the layer parameter and the annotation information, where the editable image template is used for a user to edit an editable attribute, so as to generate a new image.
The generation device of the editable image template provided by the embodiment of the disclosure acquires an image design draft through a design draft acquisition module; carrying out layer identification on the obtained image design draft through a layer identification module to obtain layer parameters, wherein the layer parameters comprise elements included in a layer, characteristic parameters of the elements and a relation between the layers; marking editable attributes of the layer parameters through an attribute marking module to form marking information; and generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information through a template generating module, so that a user can edit the editable attributes to generate an image. By adopting the technical scheme, the generation of the editable image template can be automatically realized, the generation efficiency of the editable image template is improved, and the manpower and material resources consumed for generating the editable image template are reduced.
In the above scheme, the image design draft may be a PSD file, and the image layer may include a picture layer and a text layer; the elements of the picture layer are pictures, and the characteristic parameters of the pictures comprise at least one of picture content, coordinate values, length and width; the elements of the text layer are texts, and the characteristic parameters of the texts comprise at least one of text content, font, color and font size; the relationship between the layers may include an upper and lower covering relationship of the layers.
Further, the apparatus for generating an editable image template may further include: and the expression tree establishing module is used for establishing a layer expression tree according to the layer parameters after the layer identification is carried out on the image design draft so as to obtain the layer parameters, wherein each leaf node corresponds to one layer, and the layer expression tree is used for storing the layer parameters.
In the above solution, the tagging information may include: the name of the property and the editing right can be edited.
In the above scheme, the editable image template may be a json format file.
Further, the apparatus for generating an editable image template may further include: and the interface association module is used for associating the editable image template with a user interaction interface after generating the editable image template corresponding to the image design draft according to the layer parameters and the annotation information, wherein the user input space of the user interaction interface corresponds to the annotation information in the editable image template.
The generating device of the editable image template provided by the embodiment of the disclosure can execute the generating method of the editable image template provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects for executing the generating method of the editable image template. For details of the technology that are not described in detail in this embodiment, reference may be made to a method for generating an editable image template provided in any embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an apparatus provided in an embodiment of the present disclosure. Fig. 4 illustrates a block diagram of an exemplary device 412 suitable for use in implementing embodiments of the present disclosure. The device 412 shown in fig. 4 is only one example and should not place any limitation on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 4, device 412 is in the form of a general purpose computing device. The components of device 412 may include, but are not limited to: one or more processors or processing units 416, a system memory 425, and a bus 418 that couples the various system components (including the system memory 425 and the processing unit 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 430 and/or cache memory 432. The device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methods of the embodiments described in this disclosure.
The device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the device 412 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) through the network adapter 420. As shown, network adapter 420 communicates with the other modules of device 412 over bus 418. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with the device 412, 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.
The processing unit 416 executes various functional applications and data processing by executing programs stored in the system memory 428, for example, implementing the generation method of the editable image template provided by the embodiments of the disclosure. Namely, acquiring an image design draft; carrying out layer identification on the image design draft to obtain layer parameters, wherein the layer parameters comprise: elements included in the layers, characteristic parameters of the elements, and relationships between the layers; marking editable attributes of the layer parameters to form marking information; and generating an editable image template corresponding to the image design draft according to the layer parameters and the labeling information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image.
The embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements a method for generating an editable image template provided in the embodiment of the present disclosure, where the method may specifically include: acquiring an image design draft; and identifying the image layer of the image design draft to obtain layer parameters, wherein the layer parameters comprise: elements included in the layers, characteristic parameters of the elements, and relationships between the layers; marking editable attributes of the layer parameters to form marking information; and generating an editable image template corresponding to the image design draft according to the layer parameters and the labeling information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image.
The computer storage media of embodiments of the present disclosure may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, ruby, go, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the presently preferred embodiments of the present disclosure and that the present principles apply. Those skilled in the art will appreciate that the present disclosure is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the disclosure. Therefore, although the present disclosure has been described in greater detail with reference to the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the spirit of the present disclosure, the scope of which is determined by the scope of the appended claims.

Claims (8)

1. A method for generating an editable image template, comprising:
acquiring an image design draft;
carrying out layer identification on the image design draft to obtain layer parameters, wherein the layer parameters comprise: elements included in the layers, characteristic parameters of the elements, and relationships between the layers;
labeling editable attributes of the layer parameters to form labeled information, wherein the labeled information comprises: the name of the editable attribute and the editing authority, wherein the name of the editable attribute is the text and picture content, the picture coordinate value, the picture length, the picture width, the text content, the text font, the text color or the text font size, and the editing authority comprises editable, non-editable and a plurality of editable grades;
generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image;
associating the editable image template with a user interaction interface, wherein a user input space of the user interaction interface corresponds to the annotation information in the editable image template.
2. The method of claim 1, wherein the image design is a PSD file, and the image layers include a picture layer and a text layer;
the elements of the picture layer are pictures, and the characteristic parameters of the pictures comprise at least one of picture content, coordinate values, length and width;
the elements of the text layer are texts, and the characteristic parameters of the texts comprise at least one of text content, font, color and font size;
the relation between the layers comprises the upper and lower covering relation of the layers.
3. The method according to claim 1, wherein after performing layer recognition on the image design to obtain layer parameters, the method further comprises:
and establishing a layer expression tree according to the layer parameters, wherein each leaf node corresponds to one layer, and the layer expression tree is used for storing the layer parameters.
4. The method of claim 1, wherein: the editable image template is a json format file.
5. An apparatus for generating an editable image template, comprising:
the design draft acquisition module is used for acquiring an image design draft;
the layer identification module is configured to perform layer identification on the image design draft to obtain layer parameters, where the layer parameters include: elements included in the layers, characteristic parameters of the elements, and relationships between the layers;
an attribute labeling module, configured to label editable attributes of the layer parameters to form labeling information, where the labeling information includes: the name of the editable attribute and the editing authority, wherein the name of the editable attribute is the text and picture content, the picture coordinate value, the picture length, the picture width, the text content, the text font, the text color or the text font size, and the editing authority comprises editable, non-editable and a plurality of editable grades;
the template generating module is used for generating an editable image template corresponding to the image design draft according to the layer parameters and the annotation information, wherein the editable image template is used for a user to edit an editable attribute so as to generate a new image;
and the interface association module is used for associating the editable image template with a user interaction interface, wherein the user input space of the user interaction interface corresponds to the annotation information in the editable image template.
6. The apparatus of claim 5, wherein the image design is a PSD file, and the image layers comprise a picture layer and a text layer;
the elements of the picture layer are pictures, and the characteristic parameters of the pictures comprise at least one of picture content, coordinate values, length and width;
the elements of the text layer are texts, and the characteristic parameters of the texts comprise at least one of text content, font, color and font size;
the relation between the layers comprises the upper and lower covering relation of the layers.
7. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for generating an editable image template as recited in any one of claims 1 to 4.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of generating an editable image template as claimed in any one of claims 1 to 4.
CN201910073487.9A 2019-01-25 2019-01-25 Method, device, equipment and medium for generating editable image template Active CN109801347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910073487.9A CN109801347B (en) 2019-01-25 2019-01-25 Method, device, equipment and medium for generating editable image template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910073487.9A CN109801347B (en) 2019-01-25 2019-01-25 Method, device, equipment and medium for generating editable image template

Publications (2)

Publication Number Publication Date
CN109801347A CN109801347A (en) 2019-05-24
CN109801347B true CN109801347B (en) 2022-10-25

Family

ID=66560433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910073487.9A Active CN109801347B (en) 2019-01-25 2019-01-25 Method, device, equipment and medium for generating editable image template

Country Status (1)

Country Link
CN (1) CN109801347B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115485A (en) * 2019-06-04 2020-12-22 珠海金山办公软件有限公司 Method and device for protecting width and height of graph in document, electronic equipment and storage medium
CN112073794B (en) * 2019-06-11 2022-12-23 腾讯科技(深圳)有限公司 Animation processing method, animation processing device, computer readable storage medium and computer equipment
CN110660115A (en) * 2019-08-20 2020-01-07 海南车智易通信息技术有限公司 Method, device and system for generating advertisement picture
CN110717207B (en) * 2019-09-06 2024-01-02 景森设计股份有限公司 Labeling method, system and storage medium for pipeline design
CN110706313A (en) * 2019-09-29 2020-01-17 杭州洋驼网络科技有限公司 Method for dynamically generating picture
CN111027091B (en) * 2019-11-13 2022-04-22 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for managing authority
CN110929496B (en) * 2019-11-15 2023-06-16 北京乐蜜科技有限责任公司 Text template generation method and device
CN112927314B (en) * 2019-12-06 2023-01-31 腾讯数码(天津)有限公司 Image data processing method and device and computer equipment
CN112929732B (en) * 2019-12-06 2022-07-08 腾讯科技(深圳)有限公司 Video processing method and device and computer storage medium
CN111192340A (en) * 2019-12-24 2020-05-22 武汉嘉铭激光股份有限公司 Method for automatically generating laser marking template file based on image recognition
CN111782114B (en) * 2020-06-15 2022-03-01 广州视源电子科技股份有限公司 Element display method, device, equipment and medium in manuscript editing application
CN111475163B (en) * 2020-06-22 2020-10-30 腾讯科技(深圳)有限公司 Method, device and equipment for generating code file of view template and storage medium
CN111986083A (en) * 2020-07-29 2020-11-24 上海阿几网络技术有限公司 Method and device for automatically combining images
CN112073649B (en) * 2020-09-04 2022-12-13 北京字节跳动网络技术有限公司 Multimedia data processing method, multimedia data generating method and related equipment
CN112153422B (en) * 2020-09-25 2023-03-31 连尚(北京)网络科技有限公司 Video fusion method and device
CN112330532A (en) * 2020-11-12 2021-02-05 上海枫河软件科技有限公司 Image analysis processing method and equipment
CN112507661B (en) * 2020-12-15 2023-06-06 北京达佳互联信息技术有限公司 Method and device for realizing text special effect, electronic equipment and storage medium
CN112911388B (en) * 2021-02-02 2024-02-06 厦门美图之家科技有限公司 Efficient editable video special effect output method and device and electronic equipment
CN113542621A (en) * 2021-07-14 2021-10-22 上海艾麒信息科技股份有限公司 Template-based image repairing method and system for mobile platform
CN113919312A (en) * 2021-12-13 2022-01-11 北京交研智慧科技有限公司 Method for generating electronic document template and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004345088A (en) * 2003-05-19 2004-12-09 Ricoh Co Ltd Image formation device
CN1893699A (en) * 2005-06-07 2007-01-10 三星电子株式会社 Method for zooming of picture in wireless terminal and wireless terminal for implementing the method
CN103024480A (en) * 2012-12-28 2013-04-03 杭州泰一指尚科技有限公司 Method for implanting advertisement in video
CN107766517A (en) * 2017-10-20 2018-03-06 维沃移动通信有限公司 A kind of acquisition methods of view data, device and mobile terminal
CN107888557A (en) * 2017-10-09 2018-04-06 中国平安人寿保险股份有限公司 The generation method and its system of a kind of document of agreement

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7596751B2 (en) * 2005-04-22 2009-09-29 Hewlett-Packard Development Company, L.P. Contact sheet based image management
JP2008035328A (en) * 2006-07-31 2008-02-14 Fujifilm Corp Template generating device, image locating device, change template generating device and program thereof
KR101530826B1 (en) * 2014-08-18 2015-06-24 정관호 Playing method and the system of 360 degree spacial video
CN105550980B (en) * 2014-10-29 2018-11-27 阿里巴巴集团控股有限公司 A kind of Picture Generation Method and relevant apparatus
CN106296815B (en) * 2015-06-24 2020-11-10 程昊 Construction and display method of interactive three-dimensional digital city
CN106383641A (en) * 2016-09-05 2017-02-08 苏州奥普特克自动化科技有限公司 Exercise screenshot editing method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004345088A (en) * 2003-05-19 2004-12-09 Ricoh Co Ltd Image formation device
CN1893699A (en) * 2005-06-07 2007-01-10 三星电子株式会社 Method for zooming of picture in wireless terminal and wireless terminal for implementing the method
CN103024480A (en) * 2012-12-28 2013-04-03 杭州泰一指尚科技有限公司 Method for implanting advertisement in video
CN107888557A (en) * 2017-10-09 2018-04-06 中国平安人寿保险股份有限公司 The generation method and its system of a kind of document of agreement
CN107766517A (en) * 2017-10-20 2018-03-06 维沃移动通信有限公司 A kind of acquisition methods of view data, device and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种新的基于易得图像建筑建模方法研究;吴炜煜 等;《计算机工程与应用》;20041130;59-64 *
基于XML技术的图纸管理模式研究;袁立强;《计算机与网络》;20101231(第21期);48-51 *

Also Published As

Publication number Publication date
CN109801347A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
CN109614424B (en) Page layout generation method, device, computing equipment and medium
CN102439588B (en) Serving font glyphs
CN111368562B (en) Method and device for translating characters in picture, electronic equipment and storage medium
US9262180B2 (en) Method and apparatus for recommending product features in a software application in real time
CN110705237B (en) Automatic document generation method, data processing device and storage medium
CN109145272B (en) Text rendering and layout method, device, equipment and storage medium
CN110096275B (en) Page processing method and device
CN111243061B (en) Commodity picture generation method, device and system
JP2015130158A (en) Cloud-based font service system
US20130262987A1 (en) Document processing method, apparatus and editor
US9135234B1 (en) Collaborative generation of digital content with interactive reports
CN111291533A (en) Sentence segment to be displayed display method and device, computer equipment and storage medium
CN114600112A (en) Document markup and navigation using natural language processing
US20170031889A1 (en) Creating a communication editable in a browser independent of platform and operating system
US11941350B2 (en) Systems and methods for conversion of documents to reusable content types
CN115618144B (en) Dynamic layout method, system, equipment and medium based on webpage
CN111724455A (en) Image processing method and electronic device
CN113220381A (en) Click data display method and device
CN114443022A (en) Method for generating page building block and electronic equipment
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113515221A (en) Picture and character comparison display method and device based on electronic document
CN112528184A (en) Sending method and device of rich text mail, computer equipment and storage medium
CN113076165A (en) Page checking method and device
CN105373524A (en) Demonstration text editing method and apparatus

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