CN109801347A - A kind of generation method, device, equipment and the medium of editable image template - Google Patents

A kind of generation method, device, equipment and the medium of editable image template Download PDF

Info

Publication number
CN109801347A
CN109801347A CN201910073487.9A CN201910073487A CN109801347A CN 109801347 A CN109801347 A CN 109801347A CN 201910073487 A CN201910073487 A CN 201910073487A CN 109801347 A CN109801347 A CN 109801347A
Authority
CN
China
Prior art keywords
layer
editable
image
original text
image template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910073487.9A
Other languages
Chinese (zh)
Other versions
CN109801347B (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

Abstract

The embodiment of the present disclosure discloses generation method, device, equipment and the medium of a kind of editable image template.This method includes obtaining image to design original text;Figure layer identification is carried out to described image design original text, to obtain figure layer parameter, wherein the figure layer parameter includes: element included in figure layer, the relationship between the characteristic parameter and figure layer of element;The editable attribute of the figure layer parameter is labeled, markup information is formed;The corresponding editable image template of described image design original text is generated according to the figure layer parameter and the markup information, wherein the editable image template is used to edit for user for editable attribute, to generate new images.The embodiment of the present disclosure can automate the generation for realizing editable image template by using above-mentioned technical proposal, improve the formation efficiency of editable image template, reduce and generate manpower and material resources spent by editable image template.

Description

A kind of generation method, device, equipment and the medium of editable image template
Technical field
The embodiment of the present disclosure is related to data processing technique more particularly to a kind of generation method of editable image template, dress It sets, equipment and medium.
Background technique
With the development of internet and intelligent terminal, various application programs increase, and people obtain the channel of information also not It is disconnected to increase.Advertiser needs to push away during user browses information to user by advertisement to push the product of oneself It send.
Existing advertising information is often pushed in a manner of image, includes a variety of components in advertising image, if any The element contents such as picture, foreground people, background scenery with hills and waters, copy and contact method.It is past by well-designed advertising image It is continued use for a long time by advertiser toward meeting, but certain editor's adjustment can be done with factors such as product up-gradation, advertising slogan variations.Cause This, advertising image can be set to editable image template by the prior art, and advertiser is allowed to be based on editable image template pair Element in template carries out editor's adjustment.
In the prior art, it is identified completely by the design original text manually to advertising image, template code is then worked out, for wide Announcement master is replaced to the element in template or other editor's adjustment, to form new advertising image.The technical solution is consumed Human cost it is higher, advertising image make rapid progress, when being increasing, working efficiency is very low.
Summary of the invention
The embodiment of the present disclosure provides generation method, device, equipment and the medium of a kind of editable image template, with automation It realizes the generation of editable image template, improves formation efficiency.
In a first aspect, the embodiment of the present disclosure provides a kind of generation method of editable image template, comprising:
It obtains image and designs original text;
Figure layer identification is carried out to described image design original text, to obtain figure layer parameter, wherein the figure layer parameter includes: figure Included element, the relationship between the characteristic parameter and figure layer of element in layer;
The editable attribute of the figure layer parameter is labeled, markup information is formed;
The corresponding editable image template of described image design original text is generated according to the figure layer parameter and the markup information, Wherein, the editable image template is used to edit for user for editable attribute, to generate new images.
Second aspect, the embodiment of the present disclosure provide a kind of generating means of editable image template, comprising:
It designs original text and obtains module, for obtaining image design original text;
Figure layer identification module, for carrying out figure layer identification to described image design original text, to obtain figure layer parameter, wherein institute Stating figure layer parameter includes: element included in figure layer, the relationship between the characteristic parameter and figure layer of element;
Attribute labeling module is labeled for the editable attribute to the figure layer parameter, forms markup information;
Template generation module, it is corresponding for generating described image design original text according to the figure layer parameter and the markup information Editable image template, wherein the editable image template is used to edit for user for editable attribute, with life At new images.
The third aspect, the embodiment of the present disclosure provide a kind of equipment, comprising:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the generation method of the editable image template as described in the embodiment of the present disclosure.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes the generation method of the editable image template as described in the embodiment of the present disclosure when program is executed by processor.
In the technical solution of above-mentioned generation editable image template, obtains image and design original text;Acquired image is set It counts original text and carries out figure layer identification, to obtain figure layer parameter, the figure layer parameter includes the feature of element included in figure layer, element Relationship between parameter and figure layer;The editable attribute of each figure layer parameter is labeled, markup information is formed;According to each figure layer Parameter editable image template corresponding with markup information generation image design original text, so that user carries out for editable attribute Editor generates new images.The embodiment of the present disclosure can automate by using above-mentioned technical proposal and realize editable image template Generation, improve editable image template formation efficiency, reduce generate editable image template spent by manpower and material resources.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow diagram of the generation method for editable image template that the embodiment of the present disclosure provides;
Fig. 2A is the flow diagram of the generation method for another editable image template that the embodiment of the present disclosure provides;
Fig. 2 B is a kind of user interface schematic diagram for editable image template that the embodiment of the present disclosure provides;
Fig. 2 C is a kind of editable image template selection interface schematic diagram that the embodiment of the present disclosure provides;
Fig. 3 is a kind of structural block diagram of the generating means for editable image template that the embodiment of the present disclosure provides;
Fig. 4 is a kind of structural schematic diagram for equipment that the embodiment of the present disclosure provides.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.It also should be noted that in order to just Part relevant to the disclosure is illustrated only in description, attached drawing rather than full content.
Fig. 1 is a kind of flow diagram of the generation method for editable image template that the embodiment of the present disclosure provides.This reality The case where example is applicable to building editable image template is applied, the generation method of editable image template provided in this embodiment can It is executed by the generating means of editable image template, described device is realized by software and/or hardware, generally can integrate and is having Have in the equipment of image editing function, is such as integrated in computer or laptop.As shown in Figure 1, the embodiment of the present disclosure mentions The generation method of the editable image template of confession includes:
S110, image design original text is obtained.
In the present embodiment, image design original text can be obtained from other equipment that are local or establishing communication connection with local terminal. Illustratively, can the selection operation based on user locally obtain user choose image design original text;Or based on user's Trigger action generates acquisition instruction, which is sent to or is sent to the corresponding figure of storage acquisition instruction by server As the other equipment of design original text, and receives other equipment and original text is designed based on the image that the acquisition instruction returns;It can also design During teacher's designed image designs original text, judge that image designs original text according to setting cycle detection or the trigger action based on designer Whether design is completed, and obtains image design original text automatically after the completion of image design original text design.Wherein, image design original text can be with Any type of design picture proof that the generation of any graphic design software is used for designer, such as design picture proof, the PPT of advertisement pattern Design picture proof, the design picture proof of interior decoration etc., may include one or more figure layers in image design original text, herein not It is restricted.The embodiment of the present disclosure is said so that image design original text is the design picture proof of advertisement pattern and includes multiple figure layers as an example It is bright.
S120, figure layer identification is carried out to described image design original text, to obtain figure layer parameter, wherein the figure layer parameter packet It includes: included element, the relationship between the characteristic parameter and figure layer of element in figure layer.
Specifically, each figure layer and each figure layer in image design original text can be determined according to the image information that image designs original text Between relationship, and be directed to each figure layer, obtain in the figure layer included element, and determine the characteristic parameter of each element.
Wherein, the image information of image design original text can be understood as the relevant information of the composition of description image design original text, such as The relevant information of relationship between the composition and each figure layer of image design each figure layer of original text is described, generally, computer equipment can It renders to obtain image design original text to describe the relevant information of the composition of image design original text according to this;The figure layer that image designs in original text can To include common layer, background layer, character layer, regulating course, effect layer and/or graph layer etc.;Relationship between figure layer can be figure The covering relation up and down of layer, i.e., overlying relation of each figure layer in display;Included element can be in figure layer in figure layer Including picture, text, figure or effect etc.;The characteristic parameter of element can be for the type of element, size and/or in figure layer Position etc..
In an optional embodiment of the embodiment of the present disclosure, it is PSD file, the figure layer packet that described image, which designs original text, Include picture layer and character layer;The element of the picture layer is picture, and the characteristic parameter of picture includes image content, coordinate value, length At least one of degree and width;The element of the character layer be text, the characteristic parameter of text include word content, font, At least one of color and font size;Relationship between the figure layer includes the covering relation up and down of figure layer.Wherein, PSD file For the dedicated picture file format of graphic design software Photoshop, i.e. image design original text is that designer is soft using Photoshop The picture proof of part design.
Generally, with the update of the update of shown content, such as product version, image designs original text user (such as product Dealer or advertiser) need to image design original text content, as image design original text in product picture and/or for product Verbal description etc. is replaced, so that image design original text can be shown the product of latest edition, therefore, is obtaining image Design original text after, can according to image design original text image information determine image design original text in picture layer and/or character layer with And the covering relation up and down between each figure layer layer, and further determined according to the map data mining platform for each figure layer for including in image information Content, coordinate value, the length and width of picture included in picture layer, and, word content, the word of the included text of character layer Body, color and font size, so as to subsequent content, font, face according to the content of picture, coordinate value, length and width and text Color and font size generate editable image template.Wherein, image design original text may include at least one picture layer and/or at least one Character layer.
S130, the editable attribute of the figure layer parameter is labeled, forms markup information.
In this step, markup information can be understood as the editable attribute of the figure layer parameter of description image design each figure layer of original text Relevant information;Whether editable attribute can edit or can edit under what conditions for each figure layer parameter/no The attribute that can be edited.Convenience when in view of editing to figure layer parameter, preferably can also be to editable in this step The title (such as editable content) of attribute is labeled, at this point, the markup information preferably includes the title of editable attribute And editing authority.
For example, the title of editable attribute can be text image content, Picture Coordinate value, picture length, picture Width, word content, character script, text color or text font size etc.;Editing authority can be understood as characterizing special title parameter The no information that can be edited can only include editable and non-editable, also may include multiple editable grades, to make The attribute that user with different rights can design original text to the corresponding image of corresponding editable grade is edited.
By taking picture layer as an example, the editing authority of the image content of picture layer can be labeled as it is low, by picture length and figure During the editing authority of piece width is labeled as, the editing authority of Picture Coordinate value is labeled as height, correspondingly, generating editable figure As after template, editing authority is that low user can only edit the image content in editable image template picture layer, i.e., The picture in other pictures replacement editable picture layer only can be used;Editing authority be in user can be to editable image mould Image content, picture length and picture width in plate picture layer are edited, and are had to image content, picture length and picture The permission that width is edited;Editing authority be high user can in editable image template picture layer image content, The coordinate value of picture length, picture width and picture is edited, and is had to image content, picture length, picture width and figure The permission that piece coordinate value is edited.
Specifically, the operation of image design original text user or designer can be automatically, or based on to the editable category of figure layer parameter Property is labeled.Such as image can be designed into the All Layers parameter in original text and be determined as editable figure layer parameter, or according to Setting rule, by certain in figure layer parameter is a kind of or a few class figure layer parameters (content of such as text, font, color, font size, and/ Or, the content of picture, coordinate value, length, width etc.) it is labeled as editable figure layer parameter or user with corresponding authority can The figure layer parameter of editor, and by other figure layer parameters (special efficacy, figure in such as image design original text) labeled as not editable Figure layer parameter;Original text designer can also be designed by image to be artificially labeled the editable attribute of figure layer parameter, for not Same image design original text generates different markup informations, avoids image design original text user due to being unfamiliar with a certain image parameter mark Note is influence caused by the editable of editable/not and the case where accidentally marking occurs.
S140, the corresponding editable image of described image design original text is generated according to the figure layer parameter and the markup information Template, wherein the editable image template is used to edit for user for editable attribute, to generate new images.
In this step, figure layer parameter and markup information comprising image design original text in editable image template, thus, user It can according to need and figure layer parameter editable in editable image template is edited, generate new image.Wherein, it can compile The format for collecting image template can according to need flexible setting, and illustratively, editable image template is json formatted file.
The generation method for the editable image template that the embodiment of the present disclosure provides obtains image and designs original text;To acquired Image designs original text and carries out figure layer identification, and to obtain figure layer parameter, the figure layer parameter includes element included in figure layer, element Characteristic parameter and figure layer between relationship;The editable attribute of each figure layer parameter is labeled, markup information is formed;According to Each figure layer parameter editable image template corresponding with markup information generation image design original text, so that user is directed to editable category Property edited, generate new images.The embodiment of the present disclosure can automate by using above-mentioned technical proposal and realize editable figure As the generation of template, the formation efficiency of editable image template is improved, reduces and generates manpower spent by editable image template With material resources.
Fig. 2A is a kind of flow diagram of the generation method for editable image template that the embodiment of the present disclosure provides, this reality It applies example to optimize on the basis of the above embodiments, further, figure layer identification is carried out to described image design original text, to obtain After figure layer parameter, further includes: figure layer expression tree is established according to the figure layer parameter, each leaf node corresponds to a figure layer, In, the figure layer expression tree is for storing the figure layer parameter.
Further, the corresponding editable of described image design original text is generated according to the figure layer parameter and the markup information After image template, further includes: the editable image template is associated with user interface, wherein the user hands over User's input space at mutual interface is corresponding with the markup information in editable image template.
Correspondingly, as shown in Figure 2 A, the generation method of editable image template provided in this embodiment includes:
S210, image design original text is obtained.
S220, figure layer identification is carried out to described image design original text, to obtain figure layer parameter, wherein the figure layer parameter packet It includes: included element, the relationship between the characteristic parameter and figure layer of element in figure layer.
S230, figure layer expression tree, the corresponding figure layer of each leaf node, wherein described are established according to the figure layer parameter Figure layer expression tree is for storing the figure layer parameter.
In the present embodiment, figure layer parameter can be stored in a manner of figure layer expression tree.At this point, getting image After the figure layer parameter for designing original text, the quantity that figure layer in original text can be designed according to image constructs figure layer expression tree, figure layer expression tree The corresponding image of each leaf node, and the figure layer parameter of each figure layer is stored in its corresponding leaf node position.
S240, the editable attribute of the figure layer parameter is labeled, forms markup information.
S250, the corresponding editable image of described image design original text is generated according to the figure layer parameter and the markup information Template, wherein the editable image template is used to edit for user for editable attribute, to generate new images.
It is S260, the editable image template is associated with user interface, wherein the user interface User's input space is corresponding with the markup information in editable image template.
Specifically, can be associated with the trigger action of user in user interface by editable image template, such as may be used With the markup information in editable image template is associated with user's input space of user interface (as shown in Figure 2 B), To which user is after the editable image template selection interface corresponding editable image template of selection (as shown in Figure 2 C) Into user interface as shown in Figure 2 B, to carry out corresponding trigger action in user interface (such as input operation Deng) the editable attribute (such as Background, Logo are schemed) in editable image template is edited.Wherein, editable image The editable attribute in editable image template can be shown in the associated user interface of template, can also further be wrapped Other not editable attributes in image template containing editable;The present embodiment can be in the form of text in user interface The editable attribute in editable image template is described, can also show editable in user interface in the form of images Image template is simultaneously identified the editable attribute in editable image template according to setting means.
In order to improve the intuitive of editable image template, the present embodiment preferably can be in the form of images in user's interaction The editable attribute in editable image template and editable image template is shown in interface.At this point, illustrative, editable figure As in template can not content of edit can in such a way that it is in the original display in image design original text (including color, position, size Deng) shown, the editable content (such as editable text and/or picture) in editable image template can be with setting Its display mode in image design original text that is different from shown, such as can be using the transparency or gray scale of setting to can compile The text or picture collected are shown, are shown using the font of setting, gradient etc. to editable text, alternatively, adopting Editable text or picture etc. are identified with the figure (such as wave or dotted line frame) of setting.Correspondingly, display editable figure As after template, the text or picture can be popped up behind the display position that user clicks editable text or editable picture Editable property window may include the title of editable attribute and editor's window of editable attribute in editable property window Mouthful;Picture input window can also be shown based on clicking operation of the user at editable picture or editable text importing position Or copy editor's window, and amplification, diminution or the drag operation based on user at picture display position change the size of picture (including length and width) and display position (i.e. the coordinate value of picture).
The generation method for the editable image template that the embodiment of the present disclosure provides obtains image and designs original text;Image is designed Original text carries out figure layer identification, to obtain figure layer parameter;Figure layer expression tree is established according to figure layer parameter;To the editable category of figure layer parameter Property be labeled, formed markup information;The corresponding editable image of image design original text is generated according to figure layer parameter and markup information Template, and editable image template is associated with user interface.The embodiment of the present disclosure by using above-mentioned technical proposal, The intuitive of editable image template can be improved, reduce operation when user generates new image based on editable image template Difficulty reduces and generates the time spent by new images, improves the operating experience of user.
Fig. 3 is a kind of structural schematic diagram of the generating means for editable image template that the embodiment of the present disclosure provides.The dress Setting can generally be integrated in the equipment with image editing function by software and or hardware realization, typically, can integrate In the equipment such as terminal or server, editable image template can be generated by executing the generation method of editable image template. As shown in figure 3, the generating means for the editable image template that the embodiment of the present disclosure provides include: that design original text obtains module 301, figure Layer identification module 302, attribute labeling module 303 and template generation module 304, wherein
It designs original text and obtains module 301, for obtaining image design original text;
Figure layer identification module 302, for carrying out figure layer identification to described image design original text, to obtain figure layer parameter, wherein The figure layer parameter includes: element included in figure layer, the relationship between the characteristic parameter and figure layer of element;
Attribute labeling module 303 is labeled for the editable attribute to the figure layer parameter, forms markup information;
Template generation module 304 designs original text for generating described image according to the figure layer parameter and the markup information Corresponding editable image template, wherein the editable image template is used to edit for user for editable attribute, To generate new images.
The generating means for the editable image template that the embodiment of the present disclosure provides obtain module by design original text and obtain image Design original text;Original text is designed to acquired image by figure layer identification module and carries out figure layer identification, to obtain figure layer parameter, the figure Layer parameter includes the relationship between the characteristic parameter and figure layer of element included in figure layer, element;Pass through attribute labeling module The editable attribute of each figure layer parameter is labeled, markup information is formed;By template generation module according to each figure layer parameter Editable image template corresponding with markup information generation image design original text, so that user compiles for editable attribute Volume, generate letter image.The embodiment of the present disclosure can automate by using above-mentioned technical proposal and realize editable image template It generates, improves the formation efficiency of editable image template, reduce and generate manpower and material resources spent by editable image template.
In the above scheme, described image design original text can be PSD file, and the figure layer may include picture layer and text Layer;The element of the picture layer is picture, the characteristic parameter of picture include image content, coordinate value, in length and width extremely Few one kind;The element of the character layer is text, and the characteristic parameter of text includes in word content, font, color and font size It is at least one;Relationship between the figure layer may include the covering relation up and down of figure layer.
Further, the generating means of the editable image template can also include: that expression tree establishes module, be used for Figure layer identification is carried out to described image design original text, after obtaining figure layer parameter, figure layer expression is established according to the figure layer parameter Tree, the corresponding figure layer of each leaf node, wherein the figure layer expression tree is for storing the figure layer parameter.
In the above scheme, the markup information may include: the title and editing authority of editable attribute.
In the above scheme, editable image template can be json formatted file.
Further, the generating means of the editable image template can also include: interface relating module, in root It, will be described after generating the corresponding editable image template of described image design original text according to the figure layer parameter and the markup information Editable image template is associated with user interface, wherein user's input space of the user interface with can compile The markup information collected in image template is corresponding.
The generating means for the editable image template that the embodiment of the present disclosure provides can be performed disclosure any embodiment and provide Editable image template generation method, have execute editable image template the corresponding functional module of generation method and have Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to editable provided by disclosure any embodiment The generation method of image template.
Fig. 4 is a kind of structural schematic diagram for equipment that the embodiment of the present disclosure provides.Fig. 4, which is shown, to be suitable for being used to realizing this public affairs Open the block diagram of the example devices 412 of embodiment.The equipment 412 that Fig. 4 is shown is only an example, should not be to disclosure reality The function and use scope for applying example bring any restrictions.
As shown in figure 4, equipment 412 is showed in the form of universal computing device.The component of equipment 412 may include but unlimited In one or more processor or processing unit 416, system storage 425, different system components (including system is connected Memory 425 and processing unit 416) bus 418.
Bus 418 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 412 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment The usable medium of 412 access, including volatile and non-volatile media, moveable and immovable medium.
System storage 428 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 430 and/or cache memory 432.Equipment 412 may further include other removable/not removable Dynamic, volatile/non-volatile computer system storage medium.Only as an example, storage system 434 can be used for read and write can not Mobile, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").Although not shown in fig 4, Ke Yiti For the disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to moving non-volatile light The CD drive of disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver It can be connected by one or more data media interfaces with bus 418.Memory 428 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the disclosure The function of embodiment.
Program/utility 440 with one group of (at least one) program module 442, can store in such as memory In 428, such program module 442 includes --- but being not limited to --- operating system, one or more application program, other It may include the realization of network environment in program module and program data, each of these examples or certain combination.Journey Sequence module 442 usually executes function and/or method in disclosure described embodiment.
Equipment 412 can also be logical with one or more external equipments 414 (such as keyboard, sensing equipment, display 424 etc.) Letter, can also be enabled a user to one or more equipment interact with the equipment 412 communicate, and/or with make the equipment 412 Any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment communicates.This Kind communication can be carried out by input/output (I/O) interface 422.Also, equipment 412 can also by network adapter 420 with One or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as Shown in figure, network adapter 420 is communicated by bus 418 with other modules of equipment 412.It should be understood that although not showing in Fig. 4 Out, other hardware and/or software module can be used with bonding apparatus 412, including but not limited to: microcode, device driver, superfluous Remaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 416 by the program that is stored in system storage 428 of operation, thereby executing various function application with And data processing, such as realize the generation method of editable image template provided by the embodiment of the present disclosure.That is, obtaining image Design original text;Figure layer identification is carried out to described image design original text, to obtain figure layer parameter, wherein the figure layer parameter includes: figure layer In included element, the relationship between the characteristic parameter and figure layer of element;To the editable attribute of the figure layer parameter into Rower note, forms markup information;Generating described image design according to the figure layer parameter and the markup information original text is corresponding can Edit image template, wherein the editable image template is used to edit for user for editable attribute, new to generate Image.
The embodiment of the present disclosure additionally provides a kind of computer readable storage medium, is stored thereon with computer program, the journey Realize that the generation method of the editable image template as provided by the embodiment of the present disclosure, this method are specific when sequence is executed by processor It may include: to obtain image design original text;Figure layer identification is carried out to described image design original text, to obtain figure layer parameter, wherein described Figure layer parameter includes: element included in figure layer, the relationship between the characteristic parameter and figure layer of element;To the figure layer The editable attribute of parameter is labeled, and forms markup information;According to the figure layer parameter and markup information generation Image designs the corresponding editable image template of original text, wherein the editable image template is used to be directed to editable category for user Property is edited, to generate new images.
The computer storage medium of the embodiment of the present disclosure, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the disclosure operation computer Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Ruby, Go further include conventional procedural programming language-such as " C " language or similar programming language.Program Code can be executed fully on the user computer, partly be executed on the user computer, as an independent software Packet executes, part executes on the remote computer or completely in remote computer or server on the user computer for part Upper execution.In situations involving remote computers, remote computer can pass through the network of any kind --- including local Net (LAN) or wide area network (WAN)-are connected to subscriber computer, or, it may be connected to outer computer (such as using because of spy Service provider is netted to connect by internet).
Note that above are only the preferred embodiment and institute's application technology principle of the disclosure.It will be appreciated by those skilled in the art that The present disclosure is not limited to specific embodiments described here, be able to carry out for a person skilled in the art it is various it is apparent variation, The protection scope readjusted and substituted without departing from the disclosure.Therefore, although being carried out by above embodiments to the disclosure It is described in further detail, but the disclosure is not limited only to above embodiments, in the case where not departing from disclosure design, also It may include more other equivalent embodiments, and the scope of the present disclosure is determined by the scope of the appended claims.

Claims (10)

1. a kind of generation method of editable image template characterized by comprising
It obtains image and designs original text;
Figure layer identification is carried out to described image design original text, to obtain figure layer parameter, wherein the figure layer parameter includes: in figure layer Included element, the relationship between the characteristic parameter and figure layer of element;
The editable attribute of the figure layer parameter is labeled, markup information is formed;
The corresponding editable image template of described image design original text is generated according to the figure layer parameter and the markup information, In, the editable image template is used to edit for user for editable attribute, to generate new images.
2. the figure layer includes the method according to claim 1, wherein described image design original text is PSD file Picture layer and character layer;
The element of the picture layer is picture, the characteristic parameter of picture include image content, coordinate value, in length and width extremely Few one kind;
The element of the character layer be text, the characteristic parameter of text include in word content, font, color and font size at least It is a kind of;
Relationship between the figure layer includes the covering relation up and down of figure layer.
3. the method according to claim 1, wherein figure layer identification is carried out to described image design original text, to obtain After figure layer parameter, further includes:
Figure layer expression tree, the corresponding figure layer of each leaf node, wherein the figure layer expression tree are established according to the figure layer parameter For storing the figure layer parameter.
4. the method according to claim 1, wherein the markup information include: editable attribute title and Editing authority.
5. according to the method described in claim 1, it is characterized by: editable image template is json formatted file.
6. the method according to claim 1, wherein generating institute according to the figure layer parameter and the markup information After stating the corresponding editable image template of image design original text, further includes:
It is the editable image template is associated with user interface, wherein the user of the user interface inputs Space is corresponding with the markup information in editable image template.
7. a kind of generating means of editable image template characterized by comprising
It designs original text and obtains module, for obtaining image design original text;
Figure layer identification module, for carrying out figure layer identification to described image design original text, to obtain figure layer parameter, wherein the figure Layer parameter includes: element included in figure layer, the relationship between the characteristic parameter and figure layer of element;
Attribute labeling module is labeled for the editable attribute to the figure layer parameter, forms markup information;
Template generation module, can for generating described image design according to the figure layer parameter and the markup information original text being corresponding Edit image template, wherein the editable image template is used to edit for user for editable attribute, new to generate Image.
8. device according to claim 7, which is characterized in that it is PSD file that described image, which designs original text, and the figure layer includes Picture layer and character layer;
The element of the picture layer is picture, the characteristic parameter of picture include image content, coordinate value, in length and width extremely Few one kind;
The element of the character layer be text, the characteristic parameter of text include in word content, font, color and font size at least It is a kind of;
Relationship between the figure layer includes the covering relation up and down of figure layer.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as the generation method of editable image template as claimed in any one of claims 1 to 6.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The generation method such as editable image template as claimed in any one of claims 1 to 6 is realized when execution.
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 true CN109801347A (en) 2019-05-24
CN109801347B 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)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110660115A (en) * 2019-08-20 2020-01-07 海南车智易通信息技术有限公司 Method, device and system for generating advertisement picture
CN110706313A (en) * 2019-09-29 2020-01-17 杭州洋驼网络科技有限公司 Method for dynamically generating picture
CN110717207A (en) * 2019-09-06 2020-01-21 景森设计股份有限公司 Labeling method, system and storage medium for pipeline design
CN110929496A (en) * 2019-11-15 2020-03-27 北京金山安全软件有限公司 Method and device for generating character template
CN111027091A (en) * 2019-11-13 2020-04-17 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for managing authority
CN111192340A (en) * 2019-12-24 2020-05-22 武汉嘉铭激光股份有限公司 Method for automatically generating laser marking template file based on image recognition
CN111475163A (en) * 2020-06-22 2020-07-31 腾讯科技(深圳)有限公司 Method, device and equipment for generating code file of view template and storage medium
CN111782114A (en) * 2020-06-15 2020-10-16 广州视源电子科技股份有限公司 Element display method, device, equipment and medium in manuscript editing application
CN111899155A (en) * 2020-06-29 2020-11-06 腾讯科技(深圳)有限公司 Video processing method, video processing device, computer equipment and storage medium
CN111986083A (en) * 2020-07-29 2020-11-24 上海阿几网络技术有限公司 Method and device for automatically combining images
CN112073794A (en) * 2019-06-11 2020-12-11 腾讯科技(深圳)有限公司 Animation processing method, animation processing device, computer readable storage medium and computer equipment
CN112073649A (en) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 Multimedia data processing method, multimedia data generating method and related equipment
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
CN112153422A (en) * 2020-09-25 2020-12-29 连尚(北京)网络科技有限公司 Video fusion method and device
CN112330532A (en) * 2020-11-12 2021-02-05 上海枫河软件科技有限公司 Image analysis processing method and equipment
CN112507661A (en) * 2020-12-15 2021-03-16 北京达佳互联信息技术有限公司 Method and device for realizing special effect of characters, electronic equipment and storage medium
CN112911388A (en) * 2021-02-02 2021-06-04 厦门美图之家科技有限公司 Efficient editable video special effect output method and device and electronic equipment
CN112929732A (en) * 2019-12-06 2021-06-08 腾讯科技(深圳)有限公司 Video processing method and device and computer storage medium
CN112927314A (en) * 2019-12-06 2021-06-08 腾讯数码(天津)有限公司 Image data processing method and device and computer equipment
CN113112567A (en) * 2021-04-16 2021-07-13 中国工商银行股份有限公司 Method and device for generating editable flow chart, electronic equipment and storage medium
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
CN111899155B (en) * 2020-06-29 2024-04-26 腾讯科技(深圳)有限公司 Video processing method, device, computer equipment and storage medium

