CN110781420A - Editor-based automatic webpage cover generation method and device and storage medium - Google Patents

Editor-based automatic webpage cover generation method and device and storage medium Download PDF

Info

Publication number
CN110781420A
CN110781420A CN201810854247.8A CN201810854247A CN110781420A CN 110781420 A CN110781420 A CN 110781420A CN 201810854247 A CN201810854247 A CN 201810854247A CN 110781420 A CN110781420 A CN 110781420A
Authority
CN
China
Prior art keywords
pictures
editor
picture
cover
effective
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
CN201810854247.8A
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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili 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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN201810854247.8A priority Critical patent/CN110781420A/en
Publication of CN110781420A publication Critical patent/CN110781420A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to an editor-based automatic webpage generating method, device and storage medium, and belongs to the technical field of internet. The method comprises the following steps: reading all pictures in an editor; deleting the invalid pictures according to the reading result, and determining the number of the valid pictures; selecting a matched cover template according to the number of the effective pictures; arranging effective pictures according to the selected cover template to generate a webpage cover; the device comprises a processor and a memory, wherein the memory is stored with a computer program, and the computer program is executed by the processor to realize the automatic webpage generating method based on the editor; the medium is stored with a computer program, and the computer program realizes the automatic webpage generating method based on the editor when being executed by a processor. Compared with the prior art, the invention has the advantages of high matching degree, strong automatic performance, good display effect and the like.

Description

