CN116661667A - Poster picture processing method and device, electronic equipment and storage medium - Google Patents

Poster picture processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116661667A
CN116661667A CN202310935085.1A CN202310935085A CN116661667A CN 116661667 A CN116661667 A CN 116661667A CN 202310935085 A CN202310935085 A CN 202310935085A CN 116661667 A CN116661667 A CN 116661667A
Authority
CN
China
Prior art keywords
picture
poster
sub
pictures
html
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310935085.1A
Other languages
Chinese (zh)
Inventor
刘东杰
甘飞鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Arc Information Technology Co ltd
Original Assignee
Beijing Arc Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Arc Information Technology Co ltd filed Critical Beijing Arc Information Technology Co ltd
Priority to CN202310935085.1A priority Critical patent/CN116661667A/en
Publication of CN116661667A publication Critical patent/CN116661667A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a processing method and device of poster pictures, electronic equipment and a storage medium, and belongs to the technical field of data processing. The method comprises the steps of cutting a poster picture into a plurality of sub-pictures by using a graph drawing tool, transmitting each sub-picture into a third party picture identification tool, extracting characters and patterns in the sub-picture, adjusting content and patterns by combining a rich text tool, scaling length attributes and width attributes in HTML codes of each sub-picture according to a preset scaling rule, and merging the scaled HTML codes to obtain an HTML file of the edited poster picture. Therefore, the user can modify the contents such as the text style in the e-mail marketing poster picture and the like according to the actual service scene and then integrate the contents into the HTML file, so that the logic of generating the editable e-mail marketing poster is realized, and the use experience of the user is improved. The technical problems that text content in an e-mail marketing poster picture cannot be extracted and the content and the style are modified in the prior art are solved.

Description

