CN105488049A - Webpage image analysis method and apparatus and browser - Google Patents

Webpage image analysis method and apparatus and browser Download PDF

Info

Publication number
CN105488049A
CN105488049A CN201410475088.2A CN201410475088A CN105488049A CN 105488049 A CN105488049 A CN 105488049A CN 201410475088 A CN201410475088 A CN 201410475088A CN 105488049 A CN105488049 A CN 105488049A
Authority
CN
China
Prior art keywords
image
web page
image analysis
page image
browser
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
CN201410475088.2A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410475088.2A priority Critical patent/CN105488049A/en
Publication of CN105488049A publication Critical patent/CN105488049A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a webpage image analysis method and apparatus and a browser. The webpage image analysis method comprises the following steps: obtaining a webpage image and image parameters of the webpage image; looking for and loading an image analysis library corresponding to the webpage image; judging whether the webpage image is in a format analysable for the image analysis library or not; when the webpage image is in the format analysable for the image analysis library, transmitting the image parameters to the image analysis library; and analyzing the image parameters. The image analysis library can realize data transmission with the browser and analyze the webpage image. After the image parameters of the webpage image are obtained, whether the image is in the format analysable for the image analysis library or not can be judged, and if the image is the format analysable for the image analysis library, the image parameters are transmitted to the image analysis library for processing. With the adoption of image analysis logic provided by the invention, the browser can analyze webpage images in any format, so that the images can be normally displayed.

Description