Editor-based automatic webpage cover generation method and device and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to the application field of editors, and specifically relates to an editor-based automatic webpage generating method, device and storage medium.
Background
With the rapid development of internet technology, it is a very common popularization means to edit contents to be published on a web platform through an editor. After editing is completed, in order to facilitate the display of the web page, the editor usually generates a corresponding web page cover according to the content of the web page.
The existing cover generation generally has two main modes, firstly, a user selects a proper picture according to the content of an editor to be used as a webpage cover, and if the user needs to manually select the cover picture to finish the editing of a message when editing the content needing to be issued by a WeChat public number. The other method is to splice all the pictures in the editor together directly to serve as cover content, however, the pictures in the editor may have the problems of non-uniform format, non-standard content and the like, and thus, simple splicing easily causes the problems that the generated cover cannot effectively display the webpage content, the display effect is poor and the like.
Disclosure of Invention
The invention aims to provide a method, a device and a storage medium for automatically generating a webpage cover based on an editor.
The purpose of the invention can be realized by the following technical scheme:
an editor-based automatic webpage cover generation method, comprising the following steps:
(1) reading all pictures in an editor;
(2) deleting the invalid pictures according to the reading result, and determining the number of the valid pictures;
(3) selecting a matched cover template according to the number of the effective pictures;
(4) and arranging effective pictures according to the selected cover template to generate a webpage cover.
Preferably, the step (2) specifically comprises the following steps:
(21) executing duplication removing operation on the read pictures to obtain a duplication-free picture set;
(22) screening according to parameters of pictures in the non-repeated picture set, and dividing the pictures into effective pictures and ineffective pictures;
(23) and deleting the invalid pictures and counting the number of the valid pictures.
Preferably, said step (22) comprises in particular: and traversing all pictures in the non-repeated picture set, judging whether the parameter of each picture exceeds a specified parameter range, if so, marking the picture as an invalid picture, and otherwise, marking the picture as an effective picture.
Preferably, the step (22) further comprises: and comparing the marked effective pictures with the pictures in the copyright library, and marking the pictures with repeated comparison results as invalid pictures.
Preferably, the parameters of the picture include a resolution of the picture, a size of the picture, and a format of the picture.
Preferably, the step (2) further comprises: and (4) judging whether the number of the effective pictures exceeds the maximum threshold value, if so, reducing the number of the effective pictures to the maximum threshold value, and entering the step (3), otherwise, directly entering the step (3).
Preferably, the number of the display pictures in the matched cover template is equal to the number of the effective pictures.
Preferably, the step (4) specifically comprises: and arranging the effective pictures according to the display format of the selected cover template, and arranging the effective pictures of adjacent color systems at similar positions.
An automatic webpage cover generating device comprises a processor and a memory, wherein the memory is stored with a computer program, and the computer program is executed by the processor to realize the automatic webpage cover generating method based on the editor.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the editor-based automatic webpage generation methods described above.
Compared with the prior art, the invention has the following beneficial effects:
(1) according to the method provided by the invention, the pictures in the editor are screened, the invalid pictures are deleted, the appropriate cover template is selected according to the number of the remaining effective pictures, and the effective pictures are arranged according to the template, so that the webpage cover is generated.
(2) When an invalid picture is deleted, firstly, duplicate removal operation is carried out on the picture, no repeated picture is ensured, the display effect is further improved, meanwhile, the subsequent efficiency of picture parameter screening is also improved, and repeated screening of repeated pictures is avoided.
(3) When the invalid picture is determined, the picture parameters are screened, the picture is compared with the content of the copyright library, the infringement picture is marked as the invalid picture, the infringement problem of the front cover is avoided, and the display effect is guaranteed.
(4) When the cover template is selected, the selection is mainly performed according to the number of the effective pictures, but in order to ensure the display effect, when the number of the effective breakthroughs is too large, only part of the effective pictures are selected to generate the cover, and the problem that the cover display effect is poor due to the fact that the number of the pictures is too large is avoided.
Drawings
FIG. 1 is a flowchart illustrating steps of an editor-based method for automatically generating a web page cover according to the present invention;
fig. 2 is a schematic diagram illustrating a process of selecting a template according to an uploaded picture in the embodiment.
Detailed Description
In order to clearly understand the technical contents of the present invention, the following examples are given in detail.
Please refer to fig. 1, which is a flowchart illustrating a method for automatically generating a web page cover based on an editor according to the present invention.
In one embodiment, the method for automatically generating the webpage cover based on the editor comprises the following steps:
(1) reading all pictures in an editor;
(2) deleting the invalid pictures according to the reading result, and determining the number of the valid pictures;
(3) selecting a matched cover template according to the number of the effective pictures;
(4) and arranging effective pictures according to the selected cover template to generate a webpage cover.
Wherein, the step (2) comprises the following steps:
(21) executing duplication removing operation on the read pictures to obtain a duplication-free picture set;
(22) screening according to parameters of pictures in the non-repeated picture set, and dividing the pictures into effective pictures and ineffective pictures;
(23) and deleting the invalid pictures and counting the number of the valid pictures.
The step (22) specifically includes: and traversing all pictures in the non-repeated picture set, judging whether the parameter of each picture exceeds a specified parameter range, if so, marking the picture as an invalid picture, and otherwise, marking the picture as an effective picture. In addition, the step (22) further comprises: and comparing the marked effective pictures with the pictures in the copyright library, and marking the pictures with repeated comparison results as invalid pictures. In the above, the parameters of the picture include the resolution of the picture, the size of the picture, and the format of the picture.
Meanwhile, the step (2) further comprises the following steps: and (4) judging whether the number of the effective pictures exceeds the maximum threshold value, if so, reducing the number of the effective pictures to the maximum threshold value, and entering the step (3), otherwise, directly entering the step (3). And the number of the display pictures in the matched cover template is equal to that of the effective pictures.
And the step (4) specifically comprises the following steps: and arranging the effective pictures according to the display format of the selected cover template, and arranging the effective pictures of adjacent color systems at similar positions.
In addition, the embodiment further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements any one of the above methods for automatically generating a web page cover based on an editor; the editor-based webpage cover automatic generation device comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the editor-based webpage cover automatic generation method is realized.
In practical applications, a specific implementation manner of the method for automatically generating a webpage based on an editor according to the present invention is described by the following embodiments.
Example 1
In this embodiment, after the user uploads the pictures in the editor and finishes editing the web page content, the editor starts to read all the pictures in the web page, and automatically generates a cover by selecting, which includes the following specific processes:
the method comprises the steps that firstly, an editor can judge whether repeated pictures exist in all pictures in a webpage, if so, redundant pictures are deleted, only one picture is reserved, after the pictures without repeated contents are ensured, the editor can screen the pictures from a plurality of dimensions, specifically, picture resolution (whether the pictures are clear), picture size, picture format and the like, and through the screening of the dimensions, the pictures with too low or too high resolution, unqualified size and unqualified picture format are marked as invalid pictures to be deleted, so that the resolution of the effective pictures entering the generated cover meets the requirements, the size and the format both meet the requirements, and the good display effect of the cover is ensured.
After the round of screening is performed, in order to avoid copyright disputes, the remaining effective pictures after screening are compared with the pictures in the copyright library one by one, the infringement pictures are deleted as the invalid pictures, the infringement pictures are prevented from being displayed as a part of the cover, the display effect is further improved, and meanwhile, infringement behaviors are prevented from occurring.
After the deletion is completed, cover templates are determined according to the number of the remaining effective pictures, as shown in fig. 2, the templates are arranged in a corresponding mode according to the number of the pictures, so that the content of the webpage can be well displayed, and the method has good adaptability.
However, under the condition that the number of the effective pictures in the editor is still too large after screening, if the number of the effective pictures exceeds 10, if such templates are reserved in the template library, on one hand, the template library needs a larger storage space, the operation efficiency is reduced, and meanwhile, the display effect is not good, the content of the cover page is not clear due to too many pictures, and the user cannot visually observe the content of the webpage. Therefore, the effective pictures can be screened again at this time, and the number of the reserved effective pictures is determined according to the maximum threshold value of the pictures in the template. The screening may be performed automatically at random, or may be further screening performed manually by the user according to the picture content, and the selection may be performed according to the actual situation. And after the screening is finished, selecting the template according to the number of the reserved pictures.
After the template is selected, the editor can arrange the effective pictures according to the template format according to the effectively broken picture color system, generally speaking, the picture display effect of the adjacent color system is good, the preview cover style is generated, the user can perform corresponding further adjustment according to the preview condition, and the user can also directly confirm that the content is submitted after no problem, and the webpage editing is completed.
In this specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