Poster picture processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a processing method and apparatus for a poster picture, an electronic device, and a storage medium.
Background
With the development of internet technology, people can browse various information through a network and can share the information in various modes. The sharing of the poster picture is a commonly used information sharing mode at present, a user shares a poster picture with product information, an information inlet and the like to other users, and the other users can acquire the information shared by the users through the information inlet in the poster picture. For example, patent application CN109327518A discloses an information sharing method based on an H5 page, which firstly receives a sharing instruction sent by an application program, then reads a data record for obtaining sharing information corresponding to a user ID according to the user ID and the sharing information in the sharing instruction, finally generates a poster related to a sharing platform from the read data record, and returns the generated poster to the application program, so that the application program uploads the poster to the CDN of the sharing platform in real time.
In the prior art, when a user uploads an email marketing poster picture, X, Y coordinates of the cut poster picture need to be adjusted, the poster picture is cut into a plurality of small pictures, integrated into an HTML file and sent to a user mailbox. However, in the cutting process, if the user needs to extract text content in the e-mail marketing poster picture and modify the content and style, the implementation cannot be realized, and the user experience is poor.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a processing method and device of poster pictures, electronic equipment and a storage medium.
According to one aspect of the present invention, there is provided a processing method of poster pictures, including:
acquiring various parameters of poster pictures marketed through emails;
based on various parameters, cutting the poster picture into a plurality of sub-pictures by using a graph drawing tool;
identifying the content and the style in each sub-picture by using a third party picture identification tool;
editing the content and the style in each identified sub-picture by using a rich text editor, and generating HTML codes of each sub-picture;
and scaling the length attribute and the width attribute included in the HTML codes of each sub-picture according to a preset scaling rule, and merging the scaled HTML codes of each sub-picture to obtain an HTML file of the edited poster picture.
Optionally, the acquiring parameters of the poster picture marketed through email includes:
receiving a poster picture transmitted by a user terminal through a background interface;
dragging an X coordinate axis and a Y coordinate axis of the poster picture through a visual operation interface, and drawing different rows and columns of the poster picture;
adding hyperlinks or anchor points at preset positions of the poster pictures according to the business logic;
and determining various parameters of the poster picture based on the rows and columns of the poster picture and hyperlinks or anchor points at preset positions.
Optionally, the scaling the length attribute and the width attribute included in the HTML code of each sub-picture according to a preset scaling rule includes:
determining a scaling value of the poster picture based on the actual width of the poster picture and the interface width of the visual operation interface;
and scaling the length attribute and the width attribute included in the HTML code of each sub-picture based on the scaling value.
Optionally, the merging the HTML codes of the scaled sub-pictures to obtain the HTML file of the edited poster picture includes:
adding a table in a visual operation interface, defining rows of the table by using tr elements, and defining cells of the table by using td elements;
sequentially placing HTML codes of the scaled sub-pictures into cells of a table according to the arrangement sequence of the sub-pictures in the poster pictures;
and merging the HTML codes in the cells of the table form to obtain an HTML file of the edited poster picture.
According to another aspect of the present invention, there is provided a processing apparatus for poster pictures, comprising:
the acquisition module is used for acquiring various parameters of the poster pictures marketed through the emails;
the cutting module is used for cutting the poster picture into a plurality of sub-pictures by using a graph drawing tool based on various parameters;
the identification module is used for identifying the content and the style in each sub-picture by using a third party picture identification tool;
the editing module is used for editing the content and the style in each identified sub-picture by using a rich text editor and generating HTML codes of each sub-picture;
and the merging module is used for scaling the length attribute and the width attribute included in the HTML codes of each sub-picture according to a preset scaling rule, merging the scaled HTML codes of each sub-picture, and obtaining the HTML file of the edited poster picture.
Optionally, the acquiring module is specifically configured to:
receiving a poster picture transmitted by a user terminal through a background interface;
dragging an X coordinate axis and a Y coordinate axis of the poster picture through a visual operation interface, and drawing different rows and columns of the poster picture;
adding hyperlinks or anchor points at preset positions of the poster pictures according to the business logic;
and determining various parameters of the poster picture based on the rows and columns of the poster picture and hyperlinks or anchor points at preset positions.
Optionally, the merging module is specifically configured to:
determining a scaling value of the poster picture based on the actual width of the poster picture and the interface width of the visual operation interface;
and scaling the length attribute and the width attribute included in the HTML code of each sub-picture based on the scaling value.
Optionally, the merging module is further specifically configured to:
adding a table in a visual operation interface, defining rows of the table by using tr elements, and defining cells of the table by using td elements;
sequentially placing HTML codes of the scaled sub-pictures into cells of a table according to the arrangement sequence of the sub-pictures in the poster pictures;
and merging the HTML codes in the cells of the table form to obtain an HTML file of the edited poster picture.
According to a further aspect of the present invention there is provided a computer readable storage medium storing a computer program for performing the method according to any one of the above aspects of the present invention.
According to still another aspect of the present invention, there is provided an electronic device including: a processor; a memory for storing the processor-executable instructions; the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method according to any one of the above aspects of the present invention.
The method comprises the steps of firstly cutting a poster picture marketed through an e-mail into a plurality of sub-pictures by using a graphic drawing tool, then using a third party picture identification tool to transfer each cut sub-picture, extracting characters and patterns in each sub-picture, then combining with a rich text tool to adjust contents and patterns, scaling length attributes and width attributes contained in HTML codes of each sub-picture according to a preset scaling rule, and merging the scaled HTML codes of each sub-picture to obtain an HTML file of the edited poster picture. Therefore, the user can modify the contents such as the text style in the e-mail marketing poster picture and the like according to the actual service scene and then integrate the contents into the HTML file, thereby realizing the logic of generating the editable e-mail marketing poster and improving the use experience of the user. The technical problems that text content in an e-mail marketing poster picture cannot be extracted and the content and the style are modified in the prior art are solved.
Drawings
Exemplary embodiments of the present invention may be more completely understood in consideration of the following drawings:
fig. 1 is a flowchart of a processing method of a poster picture according to an exemplary embodiment of the present invention;
fig. 2 is a schematic structural diagram of a processing device for poster pictures according to an exemplary embodiment of the present invention;
fig. 3 is a structure of an electronic device provided in an exemplary embodiment of the present invention.
Detailed Description
Hereinafter, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some embodiments of the present invention and not all embodiments of the present invention, and it should be understood that the present invention is not limited by the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
It will be appreciated by those of skill in the art that the terms "first," "second," etc. in embodiments of the present invention are used merely to distinguish between different steps, devices or modules, etc., and do not represent any particular technical meaning nor necessarily logical order between them.
It should also be understood that in embodiments of the present invention, "plurality" may refer to two or more, and "at least one" may refer to one, two or more.
It should also be appreciated that any component, data, or structure referred to in an embodiment of the invention may be generally understood as one or more without explicit limitation or the contrary in the context.
In addition, the term "and/or" in the present invention is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In the present invention, the character "/" generally indicates that the front and rear related objects are an or relationship.
It should also be understood that the description of the embodiments of the present invention emphasizes the differences between the embodiments, and that the same or similar features may be referred to each other, and for brevity, will not be described in detail.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods, and apparatus should be considered part of the specification.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations with electronic devices, such as communications terminals, computer systems, servers, etc. Examples of well known communication terminals, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as communication terminals, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, mainframe computer systems, and distributed cloud computing technology environments that include any of the foregoing, and the like.
Electronic devices such as communication terminals, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server may be implemented in a distributed cloud computing environment in which tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including memory storage devices.
Exemplary method
Fig. 1 is a schematic flow chart of a processing method of a poster picture according to an exemplary embodiment of the invention. As shown in fig. 1, the processing method of the poster picture includes the following steps:
step S101: and acquiring various parameters of the poster pictures marketed through the emails.
Optionally, the acquiring parameters of the poster picture marketed through email includes: receiving a poster picture transmitted by a user terminal through a background interface; dragging an X coordinate axis and a Y coordinate axis of the poster picture through a visual operation interface, and drawing different rows and columns of the poster picture; adding hyperlinks or anchor points at preset positions of the poster pictures according to the business logic; and determining various parameters of the poster picture based on the rows and columns of the poster picture and hyperlinks or anchor points at preset positions.
In the embodiment of the invention, a user transmits the complete poster picture to a background interface, and draws different rows and columns of the poster picture by dragging X, Y coordinate axes through a visual operation interface. Adding hyperlinks or anchor points according to service logic, and if the hyperlinks are the hyperlinks, realizing page skip after clicking by a user; if the anchor point is the anchor point, the user can locate and jump to a certain area in the page after clicking; for example, in a multi-language switching scene, poster pictures in different languages are drawn into a poster picture in a vertical arrangement mode, the poster picture is transmitted, a jump anchor point is added at the top, and the jump anchor points are respectively positioned in different language areas of a page to realize visual multi-language switching; and finally, all relevant parameters are transmitted to a background interface.
Step S102: based on the parameters, the poster picture is cut into a plurality of sub-pictures using a graphics rendering tool.
In the embodiment of the invention, the background interface passes through the corresponding row coordinates and column coordinates in the poster picture through the parameters transmitted by the front end, and the net drawing tool cuts the poster picture into a plurality of sub-pictures.
Step S103: the content and style in each sub-picture is identified using a third party picture identification tool.
In the embodiment of the invention, a plurality of sub-pictures are transmitted into a third party picture identification tool interface, and characters and patterns identified by the interface are obtained; the hyperlink or anchor parameters are added to the corresponding Html page area in a < a > </a > manner.
Step S104: and editing the content and the style in each identified sub-picture by using a rich text editor, and generating HTML codes of each sub-picture.
In the embodiment of the invention, the extracted characters and styles are put into a rich text editor, a user modifies the contents of the characters, colors, styles, paragraphs, hyperlinks and the like in the text through the rich text editor, and the HTML codes generated by the rich text editor are acquired through JS.
Step S105: and scaling the length attribute and the width attribute included in the HTML codes of each sub-picture according to a preset scaling rule, and merging the scaled HTML codes of each sub-picture to obtain an HTML file of the edited poster picture.
Optionally, the scaling the length attribute and the width attribute included in the HTML code of each sub-picture according to a preset scaling rule includes: determining a scaling value of the poster picture based on the actual width of the poster picture and the interface width of the visual operation interface; and scaling the length attribute and the width attribute included in the HTML code of each sub-picture based on the scaling value.
Optionally, the merging the HTML codes of the scaled sub-pictures to obtain the HTML file of the edited poster picture includes: adding a table in a visual operation interface, defining rows of the table by using tr elements, and defining cells of the table by using td elements; sequentially placing HTML codes of the scaled sub-pictures into cells of a table according to the arrangement sequence of the sub-pictures in the poster pictures; and merging the HTML codes in the cells of the table form to obtain an HTML file of the edited poster picture.
In the embodiment of the invention, parameters are transmitted into an API interface, cells and table codes are added in a region of the background spliced page HTML code, the content of the rich text HTML code of < tr > < td > < table > is valid, and the width and the height of the cells are controlled, so that the editing effect in the rich text can be displayed in the region.
Further, dividing the actual width of the poster picture by the width of the operation interface to obtain a scaling value, scaling the HTML code containing the length attribute width and the width attribute height, adding a table, tr rows and td cells, putting the HTML code generated by the rich text editor into the cells, and merging the complete HTML code. The complete HTML code may then be sent to the user mailbox via the net code. After receiving the mail, the user checks the content information in the mail and clicks different areas to realize the jump link page or jump the relevant areas of the page.
In summary, the method includes the steps of firstly cutting a poster picture marketed through an e-mail into a plurality of sub-pictures by using a graphic drawing tool, then using a third party picture identification tool to transfer each cut sub-picture, extracting characters and patterns from each sub-picture, then combining with a rich text tool to adjust contents and patterns, scaling length attributes and width attributes included in HTML codes of each sub-picture according to a preset scaling rule, and merging the scaled HTML codes of each sub-picture to obtain an HTML file of the edited poster picture. Therefore, the user can modify the contents such as the text style in the e-mail marketing poster picture and the like according to the actual service scene and then integrate the contents into the HTML file, thereby realizing the logic of generating the editable e-mail marketing poster and improving the use experience of the user. The technical problems that text content in an e-mail marketing poster picture cannot be extracted and the content and the style are modified in the prior art are solved.
Exemplary apparatus
Fig. 2 is a schematic structural diagram of a processing device 200 for poster pictures according to an exemplary embodiment of the present invention. As shown in fig. 2, the apparatus includes:
an obtaining module 210, configured to obtain parameters of a poster picture marketed through email;
a cutting module 220, configured to cut the poster picture into a plurality of sub-pictures using a graphic drawing tool based on various parameters;
an identification module 230 for identifying the content and style in each sub-picture using a third party picture identification tool;
the editing module 240 is configured to edit the content and style in each identified sub-picture by using a rich text editor, so as to generate HTML codes of each sub-picture;
the merging module 250 is configured to scale the length attribute and the width attribute included in the HTML code of each sub-picture according to a preset scaling rule, and merge the scaled HTML codes of each sub-picture to obtain the HTML file of the edited poster picture.
Optionally, the acquiring module 210 is specifically configured to:
receiving a poster picture transmitted by a user terminal through a background interface;
dragging an X coordinate axis and a Y coordinate axis of the poster picture through a visual operation interface, and drawing different rows and columns of the poster picture;
adding hyperlinks or anchor points at preset positions of the poster pictures according to the business logic;
and determining various parameters of the poster picture based on the rows and columns of the poster picture and hyperlinks or anchor points at preset positions.
Optionally, the merging module 250 is specifically configured to:
determining a scaling value of the poster picture based on the actual width of the poster picture and the interface width of the visual operation interface;
and scaling the length attribute and the width attribute included in the HTML code of each sub-picture based on the scaling value.
Optionally, the merging module 250 is further specifically configured to:
adding a table in a visual operation interface, defining rows of the table by using tr elements, and defining cells of the table by using td elements;
sequentially placing HTML codes of the scaled sub-pictures into cells of a table according to the arrangement sequence of the sub-pictures in the poster pictures;
and merging the HTML codes in the cells of the table form to obtain an HTML file of the edited poster picture.
The processing device of the poster image in the embodiment of the present invention corresponds to the processing method of the poster image in another embodiment of the present invention, and is not described herein.
Exemplary electronic device
Fig. 3 is a structure of an electronic device provided in an exemplary embodiment of the present invention. As shown in fig. 3, the electronic device 30 includes one or more processors 31 and memory 32.
The processor 31 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 32 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 31 to implement the methods of the software programs of the various embodiments of the present invention described above and/or other desired functions. In one example, the electronic device may further include: an input device 33 and an output device 34, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
In addition, the input device 33 may also include, for example, a keyboard, a mouse, and the like.
The output device 34 can output various information to the outside. The output device 34 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device that are relevant to the present invention are shown in fig. 3 for simplicity, components such as buses, input/output interfaces, etc. being omitted. In addition, the electronic device may include any other suitable components depending on the particular application.
Exemplary computer program product and computer readable storage Medium
In addition to the methods and apparatus described above, embodiments of the invention may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform steps in a method according to various embodiments of the invention described in the "exemplary methods" section of this specification.
The computer program product may write program code for performing operations of embodiments of the present invention in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the invention may also be a computer-readable storage medium, having stored thereon computer program instructions, which when executed by a processor, cause the processor to perform steps in a method according to various embodiments of the invention described in the "exemplary method" section of the description above.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present invention have been described above in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present invention are merely examples and not intended to be limiting, and these advantages, benefits, effects, etc. are not to be considered as essential to the various embodiments of the present invention. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, as the invention is not necessarily limited to practice with the above described specific details.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, so that the same or similar parts between the embodiments are mutually referred to. For system embodiments, the description is relatively simple as it essentially corresponds to method embodiments, and reference should be made to the description of method embodiments for relevant points.
The block diagrams of the devices, systems, apparatuses, systems according to the present invention are merely illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, systems, apparatuses, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
The method and system of the present invention may be implemented in a number of ways. For example, the methods and systems of the present invention may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present invention are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
It is also noted that in the systems, devices and methods of the present invention, components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the invention to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (10)