Web page image analytic method, device and browser
Technical field
The present invention relates to Computer Applied Technology field, be specifically related to a kind of Web page image analytic method, device and browser.
Background technology
Along with the fast development of Internet technology, the type of the browser that different information service firms provides gets more and more, and user can carry out info web according to the use habit selection browser of oneself and browse.And interactive and attractive in appearance in order to increase, the picture that all can design many finenesses in present webpage is browsed for user.On webpage, the form kind of picture also has a lot, such as PNG form, jpeg format, BMP form etc.
But different browsers, due to reasons such as himself restrictions, can not support the picture of each form.Therefore, often there will be when browsing webpage, can not the situation of normal display web page epigraph, the online affecting user is experienced.
Summary of the invention
The embodiment of the present invention provides a kind of Web page image analytic method, device and browser, enables various format picture on browser analyzing web page, normally to show.
For this reason, the invention provides a kind of Web page image analytic method, comprise the steps:
Obtain the image parameter of Web page image and described Web page image;
Search and load the image analysis storehouse corresponding with described Web page image;
Judge whether described Web page image is the form that described image analysis storehouse can be resolved;
When described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse;
Dissection process is carried out to described image parameter.
The present invention also provides another kind of Web page image analytic method, comprises the steps:
Load image resolves storehouse;
Obtain the image parameter of Web page image and described Web page image;
Judge whether described Web page image is the form that described image analysis storehouse can be resolved;
When described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse;
Dissection process is carried out to described image parameter.
The present invention also provides a kind of Web page image resolver, comprising:
Acquisition module, for obtaining the image parameter of Web page image and described Web page image;
Load-on module, for searching and loading the image analysis storehouse corresponding with described Web page image;
Judge module, for judging whether described Web page image is the form that described image analysis storehouse can be resolved;
Transport module, when described judge module judge described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse;
Parsing module, carries out dissection process to described image parameter.
The present invention also provides a kind of browser, comprises browser kernel and above-mentioned image analysis apparatus, and described image analysis apparatus is used for resolving Web page image.
Technique scheme of the present invention has the following advantages compared to existing technology:
Web page image analytic method of the present invention, device and browser, in Web page image analytic method wherein, after the image parameter obtaining Web page image and described Web page image, search and load the image analysis storehouse corresponding with described Web page image, judge that described Web page image is after the form that can resolve of described image analysis storehouse, described image parameter is sent to described image analysis storehouse and carries out dissection process.After adopting the such scheme in the present invention, owing to being loaded with the image analysis storehouse corresponding with Web page image, therefore no matter Web page image is any form, and dissection process accurately all can be carried out to it in the image analysis storehouse loaded.And browser of the present invention, owing to comprising above-mentioned Web page image resolver, therefore, it is possible to resolve the image of the various forms on webpage, and normally show.
Accompanying drawing explanation
In order to make content of the present invention be more likely to be clearly understood, below according to a particular embodiment of the invention and by reference to the accompanying drawings, the present invention is further detailed explanation, wherein:
Fig. 1 is the process flow diagram of Web page image analytic method described in one embodiment of the invention;
Fig. 2 is the process flow diagram of Web page image analytic method described in one embodiment of the invention;
Fig. 3 is the process flow diagram of Web page image analytic method described in one embodiment of the invention;
The method flow diagram that described in Fig. 4 one embodiment of the invention, image analysis storehouse processes image parameter;
Fig. 5 is the theory diagram of Web page image resolver described in one embodiment of the invention.
Embodiment
Web page image analytic method, device and browser that following examples of the present invention provide, be applied in the system comprising user side and server.Wherein, user side is provided with browser in the present invention and image analysis apparatus, stores the image of the various forms browsed for browser at server end.Wherein, user side can be the various terminal devices that computing machine, panel computer, mobile phone etc. can install browser.When user side browses webpage by browser, the image that server end stores is supplied to user side by webpage.User side utilizes the image analysis apparatus in the present invention to resolve Web page image, normally can be shown to user.The present invention can be applied in any one operating system, as Windows sequence of maneuvers system, Unix sequence of maneuvers system etc.Wherein involved browser also without any restriction, such as Trident kernel browser, Chrome kernel browser, be integrated with Chrome kernel and Trident kernel browser etc. all passable.
Embodiment 1
Present embodiments provide a kind of Web page image analytic method, as shown in Figure 1, comprise the steps:
S11: load image resolves storehouse.
S12: the image parameter obtaining Web page image and described Web page image.
S13: judge whether described Web page image is the form that described image analysis storehouse can be resolved.
S14: when described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse.
S15: dissection process is carried out to described image parameter.
Wherein, in described step S11, the step that described load image resolves storehouse completes in the process of installing browser or upgrading browser.Storehouse can be resolved for WebP format-pattern in the described image analysis storehouse loaded, and JPG format-pattern resolves storehouse, and storehouse etc. is resolved in jpeg format image analysis storehouse, PNG format-pattern.WebP is a kind of picture format, identical with picture formats such as JPEG, JPG, when picture quality is identical, the size of WebP format-pattern is less than jpeg format image by 34%, it can allow webpage map file effectively compress, and does not affect again picture format compatibility and actual sharpness simultaneously.
The image analysis storehouse of described loading can be a kind of parsing storehouse of form, also can be loaded with multiple image analysis storehouse simultaneously.The equal corresponding a kind of picture format in each image analysis storehouse, such as, PNG form, JPG form, jpeg format, WebP form etc.The image analysis storehouse of some format-patterns is had to be originally just load in system, such as in systems in which, itself just to load the image analysis storehouse of JPG form, jpeg format, when so performing the such scheme in the present embodiment in reality, just can load existing image analysis storehouse.
Adopt such scheme, just image analysis storehouse had been loaded before acquisition Web page image, so just directly can judge whether Web page image is the form that image analysis storehouse can be resolved after acquisition Web page image.It should be noted that, for the image of each form, the image analysis storehouse needing to be loaded with in an operating system for this form just can complete the parsing to this image.Therefore, if in described step S13, described Web page image is not the form that described image analysis storehouse can be resolved, then illustrate and also lack the image analysis storehouse corresponding with this Web page image form in an operating system, now can leap to end step, also can reload the image analysis storehouse corresponding with this form.
In such scheme, in described step S12, the method obtaining the image parameter of Web page image and described Web page image is same as the prior art, no longer describes in detail at this.Image parameter wherein comprises image file name, picture material, view data etc.
The replaceable mode of one as said method, as shown in Figure 2, described Web page image analytic method, can also adopt following steps:
S21: the image parameter obtaining Web page image and described Web page image.
S22: search and load the image analysis storehouse corresponding with described Web page image.
S23: described image parameter is transferred to described image analysis storehouse.
S24: dissection process is carried out to described image parameter.
Comparison diagram 1 and Fig. 2 known, load image is resolved the step in storehouse and is obtained the step of image parameter of Web page image and described Web page image, and the sequencing of the two can be arbitrary.
The method shown in Fig. 2 of selection, after the image parameter obtaining Web page image and described Web page image, the Format Type of Web page image just can be determined according to image parameter, can by the suffix determination picture format of image file name, the suffix of such as image file name is .jpg, then can determine that image is JPG form.After determining picture format, search and load the image analysis storehouse corresponding with this picture format.Adopt in this way, in theory, described Web page image form must be the form can resolved by described image analysis storehouse.Therefore, directly described image parameter can be transferred to described image analysis storehouse to resolve.
In practical operation, clear and definite picture format can be carried out according to all image parameters of Web page image, this mode needs to carry out multiple judgement, such as judge the suffix of image file name, judge picture material, judge view data have the beginning several of the data of some images to be fixing, the view data of such as WebP form starts with " RIFF ", this mode accuracy of judgement, but deal with more complicated.In order to speed up processing; also general image parameter can be selected to judge when judging; the suffix name of image file is such as selected to judge picture format; this judgment mode no doubt has less operand and higher efficiency; but its accuracy also can be affected, often have the suffix name marking error of some image files.In this case, the image analysis storehouse loaded in described step S22 may be the format mismatching with Web page image.In order to improve accuracy, as shown in Figure 3, can carry out a step judgement again after searching and load the image analysis storehouse corresponding with described Web page image, namely whole process is:
S31: the image parameter obtaining Web page image and described Web page image.
S32: search and load the image analysis storehouse corresponding with described Web page image.
S33: judge whether described Web page image is the form that described image analysis storehouse can be resolved.
S34: when described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse.
S35: dissection process is carried out to described image parameter.
In described step S33, judge further Web page image be whether described image analysis storehouse can resolve form time, its image parameter selected with preliminary judge time image parameter not identical.If select image file name when tentatively judging Web page image form, can other parameters such as view data be selected during so follow-up further judgement.
The such scheme provided in the present embodiment, the step that described load image resolves storehouse completes in the process of installing browser or upgrading browser.Because loaded image analysis storehouse is unexistent in origin operation system, the image analysis storehouse after therefore loading with how can mate between browser that namely to realize that normal data transmit be very crucial.In order to ensure that loaded image analysis storehouse and browser can match, in the present embodiment, described load image is resolved in the step in storehouse and is also comprised: the step generating the image analysis bank interface that the data for realizing between browser and described image analysis storehouse are transmitted, described interface comprises form and judges interface and data-processing interface, and described interface also comprises resource realizing interface.
After generating the image analysis bank interface that the data for realizing between browser and described image analysis storehouse transmit, the data such as the image parameter of acquisition just can be sent to image analysis storehouse by above-mentioned interface by browser, resolve for image analysis storehouse.During specific implementation, judge whether described Web page image is in the step of the form that described image analysis storehouse can be resolved, and judges Interface realization by calling described form; Describedly described image parameter being transferred in the step in described image analysis storehouse, realizing by calling described data-processing interface.
As preferred embodiment, the above-mentioned Web page image analytic method in the present embodiment, also comprises the step of releasing resource.Resource wherein refers to the resource such as CPU, internal memory, broadband utilization factor.When the dissection process of image completes, then by above-mentioned steps releasing resource, therefore releasing resource is just equivalent to the end representing whole flow process, and now image can accurately show by browser.In the step of described releasing resource, realize by calling described resource realizing interface.
Adopt the such scheme in the present embodiment, browser can be made can both to carry out dissection process, normally to show to the image of any form on webpage.
Embodiment 2
The Web page image analytic method that the present embodiment provides, on the basis of embodiment 1, described browser is the browser of non-Chrome kernel, and described Web page image form is WebP form, and described image analysis storehouse is the image analysis storehouse of WebP form.
WebP is a kind of picture format, identical with picture formats such as JPEG, JPG.WebP form is that a kind of lossy compression method utilizes predictive coding.The main advantage of this form is high-level efficiency.When picture quality is identical, the size of WebP format-pattern is less than jpeg format image by 34%, and it can allow webpage map file effectively compress, and does not affect again picture format compatibility and actual sharpness simultaneously.Therefore, in Web, use the image of WebP form, can significantly reduce bandwidth occupancy and web page loading time, for user brings better experience, for service provider reduces bandwidth cost.
But the image of current WebP form can only be supported by the browser of Chrome kernel, and most of browser all cannot support the image of WebP form, this part user use Web Time Bandwidth take with web page loading time on not there is advantage.And by the such scheme in the present embodiment, the browser of any kernel can be made all can to resolve the image of WebP form, save bandwidth occupancy and web page loading time.
Illustrate for the browser of the Trident kernel in Windows system, for the image on webpage, provide support to picture format and parsing by interface IImageDecodeFilter.IimageDecodeFilter is the interface that Windows is exclusively used in image procossing, and the support to picture formats such as PNG, JPEG, BMP that the MSHTML.dll that Windows system carries is built-in is realized by interface IImageDecodeFilter.
In the process of installing browser or upgrading browser, load the image analysis storehouse of WebP form.This load step comprises the registration process relevant configuration in the image analysis storehouse of WebP form and status information are written in the registration table of operating system, and this registration process upgrades in the process of browser and complete installing browser or upgrading.When there being registration table, operating system just can obtain necessary information and carry out the demand that the corresponding application program of operation and control correctly responds parsing corresponding format image.The function that the image analysis storehouse loading the WebP form successfully can realize and Chrome kernel browser the image analysis storehouse of the WebP form in an operating system function that can realize consistent.But owing in the present embodiment being the browser image analysis storehouse of this WebP form being applied to Trident kernel, therefore image analysis storehouse and browser in order to ensure WebP form can match, need the interface of image analysis storehouse realization to the browser of Trident kernel utilizing WebP form, described interface comprises form and judges interface, data-processing interface and resource realizing interface.Data between the image analysis storehouse that can realize browser and WebP form by calling different interfaces are transmitted, and image analysis storehouse is just able to carry out dissection process to image parameter.
Particularly, the process that the image analysis storehouse of described WebP form processes image parameter as shown in Figure 4, comprises the steps:
S41: receive image parameter, described image parameter comprises: image file name, picture material, view data.
S42: image parameter is converted to general format data, described general format data is used for obtaining for described browser and being converted into displayable image, and preferred described general format is RGBA form.
After acquisition image parameter, system can be converted into binary data stream, what namely image analysis storehouse directly received is binary data stream, this binary data stream can be first a kind of general data layout by image analysis storehouse, can obtain for browser and be converted into the image that can normally show after converting, browser just can normally show the image of WebP form thus.
Technical scheme in the present embodiment, the browser going for all non-Chrome kernels is such as integrated with the browser of Chrome kernel and Trident kernel.The browser that originally can not show the support of WebP format-pattern all can realize the parsing to WebP format-pattern.By such scheme, make the user of the browser of other non-Chrome kernels can use the image of WebP form in Web, to reach the object reducing bandwidth occupancy and net load time, for user brings better experience, for service provider reduces bandwidth cost.
Embodiment 3
The present embodiment provides a kind of Web page image resolver, comprises acquisition module, load-on module, transport module and parsing module.Wherein:
Described acquisition module, for obtaining the image parameter of Web page image and described Web page image.
Described load-on module, for searching and loading the image analysis storehouse corresponding with described Web page image.
Described transport module, transfers to described image analysis storehouse by described image parameter.
Described parsing module, carries out dissection process to described image parameter.
After described acquisition module gets image parameter, the Format Type of Web page image just can be determined according to image parameter, such as can by the suffix determination picture format of image file name, the suffix as image file name is .jpg, then can determine that image is JPG form.After determining picture format, load-on module is searched and is loaded the image analysis storehouse corresponding with this picture format.Adopt in this way, in theory, described Web page image form must be the form can resolved by described image analysis storehouse.Therefore, directly described image parameter can be transferred to described image analysis storehouse to resolve.
In practical operation, clear and definite picture format can be carried out according to all image parameters, this mode needs to carry out multiple judgement, such as judge the suffix of image file name, judge picture material, judge view data have the beginning several of the data of some images to be fixing, the view data of such as WebP form starts with " RIFF ", this mode accuracy of judgement, but deal with more complicated.In order to speed up processing; general image parameter is selected to judge when also can judge again; the suffix name of image file is such as selected to judge picture format; this judgment mode no doubt has less operand and higher efficiency; but its accuracy also can be affected, often have the suffix name marking error of some image files.In this case, the image analysis storehouse loaded in load-on module may be the format mismatching with Web page image.In order to improve accuracy, as shown in Figure 5, described Web page image resolver comprises acquisition module, load-on module, judge module, transport module and parsing module.Wherein:
Described acquisition module, obtains the image parameter of Web page image and described Web page image.
Described load-on module, for searching and loading the image analysis storehouse corresponding with described Web page image.
Described judge module, judges whether described Web page image is the form that described image analysis storehouse can be resolved.
Described transport module, when described judge module judge described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse.
Described parsing module, carries out dissection process to described image parameter.
Described judge module judge Web page image be whether described image analysis storehouse can resolve form time, its image parameter selected with preliminary judge time image parameter not identical.If select image file name when tentatively judging Web page image form, can other parameters such as view data be selected during so follow-up further judgement.
Because loaded image analysis storehouse is unexistent in origin operation system, the image analysis storehouse after therefore loading with how can mate between browser that namely to realize that normal data transmit be very crucial.In order to ensure that loaded image analysis storehouse and browser can match, in the present embodiment, described load-on module also comprises interface and generates submodule, generate the image analysis bank interface transmitted for the data realized between browser and described image analysis storehouse, described interface comprises form and judges interface and data-processing interface, and described interface also comprises resource realizing interface.
After generating the image analysis bank interface that the data for realizing between browser and described image analysis storehouse transmit, the data such as the image parameter of acquisition just can be sent to image analysis storehouse by above-mentioned interface by browser, resolve for image analysis storehouse.Wherein, described judge module calls described form and judges that interface judges whether described Web page image is the form that described image analysis storehouse can be resolved.Described transport module calls described data-processing interface and described image parameter is transferred to described image analysis storehouse.
As preferred embodiment, the described interface that described interface generates submodule generation also comprises resource realizing interface, further described Web page image resolver also comprises resource release module, releasing resource, and described resource release module is by calling described resource realizing interface releasing resource.Resource wherein refers to the resource such as CPU, internal memory, broadband utilization factor.When the dissection process of image completes, then by above-mentioned steps releasing resource, therefore releasing resource is just equivalent to the end representing whole flow process, and now image can accurately show by browser.
Adopt the such scheme in the present embodiment, browser can be made can both to carry out dissection process, normally to show to the image of any form on webpage.
Embodiment 4
The Web page image resolver that the present embodiment provides, on the basis of embodiment 3, described browser is the browser of non-Chrome kernel, and described Web page image form is WebP form, and described image analysis storehouse is the image analysis storehouse of WebP form.In Web, use the image of WebP form, can significantly reduce bandwidth occupancy and web page loading time, for user brings better experience, for service provider reduces bandwidth cost.
Illustrate for the browser of Trident kernel, in the process of installing browser or upgrading browser, by described load-on module, the image analysis storehouse of described WebP form is carried out registration and install.The relevant configuration in the image analysis storehouse of WebP form and status information are written to the registration process in the registration table of operating system by this load-on module, and this registration process completes in the process of installing browser or upgrading renewal browser.When there being registration table, operating system just can obtain necessary information and carry out the demand that the corresponding application program of operation and control correctly responds parsing corresponding format image.
The image analysis storehouse loading the WebP form successfully can be resolved the image of WebP form.Owing in the present embodiment being the browser image analysis storehouse of this WebP form being applied to Trident kernel, therefore in order to the browser in the image analysis storehouse and Trident kernel that ensure WebP form can match, need the interface of image analysis storehouse realization to the browser of Trident kernel utilizing WebP form, described interface comprises form and judges interface, data-processing interface and resource realizing interface.The data that can realize between the browser of Trident kernel and the image analysis storehouse of WebP form by calling different interfaces are transmitted, and image analysis storehouse is just able to carry out dissection process to image parameter.
Particularly, described parsing module comprises the process that described image parameter carries out dissection process: described image parameter is converted to general format data, and described general format data is used for obtaining for described browser and being converted into displayable image.Preferred described general format is RGBA form.Wherein said image parameter is the image parameter of the Web page image that described acquisition module gets, and comprises image file name, picture material, view data.
After acquisition image parameter, system can be converted into binary data stream, what namely image analysis storehouse directly received is binary data stream, this binary data stream can be first a kind of general data layout by image analysis storehouse, can obtain for browser and be converted into the image that can normally show after converting, browser just can normally show the image of WebP form thus.
Technical scheme in the present embodiment, the browser going for all non-Chrome kernels is such as integrated with the browser of Chrome kernel and Trident kernel.By such scheme, make the user of the browser of non-Chrome kernel can use the image of WebP form in Web, to reach the object reducing bandwidth occupancy and net load time, for user brings better experience, for service provider reduces bandwidth cost.
Embodiment 5
The present embodiment provides a kind of browser, and comprise browser kernel and the Web page image resolver described in embodiment 3, described image analysis apparatus is for resolving the image on webpage.As previously mentioned, described browser kernel can any one, and the situation as Trident kernel, Chrome kernel or integrated Chrome kernel and Trident kernel is simultaneously all applicable.Adopt the browser in the present embodiment, parsing display can be carried out to the Web page image of any form.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.