Claims (10)

1. An editor-based automatic webpage generating method is characterized by comprising the following steps:
(1) reading all pictures in an editor;
(2) deleting the invalid pictures according to the reading result, and determining the number of the valid pictures;
(3) selecting a matched cover template according to the number of the effective pictures;
(4) and arranging effective pictures according to the selected cover template to generate a webpage cover.
2. The method for automatically generating a web page cover based on an editor as claimed in claim 1, wherein the step (2) comprises the following steps:
(21) executing duplication removing operation on the read pictures to obtain a duplication-free picture set;
(22) screening according to parameters of pictures in the non-repeated picture set, and dividing the pictures into effective pictures and ineffective pictures;
(23) and deleting the invalid pictures and counting the number of the valid pictures.
3. The method for automatically generating a web page cover based on an editor as claimed in claim 2, wherein the step (22) comprises: and traversing all pictures in the non-repeated picture set, judging whether the parameter of each picture exceeds a specified parameter range, if so, marking the picture as an invalid picture, and otherwise, marking the picture as an effective picture.
4. The editor-based web page cover automatic generation method of claim 3, wherein the step (22) further comprises: and comparing the marked effective pictures with the pictures in the copyright library, and marking the pictures with repeated comparison results as invalid pictures.
5. The editor-based automatic webpage cover generating method of claim 2, wherein the parameters of the picture comprise a resolution of the picture, a size of the picture, and a format of the picture.
6. The editor-based automatic webpage generating method of claim 2, wherein the step (2) further comprises: and (4) judging whether the number of the effective pictures exceeds the maximum threshold value, if so, reducing the number of the effective pictures to the maximum threshold value, and entering the step (3), otherwise, directly entering the step (3).
7. The method of claim 1, wherein the number of display pictures in the matched cover template is equal to the number of active pictures.
8. The method for automatically generating a web page cover based on an editor as claimed in claim 1, wherein the step (4) comprises: and arranging the effective pictures according to the display format of the selected cover template, and arranging the effective pictures of adjacent color systems at similar positions.
9. An apparatus for automatically generating a web page cover, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is executed by the processor to implement the method for automatically generating a web page cover based on an editor as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the editor-based automatic webpage generating method of any one of claims 1 to 8.
CN201810854247.8A 2018-07-30 2018-07-30 Editor-based automatic webpage cover generation method and device and storage medium Pending CN110781420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810854247.8A CN110781420A (en) 2018-07-30 2018-07-30 Editor-based automatic webpage cover generation method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810854247.8A CN110781420A (en) 2018-07-30 2018-07-30 Editor-based automatic webpage cover generation method and device and storage medium