Citations (11)

* 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
CN101119430A (en) * 2006-07-31 2008-02-06 富士胶片株式会社 Template generating apparatus, image layout apparatus, modified template generating apparatus, and programs therefor
US7596751B2 (en) * 2005-04-22 2009-09-29 Hewlett-Packard Development Company, L.P. Contact sheet based image management
CN103024480A (en) * 2012-12-28 2013-04-03 杭州泰一指尚科技有限公司 Method for implanting advertisement in video
CN105550980A (en) * 2014-10-29 2016-05-04 阿里巴巴集团控股有限公司 Image generation method and related apparatus
CN106296815A (en) * 2015-06-24 2017-01-04 程昊 The structure of a kind of interactive three-dimensional digital city and display packing
CN106383641A (en) * 2016-09-05 2017-02-08 苏州奥普特克自动化科技有限公司 Exercise screenshot editing method and apparatus
CN106576190A (en) * 2014-08-18 2017-04-19 郑官镐 360 degree space image reproduction method and system therefor
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

Patent Citations (11)

* 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
US7596751B2 (en) * 2005-04-22 2009-09-29 Hewlett-Packard Development Company, L.P. Contact sheet based image management
CN1893699A (en) * 2005-06-07 2007-01-10 三星电子株式会社 Method for zooming of picture in wireless terminal and wireless terminal for implementing the method
CN101119430A (en) * 2006-07-31 2008-02-06 富士胶片株式会社 Template generating apparatus, image layout apparatus, modified template generating apparatus, and programs therefor
CN103024480A (en) * 2012-12-28 2013-04-03 杭州泰一指尚科技有限公司 Method for implanting advertisement in video
CN106576190A (en) * 2014-08-18 2017-04-19 郑官镐 360 degree space image reproduction method and system therefor
CN105550980A (en) * 2014-10-29 2016-05-04 阿里巴巴集团控股有限公司 Image generation method and related apparatus
CN106296815A (en) * 2015-06-24 2017-01-04 程昊 The structure of a kind of interactive three-dimensional digital city and display packing
CN106383641A (en) * 2016-09-05 2017-02-08 苏州奥普特克自动化科技有限公司 Exercise screenshot editing method and apparatus
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
吴炜煜 等: "一种新的基于易得图像建筑建模方法研究", 《计算机工程与应用》 *
袁立强: "基于XML技术的图纸管理模式研究", 《计算机与网络》 *

Cited By (36)

* 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
CN112073794A (en) * 2019-06-11 2020-12-11 腾讯科技(深圳)有限公司 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
CN110717207A (en) * 2019-09-06 2020-01-21 景森设计股份有限公司 Labeling method, system and storage medium for pipeline design
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
CN111027091A (en) * 2019-11-13 2020-04-17 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for managing authority
CN111027091B (en) * 2019-11-13 2022-04-22 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for managing authority
CN110929496A (en) * 2019-11-15 2020-03-27 北京金山安全软件有限公司 Method and device for generating character template
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
CN112929732A (en) * 2019-12-06 2021-06-08 腾讯科技(深圳)有限公司 Video processing method and device and computer storage medium
CN112927314A (en) * 2019-12-06 2021-06-08 腾讯数码(天津)有限公司 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
CN111782114A (en) * 2020-06-15 2020-10-16 广州视源电子科技股份有限公司 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
CN111475163A (en) * 2020-06-22 2020-07-31 腾讯科技(深圳)有限公司 Method, device and equipment for generating code file of view template and storage medium
CN111899155B (en) * 2020-06-29 2024-04-26 腾讯科技(深圳)有限公司 Video processing method, device, computer equipment and storage medium
CN111899155A (en) * 2020-06-29 2020-11-06 腾讯科技(深圳)有限公司 Video processing method, video processing device, computer equipment and storage medium
CN111986083A (en) * 2020-07-29 2020-11-24 上海阿几网络技术有限公司 Method and device for automatically combining images
JP2023541569A (en) * 2020-09-04 2023-10-03 北京字節跳動網絡技術有限公司 Multimedia data processing method, generation method and related equipment
WO2022048478A1 (en) * 2020-09-04 2022-03-10 北京字节跳动网络技术有限公司 Multimedia data processing method, multimedia data generation method, and related device
CN112073649A (en) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 Multimedia data processing method, multimedia data generating method and related equipment
EP4195654A4 (en) * 2020-09-04 2024-04-24 Beijing Bytedance Network Tech Co Ltd Multimedia data processing method, multimedia data generation method, and related device
CN112073649B (en) * 2020-09-04 2022-12-13 北京字节跳动网络技术有限公司 Multimedia data processing method, multimedia data generating method and related equipment
JP7466763B2 (en) 2020-09-04 2024-04-12 北京字節跳動網絡技術有限公司 Multimedia data processing method, generation method and related device
US11887630B2 (en) * 2020-09-04 2024-01-30 Beijing Bytedance Network Technology Co., Ltd. Multimedia data processing method, multimedia data generation method, and related device
CN112153422A (en) * 2020-09-25 2020-12-29 连尚(北京)网络科技有限公司 Video fusion method and device
CN112330532A (en) * 2020-11-12 2021-02-05 上海枫河软件科技有限公司 Image analysis processing method and equipment
CN112507661A (en) * 2020-12-15 2021-03-16 北京达佳互联信息技术有限公司 Method and device for realizing special effect of characters, 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
CN112911388A (en) * 2021-02-02 2021-06-04 厦门美图之家科技有限公司 Efficient editable video special effect output method and device and electronic equipment
CN113112567A (en) * 2021-04-16 2021-07-13 中国工商银行股份有限公司 Method and device for generating editable flow chart, electronic equipment and storage medium
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