1. The processing method of the poster picture is characterized by comprising the following steps:
acquiring various parameters of poster pictures marketed through emails;
based on various parameters, cutting the poster picture into a plurality of sub-pictures by using a graph drawing tool;
identifying the content and the style in each sub-picture by using a third party picture identification tool;
editing the content and the style in each identified sub-picture by using a rich text editor, and generating HTML codes of each sub-picture;
and scaling the length attribute and the width attribute included in the HTML codes of each sub-picture according to a preset scaling rule, and merging the scaled HTML codes of each sub-picture to obtain an HTML file of the edited poster picture.
2. The method of claim 1, wherein the obtaining parameters of the poster picture marketed by email comprises:
receiving a poster picture transmitted by a user terminal through a background interface;
dragging an X coordinate axis and a Y coordinate axis of the poster picture through a visual operation interface, and drawing different rows and columns of the poster picture;
adding hyperlinks or anchor points at preset positions of the poster pictures according to the business logic;
and determining various parameters of the poster picture based on the rows and columns of the poster picture and hyperlinks or anchor points at preset positions.
3. The method according to claim 2, wherein scaling the length attribute and the width attribute included in the HTML code of each sub-picture according to a preset scaling rule includes:
determining a scaling value of the poster picture based on the actual width of the poster picture and the interface width of the visual operation interface;
and scaling the length attribute and the width attribute included in the HTML code of each sub-picture based on the scaling value.
4. A method according to claim 3, wherein the merging the HTML codes of the scaled sub-pictures to obtain the HTML file of the edited poster picture includes:
adding a table in a visual operation interface, defining rows of the table by using tr elements, and defining cells of the table by using td elements;
sequentially placing HTML codes of the scaled sub-pictures into cells of a table according to the arrangement sequence of the sub-pictures in the poster pictures;
and merging the HTML codes in the cells of the table form to obtain an HTML file of the edited poster picture.
5. A processing apparatus for poster pictures, comprising:
the acquisition module is used for acquiring various parameters of the poster pictures marketed through the emails;
the cutting module is used for cutting the poster picture into a plurality of sub-pictures by using a graph drawing tool based on various parameters;
the identification module is used for identifying the content and the style in each sub-picture by using a third party picture identification tool;
the editing module is used for editing the content and the style in each identified sub-picture by using a rich text editor and generating HTML codes of each sub-picture;
and the merging module is used for scaling the length attribute and the width attribute included in the HTML codes of each sub-picture according to a preset scaling rule, merging the scaled HTML codes of each sub-picture, and obtaining the HTML file of the edited poster picture.
6. The apparatus of claim 5, wherein the obtaining module is specifically configured to:
receiving a poster picture transmitted by a user terminal through a background interface;
dragging an X coordinate axis and a Y coordinate axis of the poster picture through a visual operation interface, and drawing different rows and columns of the poster picture;
adding hyperlinks or anchor points at preset positions of the poster pictures according to the business logic;
and determining various parameters of the poster picture based on the rows and columns of the poster picture and hyperlinks or anchor points at preset positions.
7. The apparatus of claim 6, wherein the combining module is specifically configured to:
determining a scaling value of the poster picture based on the actual width of the poster picture and the interface width of the visual operation interface;
and scaling the length attribute and the width attribute included in the HTML code of each sub-picture based on the scaling value.
8. The apparatus of claim 7, wherein the combining module is further specifically configured to:
adding a table in a visual operation interface, defining rows of the table by using tr elements, and defining cells of the table by using td elements;
sequentially placing HTML codes of the scaled sub-pictures into cells of a table according to the arrangement sequence of the sub-pictures in the poster pictures;
and merging the HTML codes in the cells of the table form to obtain an HTML file of the edited poster picture.
9. A computer readable storage medium storing a computer program for performing the method of any one of the preceding claims 1-4.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method of any of the preceding claims 1-4.
CN202310935085.1A 2023-07-28 2023-07-28 Poster picture processing method and device, electronic equipment and storage medium Pending CN116661667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310935085.1A CN116661667A (en) 2023-07-28 2023-07-28 Poster picture processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310935085.1A CN116661667A (en) 2023-07-28 2023-07-28 Poster picture processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116661667A true CN116661667A (en) 2023-08-29

Family

ID=87712162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310935085.1A Pending CN116661667A (en) 2023-07-28 2023-07-28 Poster picture processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116661667A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258832A1 (en) * 2013-03-11 2014-09-11 Dartmouth Journal Services, Inc. Computer Implemented System and Method for Author Editing of XML Documents With Structured Element Protection
CN109710783A (en) * 2018-12-10 2019-05-03 珠海格力电器股份有限公司 Picture loading method and device, storage medium and server
CN109783094A (en) * 2018-12-15 2019-05-21 深圳壹账通智能科技有限公司 Front end page generation method, device, computer equipment and storage medium
CN113849111A (en) * 2021-09-27 2021-12-28 联想(北京)有限公司 Image processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258832A1 (en) * 2013-03-11 2014-09-11 Dartmouth Journal Services, Inc. Computer Implemented System and Method for Author Editing of XML Documents With Structured Element Protection
CN109710783A (en) * 2018-12-10 2019-05-03 珠海格力电器股份有限公司 Picture loading method and device, storage medium and server
CN109783094A (en) * 2018-12-15 2019-05-21 深圳壹账通智能科技有限公司 Front end page generation method, device, computer equipment and storage medium
CN113849111A (en) * 2021-09-27 2021-12-28 联想(北京)有限公司 Image processing method and device