Claims (16)

1. a Web page image analytic method, is characterized in that, comprises the steps:
Obtain the image parameter of Web page image and described Web page image;
Search and load the image analysis storehouse corresponding with described Web page image;
Judge whether described Web page image is the form that described image analysis storehouse can be resolved;
When described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse;
Dissection process is carried out to described image parameter.
2. Web page image analytic method according to claim 1, is characterized in that, resolves in the step in storehouse also comprise in described load image:
Generate the step of the image analysis bank interface transmitted for the data realized between browser and described image analysis storehouse, described interface comprises form and judges interface and data-processing interface.
3. Web page image analytic method according to claim 2, is characterized in that, describedly judges whether described Web page image is in the step of the form that described image analysis storehouse can be resolved, and judges Interface realization by calling described form.
4. Web page image analytic method according to claim 2, is characterized in that, described image parameter is transferred in the step in described image analysis storehouse, realizes by calling described data-processing interface.
5. Web page image analytic method according to claim 2, is characterized in that, described synthetic image is resolved in the step of bank interface, and described interface also comprises resource realizing interface.
6. Web page image analytic method according to claim 5, is characterized in that, also comprises the step of releasing resource.
7. Web page image analytic method according to claim 6, is characterized in that, in the step of described releasing resource, realizes by calling described resource realizing interface.
8., according to the arbitrary described Web page image analytic method of claim 2-7, it is characterized in that, described browser is the browser of non-Chrome kernel, and described Web page image form is WebP form, and described image analysis storehouse is the image analysis storehouse of WebP form.
9., according to the arbitrary described Web page image analytic method of claim 1-8, it is characterized in that, the step of described image parameter being carried out to dissection process comprises:
Image parameter is converted to general format data, and described general format data is used for obtaining for browser and being converted into displayable image.
10. Web page image analytic method according to claim 9, is characterized in that, described general format is RGBA form.
11. 1 kinds of Web page image analytic methods, is characterized in that, comprise the steps:
Load image resolves storehouse;
Obtain the image parameter of Web page image and described Web page image;
Judge whether described Web page image is the form that described image analysis storehouse can be resolved;
When described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse;
Dissection process is carried out to described image parameter.
12. 1 kinds of Web page image resolvers, is characterized in that, comprising:
Acquisition module, for obtaining the image parameter of Web page image and described Web page image;
Load-on module, for searching and loading the image analysis storehouse corresponding with described Web page image;
Judge module, for judging whether described Web page image is the form that described image analysis storehouse can be resolved;
Transport module, when described judge module judge described Web page image be described image analysis storehouse can resolve form time, described image parameter is transferred to described image analysis storehouse;
Parsing module, carries out dissection process to described image parameter.
13. Web page image resolvers according to claim 12, it is characterized in that, described load-on module also comprises:
Interface generates submodule, and generate the image analysis bank interface that the data for realizing between browser and described image analysis storehouse are transmitted, described interface comprises form and judges interface and data-processing interface.
14. Web page image resolvers according to claim 13, is characterized in that, described judge module calls described form and judges that interface judges whether described Web page image is the form that described image analysis storehouse can be resolved.
15. Web page image resolvers according to claim 13, is characterized in that, described transport module calls described data-processing interface and described image parameter is transferred to described image analysis storehouse.
16. 1 kinds of browsers, is characterized in that, comprise browser kernel and image analysis apparatus according to claim 12, and described image analysis apparatus is used for resolving Web page image.
CN201410475088.2A 2014-09-17 2014-09-17 Webpage image analysis method and apparatus and browser Pending CN105488049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410475088.2A CN105488049A (en) 2014-09-17 2014-09-17 Webpage image analysis method and apparatus and browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410475088.2A CN105488049A (en) 2014-09-17 2014-09-17 Webpage image analysis method and apparatus and browser