Also Published As

Publication number Publication date
CN109801347B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN109801347A (en) A kind of generation method, device, equipment and the medium of editable image template
US20190392487A1 (en) System, Device, and Method of Automatic Construction of Digital Advertisements
WO2022007919A1 (en) Flow processing method and device, and computer system
US11816459B2 (en) Graphical user interface programming system
CN112540763A (en) Front-end page generation method and device, platform equipment and storage medium
CN110599393B (en) Picture style conversion method, device, equipment and computer readable storage medium
US20150348141A1 (en) Method and system for unifying workflow processes for producing advertisement content
US20130080879A1 (en) Methods and apparatus providing document elements formatting
CN110244921A (en) Label printing method, device, electronic equipment and system
WO2023138437A1 (en) Application development platform, micro-program generation method, and device and storage medium
KR20160106970A (en) Method and Apparatus for Generating Optimal Template of Digital Signage
CN106919406A (en) A kind of desktop application component issue, update method and device
CN110232726A (en) The generation method and device of intention material
CN112330532A (en) Image analysis processing method and equipment
CN107341005A (en) Chart generation method and its device
CN111310793B (en) Medical image classification method, device, mobile terminal and medium
CN111679824A (en) Method and device for making active page, electronic equipment and storage medium
CN113867694A (en) Method and system for intelligently generating front-end code
CN107423291A (en) A kind of data translating method and client device
CN109558118B (en) Method, apparatus, device and storage medium for creating native components of a smart applet
WO2022089427A1 (en) Video generation method and apparatus, and electronic device and computer-readable medium
CN110660313A (en) Information presentation method and device
CN107220045B (en) Station building method, device, equipment and storage medium based on artificial intelligence
US10180822B2 (en) Development environment for real-time application development
CN104572598A (en) Typesetting method and device for digitally published product

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