Similar Documents

Publication Publication Date Title
US20210149842A1 (en) System and method for display of document comparisons on a remote device
EP2883155A2 (en) E-reader systems
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
TW201423554A (en) Conversion of non-book documents for consistency in e-reader experience
CN113254815A (en) Document processing method, page processing method and equipment
KR20050052421A (en) Creative method and active viewing method for a electronic document
US20220164408A1 (en) System and method of integrating collaboration tools
CN111915705A (en) Picture visual editing method, device, equipment and medium
CN106776994B (en) Application method and system of engineering symbols in engineering report forms and web pages
CN103577496B (en) A kind of display methods and device of Email
CN112328564A (en) Special resource sharing method and device and electronic equipment
CN104156421B (en) The page shows method, apparatus and system
CN113220381A (en) Click data display method and device
US20180341638A1 (en) Providing suggested diagrammatic representations of user entered textual information
US8913076B1 (en) Method and apparatus to improve the usability of thumbnails
CN117750050A (en) Information processing method and device based on large language model and electronic equipment
CN116661667A (en) Poster picture processing method and device, electronic equipment and storage medium
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN115329720A (en) Document display method, device, equipment and storage medium
CN112417345B (en) Rendering method, rendering device, electronic equipment and storage medium
CN113971253A (en) Webpage file generation method, device, equipment and storage medium
CN104391829B (en) A kind of method and device for realizing multimedia messages and text mixing
CN111782309A (en) Method and device for displaying information and computer readable storage medium
CN111625740A (en) Image display method, image display device and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230829