Publications (1)

Publication Number Publication Date
CN110781420A true CN110781420A (en) 2020-02-11

Family

ID=69382649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810854247.8A Pending CN110781420A (en) 2018-07-30 2018-07-30 Editor-based automatic webpage cover generation method and device and storage medium

Country Status (1)

Country Link
CN (1) CN110781420A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290634A (en) * 2008-06-03 2008-10-22 北京搜狗科技发展有限公司 Method for recognizing repeated miniature, device and its uses in search engine
CN103198116A (en) * 2013-03-29 2013-07-10 东莞宇龙通信科技有限公司 Method and system for displaying folder covers and pictures in folders
CN103702168A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Method of displaying video list and video client
CN104244024A (en) * 2014-09-26 2014-12-24 北京金山安全软件有限公司 Video cover generation method and device and terminal
CN107066596A (en) * 2017-04-19 2017-08-18 北京小米移动软件有限公司 The method and apparatus for generating link information
CN107315929A (en) * 2017-02-10 2017-11-03 苏州丞相文化科技有限公司 A kind of method of Internet picture copyright protection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290634A (en) * 2008-06-03 2008-10-22 北京搜狗科技发展有限公司 Method for recognizing repeated miniature, device and its uses in search engine
CN103198116A (en) * 2013-03-29 2013-07-10 东莞宇龙通信科技有限公司 Method and system for displaying folder covers and pictures in folders
CN103702168A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Method of displaying video list and video client
CN104244024A (en) * 2014-09-26 2014-12-24 北京金山安全软件有限公司 Video cover generation method and device and terminal
CN107315929A (en) * 2017-02-10 2017-11-03 苏州丞相文化科技有限公司 A kind of method of Internet picture copyright protection
CN107066596A (en) * 2017-04-19 2017-08-18 北京小米移动软件有限公司 The method and apparatus for generating link information

Similar Documents

Publication Publication Date Title
WO2017032265A1 (en) Application push method and apparatus, and a serving device
US9600298B2 (en) Active and efficient monitoring of a graphical user interface
US10831985B2 (en) Processing duplicate multimedia content
CN111062903A (en) Automatic processing method and system for image watermark, electronic equipment and storage medium
CN111158697B (en) Method for manufacturing burning mirror image
CN110879780A (en) Page abnormity detection method and device, electronic equipment and readable storage medium
CN104508689A (en) A two-dimension code processing method and a terminal
CN111246289A (en) Video generation method and device, electronic equipment and storage medium
CN111273942A (en) Code generation method, storage medium, electronic device and system
CN111031359B (en) Video playing method and device, electronic equipment and computer readable storage medium
CN112419132A (en) Video watermark detection method and device, electronic equipment and storage medium
CN110874216B (en) Complete code generation method, device, equipment and storage medium
WO2019033660A1 (en) Method and apparatus for determining associated teaching information, teaching device, and storage medium
CN110264442A (en) A kind of integrity check method of watermark, electronic equipment and readable storage medium storing program for executing
CN103514270B (en) Multimedia database scan method and device
CN110781420A (en) Editor-based automatic webpage cover generation method and device and storage medium
WO2024001309A1 (en) Method and apparatus for generating and producing template for infrared thermal image analysis report
CN104765722A (en) Parameter configuration method and device
CN105049934A (en) Programmed video review processing method and device
JP2007221340A (en) Method and device for forming image file
US7706631B2 (en) Method and apparatus for processing image data
CN105025321A (en) Network video processing method and network video server
KR102367574B1 (en) Method for effectively conveying music information in video editing
CN113590564A (en) Data storage method and device, electronic equipment and storage medium
WO2020181903A1 (en) Webpage illustration processing method, system and device, and storage medium

Legal Events

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