Publications (1)

Publication Number Publication Date
CN105488049A true CN105488049A (en) 2016-04-13

Family

ID=55675030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410475088.2A Pending CN105488049A (en) 2014-09-17 2014-09-17 Webpage image analysis method and apparatus and browser

Country Status (1)

Country Link
CN (1) CN105488049A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598567A (en) * 2016-11-03 2017-04-26 广州凯耀资产管理有限公司 Method and device for displaying page elements on terminal equipment
CN107066609A (en) * 2017-04-27 2017-08-18 北京京东尚科信息技术有限公司 Image display method and device
CN107977371A (en) * 2016-10-21 2018-05-01 阿里巴巴集团控股有限公司 Requesting method, display methods and the client of page elements
CN108280100A (en) * 2017-01-17 2018-07-13 广州市动景计算机科技有限公司 A kind of web page resources access method and device
CN110572715A (en) * 2019-09-24 2019-12-13 四川长虹电器股份有限公司 Method for solving problem of webp blockage during Android TV playing
CN112016031B (en) * 2020-10-16 2021-01-12 上海洋漪信息技术有限公司 Webpage optimization method for WKWebView component
CN112650957A (en) * 2019-10-11 2021-04-13 腾讯科技(深圳)有限公司 Image display method, image display device, computer-readable storage medium, and computer apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101116112A (en) * 2005-01-04 2008-01-30 新世代株式会社 Plotting device and plotting method
CN101216828A (en) * 2007-12-27 2008-07-09 北大方正集团有限公司 Image file conversion method and apparatus
CN101311921A (en) * 2007-05-25 2008-11-26 佛山市顺德区顺达电脑厂有限公司 Method and device for net page picture data conversion and display on electronic device display
CN102521864A (en) * 2011-12-21 2012-06-27 北京像素软件科技股份有限公司 Method for simulating display screen effect in game
CN103065349A (en) * 2012-12-31 2013-04-24 北京东方艾迪普科技发展有限公司 Data render method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101116112A (en) * 2005-01-04 2008-01-30 新世代株式会社 Plotting device and plotting method
CN101311921A (en) * 2007-05-25 2008-11-26 佛山市顺德区顺达电脑厂有限公司 Method and device for net page picture data conversion and display on electronic device display
CN101216828A (en) * 2007-12-27 2008-07-09 北大方正集团有限公司 Image file conversion method and apparatus
CN102521864A (en) * 2011-12-21 2012-06-27 北京像素软件科技股份有限公司 Method for simulating display screen effect in game
CN103065349A (en) * 2012-12-31 2013-04-24 北京东方艾迪普科技发展有限公司 Data render method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ORDEAL: "《https://www.xuebuyuan.com/678382.html》", 24 August 2013 *
PLAYBAR: "《https://blog.csdn.net/hgl868/article/details/744448》", 10 April 2012 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977371A (en) * 2016-10-21 2018-05-01 阿里巴巴集团控股有限公司 Requesting method, display methods and the client of page elements
CN106598567A (en) * 2016-11-03 2017-04-26 广州凯耀资产管理有限公司 Method and device for displaying page elements on terminal equipment
CN108280100A (en) * 2017-01-17 2018-07-13 广州市动景计算机科技有限公司 A kind of web page resources access method and device
CN107066609A (en) * 2017-04-27 2017-08-18 北京京东尚科信息技术有限公司 Image display method and device
CN110572715A (en) * 2019-09-24 2019-12-13 四川长虹电器股份有限公司 Method for solving problem of webp blockage during Android TV playing
CN112650957A (en) * 2019-10-11 2021-04-13 腾讯科技(深圳)有限公司 Image display method, image display device, computer-readable storage medium, and computer apparatus
CN112650957B (en) * 2019-10-11 2023-11-21 腾讯科技(深圳)有限公司 Image display method, apparatus, computer-readable storage medium, and computer device
CN112016031B (en) * 2020-10-16 2021-01-12 上海洋漪信息技术有限公司 Webpage optimization method for WKWebView component

Similar Documents

Publication Publication Date Title
CN105488049A (en) Webpage image analysis method and apparatus and browser
EP2916243B1 (en) Method, apparatus, server and system for implementing web application
US9507480B1 (en) Interface optimization application
CN104106048A (en) Using application cache to update resources of installed applications
US20130036196A1 (en) Method and system for publishing template-based content
CN110020329B (en) Method, device and system for generating webpage
CN110442815B (en) Page generation method, system, device and computer readable storage medium
US20170192941A1 (en) Computer-Automated Generation of Application Deep Links
US9614901B2 (en) Data infrastructure for providing interconnectivity between platforms, devices, and operating systems
CN104093075A (en) Portal page updating method and system
KR20120101841A (en) Method and apparatus for linking application and browser
US20170052773A1 (en) Application installs using remote applications
US20170017380A1 (en) Mobile enabling a web application developed without mobile rendering capabilities
CN105635284A (en) Page display method and terminal
CN109684573A (en) Target Photo display methods and device, storage medium, electronic equipment
CN104052769A (en) Method, apparatus and system for updating resources contained by mobile terminal application
Brodt et al. The TELAR mobile mashup platform for Nokia internet tablets
US10949176B2 (en) Automatic view generation based on annotations
CN104217021B (en) Reading server, terminal device and its method for showing reading content
CN112052377B (en) Resource recommendation method, device, server and storage medium
RU2595763C2 (en) Method and apparatus for managing load on basis of android browser
Amarasinghe Service worker development cookbook
EP3001311A1 (en) Method for automatically converting web applications into application that can be installed automatically on a plurality of platforms
CN115202673A (en) Application construction method and device based on cloud server and computer equipment
EP2772850A1 (en) Apparatus and method for manufacturing web widget

Legal Events

Date Code Title Description
C06 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

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication