CN103942206B - Access network picture, the response method of access request and its device, system - Google Patents

Access network picture, the response method of access request and its device, system Download PDF

Info

Publication number
CN103942206B
CN103942206B CN201310019875.1A CN201310019875A CN103942206B CN 103942206 B CN103942206 B CN 103942206B CN 201310019875 A CN201310019875 A CN 201310019875A CN 103942206 B CN103942206 B CN 103942206B
Authority
CN
China
Prior art keywords
webp
unit
access
format pictures
property value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310019875.1A
Other languages
Chinese (zh)
Other versions
CN103942206A (en
Inventor
舒宏旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201310019875.1A priority Critical patent/CN103942206B/en
Publication of CN103942206A publication Critical patent/CN103942206A/en
Application granted granted Critical
Publication of CN103942206B publication Critical patent/CN103942206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application discloses a kind of method for accessing network picture.This method includes:Preset standard Webp format pictures are obtained, extract the property value of at least one attribute of the normal pictures;Loading renders normal pictures;Judge whether the property value for loading the attribute for rendering preceding extraction is identical with the property value of respective attributes after loading rendering, it is if identical, the access request that network picture is accessed with Webp forms is then sent, receives the response message realization access that network picture is returned with Webp forms;Otherwise the access request that network picture is accessed with the form that can be supported other than Webp forms is sent, receives the access for the response message realization network picture that network picture is returned with corresponding format.The embodiment of the present application also discloses the method for response to network picture access request and corresponding device, system.The embodiment of the present application can improve network picture access (response) efficiency.

Description

Access network picture, the response method of access request and its device, system
Technical field
This application involves technical field of information processing, more particularly to a kind of method for accessing network picture, response to network The method of picture access request and its corresponding device, system.
Background technology
Webp picture formats are a kind of new picture formats occurred in recent years.In the case where picture quality is equivalent, have The memory space that the picture of Webp forms occupies is relative to extended formatting (such as jpeg format, bmp forms, png forms etc.) Picture is less, is significantly reduced in the resource of transmission over networks consumption, transmission time also shortens dramatically.According to test, in lossy compression In the case of, the jpeg format picture of the equal image quality of volume ratio of the picture of Webp forms is small by 25%~34%;In lossless compression In the case of, the png format pictures than being generated with libpng are small by 34% or so, than through the processed png format pictures of pngout It is small by 26%.
The above-mentioned advantage of Webp picture formats is based on, by pro-gaze after the picture release of Webp forms, is especially being provided In the network access environment that source is limited.However, since Webp picture formats are a kind of novel picture formats, most of targets are set It is standby, such as browser, it is to be developed for traditional picture format, exists when accessing network picture and do not support (to render Failure) the problem of, it needs to reload rendering or change picture format after rendering failure, leads to the totality of network picture access Efficiency reduces.It can be seen that the side of a kind of novel access network picture of prior art needs, response to network picture access request Method or device the advantages of to make full use of Webp format pictures, and then improve access (response) network picture in a network environment Efficiency.
Invention content
In order to solve the above technical problems, the embodiment of the present application provides a kind of access network picture, response to network picture is visited It asks the method for request and its corresponding device and system, the advantages of to make full use of Webp format pictures, carries in a network environment Height accesses the efficiency of (response) network picture.
The embodiment of the present application provides a kind of network picture access method.This method includes:
Preset standard Webp format pictures are obtained, extract the attribute of at least one attribute of standard Webp format pictures Value;
Loading renders the standard Webp format pictures;
Judge loading render before extract the attribute property value with loading render after respective attributes property value whether It is identical, if identical, the access request that network picture is accessed with Webp forms is sent, receives and network is returned to Webp forms The response message of piece realizes the access of network picture;If it is not the same, it then sends with can be supported other than Webp forms Form accesses the access request of network picture, receives and returns to network picture with the form that can be supported other than Webp forms Response message realizes the access of network picture.
Preferably, the method further includes:
The property value of respective attributes after the property value of the attribute extracted before judging that loading renders is rendered with loading When identical, setting Webp format pictures support mark, when accessing network picture next time, judge whether Webp format pictures It supports mark, the step of access request of network picture is accessed with Webp forms is sent if it is present performing;If it does not deposit Then performing the step of obtaining preset standard Webp format pictures;And/or
The property value of respective attributes after the property value of the attribute extracted before judging that loading renders is rendered with loading When identical, the message that Webp format pictures can be supported is sent, so that accessed end is according to message setting and access end pair The Webp format pictures answered support mark, and when accessing network picture next time, what reception accessed end returned judges whether Corresponding with access end Webp format pictures support mark as a result, accessing net if it is present performing and sending with Webp forms The step of access request of network picture;If it does not exist, then perform the step of obtaining preset standard Webp format pictures.
It is further preferred that the method further includes:
The display effect of Webp format pictures is detected, judges whether the display effect meets preset condition, if it is not, then Eliminate setting Webp format pictures support mark and/or, send the message that can not be supported of Webp format pictures, so as to The Webp format pictures corresponding with access end that accessed end eliminates setting according to the message support mark.
It is it is further preferred that corresponding after the property value of the attribute extracted before judging that loading renders is rendered to loading When the property value of attribute is identical, access end sets Webp format pictures to support mark in cookie file.
The embodiment of the present application additionally provides a kind of method of response to network picture access request.This method includes:
It receives and sends the supportive detection message of Webp format pictures to access end after access request, obtained with triggering access end Preset standard Webp format pictures are taken, and extract the property value of at least one attribute of standard Webp format pictures;
Access end is received to render the property value extracted before the loading rendering standard Webp format pictures with loading The property value for the respective attributes extracted afterwards be compared whether identical judging result;
If the judging result is identical for property value, with the access request of Webp forms response access end;If institute Judging result is stated to differ for property value, it please with the access of the form that can the be supported response access end other than Webp forms It asks.
Preferably, the method further includes:
In the identical judging result of the property value for receiving access end, Webp format pictures corresponding with access end are set Support mark, instantly during secondary response network picture access request, judged whether after access request is received and access end Corresponding Webp format pictures support mark, if it is present performing with the step of the access request of Webp forms response access end Suddenly;If it does not exist, then the step of performing detection message supportive to access end transmission Webp format pictures;And/or
Instantly during secondary response network picture access request, whether there is after access request is received to access end transmission Webp format pictures support the inquiry message of mark, and the Webp format pictures support mark judging to load wash with watercolours by access end It is set when the property value of respective attributes is identical after the property value of the attribute extracted before dye is rendered with loading, if it is present The step of performing with the access request of Webp forms response access end;Webp lattice are sent if it does not exist, then performing to access end Formula picture it is supportive detection message the step of.
With above method embodiment correspondingly, the embodiment of the present application additionally provide it is a kind of access network picture device. The device includes:Attributes extraction unit, loading rendering unit, determined property unit, the first transmitting element and the first receiving unit, And second transmitting element and the second receiving unit, wherein:
The attributes extraction unit for obtaining preset standard Webp format pictures, extracts standard Webp format pictures At least one attribute property value;
The loading rendering unit renders the standard Webp format pictures for loading;
After the determined property unit, the property value of the attribute extracted before being rendered for judgement loading and loading render Whether the property value of respective attributes is identical, if identical, triggers the first transmitting element;If it is not the same, then triggering second is sent out Send unit;
First transmitting element, for sending the access request that network picture is accessed with Webp forms;
First receiving unit, for receiving the response message realization network picture that network picture is returned with Webp forms Access;
Second transmitting element accesses network picture for sending with the form that can be supported other than Webp forms Access request;
Second receiving unit returns to network picture for receiving with the form that can be supported other than Webp forms Response message realize network picture access.
Preferably, described device further includes:It supports mark setting unit and supports mark judging unit, wherein:
The support mark setting unit, for judging to load the property value for rendering the preceding attribute extracted with adding When the property value of respective attributes is identical after load renders, setting Webp format pictures support mark;
It is described to support mark judging unit, for when accessing network picture next time, judging whether Webp format charts Piece supports mark, if it is present the first transmitting element of triggering;If it does not exist, then triggering attributes extraction unit;
And/or third transmitting element and third receiving unit, wherein:
The third transmitting element, for the property value of the attribute and loading wash with watercolours extracted before judging that loading renders When the property value of respective attributes is identical after dye, send the message that can be supported of Webp format pictures, so as to accessed end according to The message sets Webp format pictures corresponding with access end to support mark;
The third receiving unit, for when accessing network picture next time, receiving judging whether for accessed end return In the presence of Webp format pictures corresponding with access end support mark as a result, if it is present the first transmitting element of triggering;If It is not present, then triggers attributes extraction unit.
It is further preferred that described device further includes display effect detection unit, display effect judging unit and supports Mark eliminates unit and/or the 4th transmitting element, wherein:
The display effect detection unit, for detecting the display effect of Webp format pictures;
The display effect judging unit, for judging whether the display effect meets preset condition, if it is not, then touching Hair supports mark to eliminate unit;
It is described that mark is supported to eliminate unit, support mark for eliminating the Webp format pictures of setting;
4th transmitting element, for when display effect is unsatisfactory for preset condition, sending Webp format pictures cannot The message being enough supported is eliminated the Webp format pictures corresponding with access end set according to the message so as to accessed end and is supported Mark.
The embodiment of the present application additionally provides a kind of device of response to network picture access request.The device includes:Detection disappears Transmitting element, judging result receiving unit, the first response unit and the second response unit are ceased, wherein:
The detection message sending unit, for sending Webp format picture branch to access end after access request is received Holding property detects message, and preset standard Webp format pictures are obtained, and extract standard Webp format pictures to trigger access end The property value of at least one attribute;
The judging result receiving unit will load the rendering standard Webp format picture premises for receiving access end The property value of respective attributes that the property value that takes extracts after being rendered with loading be compared whether identical judgement If as a result, the judging result is identical for property value, the first response unit is triggered, if the judging result is property value It differs, then triggers the second response unit;
First response unit, for the access request of the network photo response access end of Webp forms;
Second response unit, for being visited with the network photo response of the form that can be supported other than Webp forms Ask the access request at end.
In addition, the embodiment of the present application additionally provides a kind of network picture access system.The system includes server and browsing Device, wherein:
The server be used for browser provide preset standard Webp format pictures, be additionally operable to receive browser with With Webp Format network photo responses when Webp forms access the access request of network picture, browser is being received with Webp lattice With can be supported other than Webp forms when the form that can be supported other than formula accesses the access request of network picture The network photo response of form;
The browser includes:Attributes extraction unit, loading rendering unit, determined property unit, the first transmitting element and First receiving unit and the second transmitting element and the second receiving unit, wherein:The attributes extraction unit, for from service Device obtains preset standard Webp format pictures, extracts the property value of at least one attribute of standard Webp format pictures;It is described Rendering unit is loaded, the standard Webp format pictures are rendered for loading;The determined property unit, for judging to load wash with watercolours Whether the property value of respective attributes is identical after the property value of the attribute extracted before dye is rendered with loading, if identical, touches Send out the first transmitting element;If it is not the same, then trigger the second transmitting element;First transmitting element, for sending with Webp Form accesses the access request of network picture;First receiving unit returns to network picture for receiving with Webp forms Response message realizes the access of network picture;Second transmitting element, for sending with can be propped up other than Webp forms The form held accesses the access request of network picture;Second receiving unit, for receive with other than Webp forms can The form being supported returns to the access of the response message realization network picture of network picture.
Preferably, the browser further includes the first support mark setting unit and first and supports mark judging unit, In:Described first supports mark setting unit, for judging to load the property value for rendering the preceding attribute extracted with adding When the property value of respective attributes is identical after load renders, setting Webp format pictures support mark;Described second supports mark to judge Unit, for when accessing network picture next time, judging whether that Webp format pictures support mark, if it is present touching Send out the first transmitting element;If it does not exist, then triggering attributes extraction unit;And/or
The browser further includes third transmitting element and third receiving unit, and the server further includes the second support mark Will setting unit and second supports mark judging unit, wherein:The third transmitting element, for before judging that loading renders When the property value of respective attributes is identical after the property value of the attribute of extraction is rendered with loading, Webp is sent to server The message that format picture can be supported;Described second supports mark setting unit, for basis after receiving the message The message sets Webp format pictures corresponding with browser to support mark;It is described second support mark judging unit, for During browser access next time network picture, judge whether that Webp format pictures support mark, and will determine that result is sent to Browser;The third receiving unit, for receive accessed end return judge whether Webp corresponding with access end Format picture support mark as a result, if it is present triggering the first transmitting element;If it is not, then triggering attributes extraction unit.
It is further preferred that the browser further includes display effect detection unit, display effect judging unit, Yi Ji One supports mark to eliminate unit and/or the 4th transmitting element, and when browser includes four transmitting elements, the server includes Second supports mark to eliminate unit, wherein:
The display effect detection unit, for detecting the display effect of Webp format pictures;
The display effect judging unit, for judging whether the display effect meets preset condition, if it is not, then touching Hair first supports mark to eliminate unit;
Described first supports mark to eliminate unit, and mark is supported for eliminating the Webp format pictures of setting;
4th transmitting element, for when display effect is unsatisfactory for preset condition, sending Webp format pictures cannot The message being enough supported;
It is described second support mark eliminate unit, for after receiving the message according to the message eliminate setting with The corresponding Webp format pictures of browser support mark.
It is further preferred that the first support mark setting unit is specifically used for what is extracted before judging that loading renders When the property value of respective attributes is identical after the property value of the attribute is rendered with loading, Webp forms are set in cookie file Picture supports mark.
The embodiment of the present application carries out loading rendering by the preset standard Webp format pictures to acquisition, compares property value etc. Whether operation judges access end supports Webp format pictures.Compared with prior art, access end judges whether access end is supported Webp format pictures are conducive to accessed end and choose the access that correct format picture realizes network picture:When access end is supported During Webp format pictures, accessed end responds access request to realize the access of network picture with Webp format pictures;Work as access When Webp format pictures are not supported at end, accessed end is visited with other photo responses that can be supported except Webp format pictures Request is asked to realize the access of network picture, since under the conditions of equal image quality, " volume " of Webp format pictures is than other lattice Formula picture is small, so as to improve transmission speed, and then improves access (response) efficiency of network picture on the whole.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or it will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow chart of the method for the access network picture of the embodiment of the present application one;
Fig. 2 is the flow chart of the method for the access network picture of the embodiment of the present application two;
Fig. 3 is the flow chart of the method for the response to network picture access request of the embodiment of the present application three;
Fig. 4 is a kind of structure diagram of the device of access network picture of the embodiment of the present application four;
Fig. 5 is the structure diagram of another device for accessing network picture of the embodiment of the present application four;
Fig. 6 is the structure diagram of the network picture access system of the embodiment of the present application five.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical solution in the embodiment of the present application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common Technical staff's all other embodiments obtained without making creative work should all belong to the application protection Range.
Embodiment one
Webp forms often face the access end (such as browser) of network picture to this as a kind of novel picture format Supportive (compatibility) problem (demand) of form, and then influence access or the response efficiency of network picture.For example, browsing When device is by the picture of network access server, if without supportive detection, server is directly smaller by " volume " Webp format pictures are sent to browser, it would be possible to since browser does not support the picture of the form that loading is caused to render failure, At this moment server needs to retransmit the picture of extended formatting, so as to influence network picture access or response efficiency and user's body It tests.
When Webp format pictures in a network environment in use, access end send access request after, if accessed end energy Enough know that access end has the ability for supporting Webp format pictures, then access end can be needed to the picture that accesses with Webp forms Mode be sent to access end, since Webp format pictures are more small than extended formatting picture, thus can save transmission money Access (response) efficiency of network picture is improved in source.Referring to Fig. 1, which shows the embodiment of the present application from the angle of access end The flow of the method for one access network picture.The embodiment includes:
Step S101:Preset standard Webp format pictures are obtained, extract at least one category of standard Webp format pictures The property value of property;
Access end can obtain preset standard Webp format charts before network picture access is carried out or in access process Piece, using standard Webp format picture test access ends to the supportive of Webp format pictures.Here preset standard is obtained The operation of Webp format pictures can carry out under certain trigger condition, which can be embodied directly in the finger of people It enables, for example, before access end carries out network picture access, pops up dialog box, ask whether to need to carry out Webp format charts The supportive detection of piece if receiving confirmation message from the user, triggers the step for obtaining preset standard Webp format pictures Suddenly;The trigger condition may be embodied in preset condition and be met, for example, after access end accesses certain server for the first time, It monitors the supportive detection message that server is sent, then triggers the step of obtaining preset standard Webp format pictures.
Here preset standard Webp format pictures are whether support Webp format pictures for test access end one Carrier, itself is not as the operation object of the application based on Webp format pictures.For example, passing through browser access server Network picture during, preset standard Webp format pictures are not the Target Photos that browser will access, but pre- in advance The Webp format picture for being located at server end or browser end put or be generated in advance according to certain rule.Due to this Webp format pictures only need to play the role of detecting whether browser supports Webp format pictures, therefore, in practical application mistake The Webp format pictures to improve supportive detection speed and efficiency, are usually set as a standardization picture, " mark by Cheng Zhong Standardization " can be presented as fixed width, height or fixed size etc..
It should be noted that:Preset standard Webp format pictures can be stored in advance in access end local, can also lead to Network download is crossed, which kind of mode specifically to depend on the Starting mode of supportive detection using:When being started by access end, access end Before access request is sent, supportive detection process can be completed from the local preset standard Webp format pictures that recall;When by When accessed end starts, access end can be received from the pre-stored standard Webp format pictures in accessed end, then utilized Standard Webp format pictures complete the supportive detection process of access end.
Step S102:Loading renders the standard Webp format pictures;
Step S103:Judge the property value of the attribute extracted before loading rendering and the category of respective attributes after loading rendering Whether property value is identical, if identical, performs step S104:If it is not the same, then perform step S105;
After loading renders, in fact it could happen that two kinds of situations:When loading renders successfully, load render successfully show as it is pre- It is marked with quasi- Webp format pictures not change before and after loading, i.e., the loading of standard Webp format pictures is no after rendering lacks Phenomena such as mistake, corrupted, distortion, based on this, whether the property value that front and rear respective attributes can be rendered by comparing loading is identical Mode judge whether loading renders successfully, if property value is identical, illustrate load rendering after do not change, show access end Support Webp format pictures;Second is that loading renders failure, loading, which renders, unsuccessfully shows as default Webp format pictures in loading wash with watercolours Changed after dye, i.e., standard Webp format pictures fail to load or distortion, defect etc. occur now after loading rendering As, based on this, loading render after result (pictures can be still behaved as) attribute it is inevitable loaded with it render before go out Existing difference, so as to show that access end does not support Webp format pictures.In actual application, to improve the accuracy of detection, Multiple attributes can be set to be detected jointly, i.e., the property value of multiple attributes is extracted in step S101, after loading renders, The property value of result respective attributes after this multiple property value is rendered with loading in step s 103 is compared, if homogeneously Together, then it is assumed that access end supports Webp format pictures.
The realizations such as program language Javascript, Java may be used in above-mentioned steps S101~S103.Moreover, in practical inspection During survey, preset standard Webp format pictures can also be carried out to special coding according to the different of detection triggering mode, with Acceleration detection.For example, when detecting trigger request by startup of server, access end can receive from accessed end, use Standard Webp format pictures after base64 codings, and realize detection using standard Webp pictures.It illustratively provides below The detection core code write with Javascript language:
The base64 code levels of the standard Webp pictures given in the code segment are 2, in the LOAD (loadings by picture Render) operation after, if the height of picture remains as 2, may indicate that access end can support Webp format pictures, otherwise, Then illustrate that access end does not support Webp format pictures.
Step S104:The access request that network picture is accessed with Webp forms is sent, receives and network is returned to Webp forms The response message of picture realizes the access of network picture;
By aforementioned detecting step, if access end can support Webp format pictures, to accessed end send with Webp forms access the access request of network picture, and accessed end is made to return to network by the requirement of access request with Webp forms The response message of piece, access end realizes the access of network picture after receiving the response message, so as to utilize Webp format pictures Advantage reduce transfer resource.The response message that the accessed end that access end receives returns to network picture with Webp forms can be with It is that Webp form of the accessed end in advance in preset plurality of picture form directly returns or accessed end is being learnt After access end " accessing network picture with Webp forms ", the picture of extended formatting is converted into Webp format pictures and is sent to access End.
Step S105:The access request that network picture is accessed with the form that can be supported other than Webp forms is sent, Receive the access for the response message realization network picture that network picture is returned with the form that can be supported other than Webp forms;
By aforementioned detecting step, if access end does not support Webp format pictures, to accessed end send with The extended formatting (for example, JPG forms) that access end other than Webp forms can be supported accesses the access request of network picture, makes Accessed end is returned to the response message of network picture by the requirement of access request with Webp forms, and access end receives the response and disappears The access of network picture is realized after breath.
For the present embodiment during network picture is accessed, access end judges whether its own supports Webp format pictures, has Picture format is properly received conducive to access end, so as to fulfill the access of network picture:When access end supports Webp format pictures, Webp format pictures are received from accessed end and realize picture access, when access end does not support Webp format pictures, from accessed Other pictures that can be supported that end receives except Webp format pictures realize picture access, due in equal image quality condition Under, " volume " of Webp format pictures is smaller than extended formatting picture, so as to improve transmission speed, and then improves network picture Access efficiency.
Embodiment two
In the above-described embodiments, access end is judged after supporting Webp format pictures, by receiving accessed end according to visit Ask that the Webp format pictures that request returns realize goal of the invention.But it if when same access end accesses every time, carries out Webp format pictures are supportive to judge operation, and actually unnecessary repetition causes the waste of process resource.For this purpose, this reality Example is applied preferably after first time carries out the supportive judgement of Webp format pictures, if access end supports Webp format pictures, into Line flag, setting Webp format pictures support mark, in this way, when the access end carries out next access, it may not be necessary to carry out Webp again Format picture is supportive to judge operation, and directly takes appropriate measures.Here setting Webp format pictures support that mark can be with Including the following two kinds realization method:
One of mode:Webp format pictures is directly set to support mark by access end.In this way the main reason for It is:On the one hand, the executive agent as the supportive detection of Webp format pictures can know itself to Webp format charts in time The support implementations of piece can promptly set Webp format pictures to support mark, when being conducive to save the entirety of network access Between;On the other hand, due to being locally located, without testing result is notified accessed end, so as to avoid transmission process The mistake brought;In another aspect, this traffic sign placement mode is completed by large number of access end itself, if passing through register Storage, then only need a small amount of register, so as to reduce storage resource, is conducive to the live load for disperseing accessed end. During specific setting, which may be provided in the cookie file that access end locally maintains.
The two of mode:Webp format pictures corresponding with access end is set to support mark by accessed end.By this way Setting Webp format pictures support mark to need access end that testing result is sent to accessed end, so that accessed end receives Webp format pictures corresponding with access end is set to support mark according to the message after the message.In this way the reason of, exists In:In general, the processing capacity of accessed end is stronger, disappear when multiple access ends send testing result to same accessed end After breath, unified, concentrated setting, the mode so as to be set respectively than each access end there can be whole speed faster by accessed end Degree.After setting in this way, when access end carries out network picture access, accessed end can be asked according to its pre-stored figure Piece form carries out the form response of " active ":If access end supports Webp format pictures, accessed end is received with Webp lattice The picture of formula response is to realize the access of network picture, and otherwise, receiving accessed end, (such as JPG forms) responds in other formats Picture to realize the access of network picture.
After Webp format pictures being set to support mark by aforementioned manner, it may need to cancel the setting in some cases. For example, although access end confirms that itself can support Webp format pictures, based on a variety of causes, access end shows Webp forms The effect of picture may may be more desirable to use other as the user to network picture access in this case not as expected Format picture, even if it will occupy more storage resources or transfer resource.For this purpose, the application is preferably having appreciated that access end pair In the case that Webp format pictures are supported, access end is also detected the actual displayed effect of Webp format pictures, then sentences Whether its display effect of breaking meets preset condition, if it is satisfied, then can continue to retain Webp format pictures support mark;If It is unsatisfactory for, then eliminates previously positioned Webp format pictures and support to indicate or further, Webp format pictures is set not prop up Hold mark.It operates in this way, although some access ends can support Webp format pictures, due to showing Webp format pictures Display effect it is bad, then may be pushed into " blacklist ", so as to by its from support Webp format pictures access end in filter Fall.
It should be noted that:It is corresponding with the two ways that above-mentioned setting Webp format pictures support mark, eliminate Webp Format picture supports the mode of mark that can also include two kinds:One kind is directly to be disappeared by access end the support mark;It is another It is that access end detects to need to cancel after Webp format pictures support mark, by the message with " Webp format pictures can not be by The form of support " is sent to accessed end, so that the Webp corresponding with access end set is eliminated in accessed end according to the message Format picture supports mark.
Webp format pictures based on above-mentioned setting support mark, and the application can deform on the basis of embodiment one Mode (embodiment two), i.e. access end can first judge whether to set Webp format pictures when carrying out network picture access next time It supports mark, and then takes appropriate measures.Referring to Fig. 2, the figure shows the flows of this mode of texturing.The flow includes:
Step S201:Judge whether that Webp format pictures support mark, if it is present performing step S205;Such as Fruit is not present, then enters step S202;
Step S202:Preset standard Webp format pictures are obtained, extract at least one category of standard Webp format pictures The property value of property;
Step S203:Loading renders the standard Webp format pictures;
Step S204:Judge the property value of the attribute extracted before loading rendering and the category of respective attributes after loading rendering Whether property value is identical, if identical, performs step S205:If it is not the same, then perform step S206;
Step S205:The access request that network picture is accessed with Webp forms is sent, receives accessed end with Webp forms The response message for returning to network picture realizes the access of network picture;
Step S206:The access request that network picture is accessed with the form that can be supported other than Webp forms is sent, Receive the response message realization network that accessed end returns to network picture with the form that can be supported other than Webp forms The access of piece.
Embodiment three
Both of the aforesaid embodiment describes from the angle of access end and realizes network picture access based on Webp format pictures Situation is described below from the angle of accessed end, i.e., a kind of response to network picture access request provided in this embodiment Method.Referring to Fig. 3, the figure shows the streams of the method for the response to network picture access request of the angle description from accessed end Journey, the flow include:
Step S301:It receives and sends the supportive detection message of Webp format pictures to access end after access request, to touch It sends out access end and obtains preset standard Webp format pictures, and extract the attribute of at least one attribute of standard Webp format pictures Value;
It, under normal conditions will be with traditional picture format (ratio after accessed end receives the access request of access end transmission Such as JPG forms) response access end request.In the present embodiment, accessed end is first triggered before the request of response access end The detection work of Webp format pictures whether is supported access end, targetedly to respond access end according to testing result Request.Accessed end receives and sends the supportive detection message of Webp format pictures to access end after access request, so as to trigger Access end obtains preset standard Webp format pictures, and extracts the property value for subsequent step multilevel iudge.Need what is illustrated It is:Here preset standard Webp format pictures can be that accessed end carrying is sent to access end in message is detected, It can be after accessed end triggering access end, be obtained from its own or other equipment by access end.
Step S302:Receive access end will load render the property value that is extracted before the standard Webp format pictures with After loading renders the property value of respective attributes that extracts be compared whether identical judging result;If the judgement As a result it is identical for property value, then perform step S303;If the judging result is differed for property value, step is performed S304;
Step S303:With the access request of Webp forms response access end;
Step S304:With the access request of the form that can the be supported response access end other than Webp forms.
After network picture access process is described based on accessed end, same reason, for accessed end is avoided to connect every time When receiving the access request from same access end, the supportive detection process of Webp format pictures is triggered, branch can be set Mark is held, on the one hand which can be arranged directly on access end, in this way, being asked when accessed end receives access in next time After asking, it can indicate the judgement of presence or absence to support by the detection message trigger sent to access end, then, accessed end exists After receiving the judging result that access end whether there is support mark, the access request of access end is responded according to judging result; It on the other hand can be by accessed end after access end is received to the testing result of the supportive detection of Webp format pictures, by quilt Access end setting Webp format pictures support mark, in this way, when accessed end is after access request is received next time, can directly sentence It is disconnected to support mark with the presence or absence of Webp, the access request of access end is then responded according to the result of judgement.It is possible to further right The support mark of setting carries out Processing for removing, and process is similar with the above-mentioned description from access end angle, is repeated to avoid, here No longer superfluous words.
Example IV
Above-described embodiment is embodiment of the method, and with embodiment of the method accordingly, present invention also provides a kind of access nets The device embodiment of network picture, the device mainly describe the access process of network picture from access end angle.Referring to Fig. 4, the figure The structure diagram of the device is shown from the angle of access end, the device of the access network picture can be embedded in practical applications A kind of new browser is formed into browser.The device includes:Attributes extraction unit 401, loading rendering unit 402, attribute Judging unit 403, the first transmitting element 404 and the first receiving unit 405 and the second transmitting element 406 and second receive list Member 407, wherein:
Attributes extraction unit 401 for obtaining preset standard Webp format pictures, extracts standard Webp format pictures The property value of at least one attribute;
Rendering unit 402 is loaded, for loading the standard Webp format pictures;
After determined property unit 403, the property value of the attribute extracted before being rendered for judgement loading and loading render Whether the property value of respective attributes is identical, if identical, triggers the first transmitting element 404;If it is not the same, then trigger second Transmitting element 405;
First transmitting element 404, for sending the access request that network picture is accessed with Webp forms;
First receiving unit 405, for receiving the response message realization network picture that network picture is returned with Webp forms Access;
Second transmitting element 406 accesses network picture for sending with the form that can be supported other than Webp forms Access request;
Second receiving unit 407 returns to network picture for receiving with the form that can be supported other than Webp forms Response message realize network picture access.
The course of work of present networks picture access device embodiment is:When need carry out network picture access when or network During picture access, preset standard Webp format pictures are obtained by attributes extraction unit 401, extract standard Webp format charts Then the property value of at least one attribute of piece is loaded by loading rendering unit 402 and renders the standard Webp format pictures, added After the completion of carrying Rendering operations, determined property unit 403 judges the property value for the attribute that loading is extracted before rendering and loading wash with watercolours Whether the property value of respective attributes is identical after dye, if identical, trigger the first transmitting element 404 and sends with the access of Webp forms Then the access request of network picture receives accessed end by the first receiving unit 405 and returns to network picture with Webp forms Response message realizes the access of network picture;It is sent if it is not the same, then triggering the second transmitting element 406 with other than Webp forms The form that can be supported access the access request of network picture, then received by the second receiving unit 407 with Webp forms The form that can be supported in addition returns to the access of the response message realization network picture of network picture.
Although the device embodiment of aforementioned access network picture can realize present invention purpose, at this In embodiment, the access of primary network picture is often carried out, will trigger the supportive detection process of Webp format pictures, and in reality In application process, access end may need repeatedly to access same accessed end, and same " access end " is repeatedly accessing It is consistent the supportive of Webp format pictures in the process, will not change with the variation of access times.For this purpose, can be Increase in aforementioned device embodiment and support mark setting unit 408, for the attribute extracted before judging that loading renders Property value rendered with loading after respective attributes property value it is identical when, setting Webp format pictures support mark, in this way, in phase When same " access end " carries out second of later access to accessed end, first the presence or absence of the mark can be judged, If had existed, illustrate that access end shows that it has the ability for supporting Webp format pictures by detection, it can be direct The response message that accessed end is responded with Webp forms is received, is rung in other formats on the contrary, then receiving accessed end The response message answered.The support mark of above-mentioned setting Webp format pictures can include two kinds of specific implementations:First, visiting Ask that end is configured itself, second is that being configured in accessed end.For the first situation, referring to Fig. 4, can judge in access end After going out its own support Webp format picture, directly setting is corresponding indicates;For second case, referring to Fig. 5, (this is illustrated Another structure diagram of the device for accessing network picture), then it needs judging that access end can support Webp format charts After piece, the message that can be supported of Webp format pictures is sent to accessed end by third transmitting element, so as to accessed end According to the message setting mark for supporting Webp format pictures corresponding with access end.It should be noted that:Above two is specific Setting Webp format pictures support mark that can exist simultaneously, i.e., both support mark in access end setting Webp format pictures, In accessed end, setting Webp format pictures support mark, can use wherein one according to the situation of itself selection by user in this way Kind pattern opens both of which simultaneously.
In the case of supporting to indicate there is provided Webp format pictures, aforementioned device embodiment may further include support Indicate judging unit 409, referring to Fig. 4, which is used to, when accessing network picture next time, judge whether Webp format charts Piece supports mark, if it is, the first transmitting element of triggering is directly transmitted to accessed end accesses network picture with Webp forms Access request, so as to accessed end by its requirement return its need format picture;If it is not, then triggering attributes extraction unit Carry out the supportive detecting step of Webp format pictures.Similarly, support mark arbitration functions here still can be by being interviewed End is asked to complete, referring to Fig. 5, i.e., when accessing network picture next time, the judgement of access end return is received by third receiving unit With the presence or absence of Webp format pictures corresponding with access end support mark as a result, if it is present the first transmitting element of triggering; If it is not, then triggering attributes extraction unit carries out the supportive detecting step of Webp format pictures.
Mark is supported by the aforementioned increased Webp format pictures that mark setting unit is supported to set, in practical application mistake Cheng Zhong, in fact it could happen that unsatisfactory part.Although for example, certain access end support Webp forms picture, by its rendering after, Its display effect is simultaneously bad, and this equates access end " not supporting Webp format pictures ".For this purpose, above device embodiment can be with Including display effect detection unit 410, display effect judging unit 411 and mark is supported to eliminate unit 412, referring to Fig. 4, wherein The function of each unit is:Display effect detection unit 410, for detecting the display effect of Webp format pictures;Display effect is sentenced Disconnected unit 411, for judging whether the display effect meets preset condition, if it is not, then triggering supports mark to eliminate unit; Mark is supported to eliminate unit 412, the Webp format pictures for eliminating setting support mark.By this processing can by some although It supports Webp format pictures but the bad access end of display effect filters out.It should be noted that:It is supported with Webp format pictures The setting of mark is corresponding, and the function of support mark cancellation unit here can also be completed either or in access end in quilt Access end is completed.Referring to Fig. 5, when being completed in accessed end, access end judges display effect by display effect judging unit When fruit is unsatisfactory for preset condition, disappeared by the 4th transmitting element to what accessed end transmission Webp format pictures can not be supported Breath eliminates the Webp format pictures corresponding with access end set according to the message so as to accessed end and supports mark.
The above of present apparatus embodiment describes the access process of network picture from the angle of access end, below from quilt The angle of access end is described, and its essence is a kind of devices of response to network picture access request.Angle from accessed end The device of description response to network picture access request can be embedded into actual application formed in server it is a kind of new Server.The device includes:It is single to detect message sending unit, judging result receiving unit, the first response unit and the second response Member, wherein:
The detection message sending unit, for sending Webp format picture branch to access end after access request is received Holding property detects message, and preset standard Webp format pictures are obtained, and extract standard Webp format pictures to trigger access end The property value of at least one attribute;
The judging result receiving unit will load the rendering standard Webp format picture premises for receiving access end The property value of respective attributes that the property value that takes extracts after being rendered with loading be compared whether identical judgement If as a result, the judging result is identical for property value, the first response unit is triggered, if the judging result is property value It differs, then triggers the second response unit;
First response unit, for the access request of Webp forms response access end;
Second response unit, for the access of the form that can the be supported response access end other than Webp forms Request.
Embodiment five
Present invention also provides a kind of network picture access systems.Referring to Fig. 6, the figure shows the structural frames of the system Figure.The system includes server 601 and browser 602, wherein:
Server 601 be used for browser provide preset standard Webp format pictures, be additionally operable to receive browser with With Webp Format network photo responses when Webp forms access the access request of network picture, browser is being received with Webp lattice With can be supported other than Webp forms when the form that can be supported other than formula accesses the access request of network picture The network photo response of form;
Browser 602 includes:Attributes extraction unit 6021, loading rendering unit 6022, determined property unit 6023, first 6024 and first receiving unit 6025 of transmitting element and the second transmitting element 6026 and the second receiving unit 6027, wherein:Belong to Property extraction unit 6021, for from server obtain preset standard Webp format pictures, extract standard Webp format pictures The property value of at least one attribute;Rendering unit 6022 is loaded, the standard Webp format pictures are rendered for loading;Attribute is sentenced Disconnected unit 6023, for judging the property value of the attribute extracted before loading rendering and the attribute of respective attributes after loading rendering Whether value is identical, if identical, triggers the first transmitting element 6024;If it is not the same, then trigger the second transmitting element 6026; First transmitting element 6024, for sending the access request that network picture is accessed with Webp forms;First receiving unit 6025 is used In the access for receiving the response message realization network picture that network picture is returned with Webp forms;Second transmitting element 6026 is used The access request of network picture is accessed with the form that can be supported other than Webp forms in transmission;Second receiving unit 6027, for receiving the response message realization network that network picture is returned with the form that can be supported other than Webp forms The access of piece.
The course of work of above system embodiment repeats here no longer superfluous words referring to the description of previous embodiment to avoid. It should be noted that:In actual application, the function mode of above system embodiment can be:It is accessed for the first time in browser During the network picture of server, after browser sends the request for accessing network picture to server, it will be browsed by server The shell script of the supportive detection of device Webp format pictures is put into the HTML code that browser returns, when browser receives After these codes, the detection whether shell script realization supports the browser Webp format pictures is run, if after testing It was found that browser can support Webp format pictures, in the cookie file that the testing result is written to browser local maintenance In.When browser carries out second or second of later network picture access, the content of cookie file, analysis are first read Whether itself supports Webp format pictures, if support, clearly wish in the access request for being sent to server server with Webp forms return to the network picture that request accesses, and after server receives the request, Webp format pictures are returned to browser, So as to fulfill the access of network picture.
During practical application, based on certain special requirements, above system embodiment can also be optimized.Such as Browser can also include first and mark setting unit 6028 and first is supported to support mark judging unit 6029, wherein:First Mark setting unit 6028 is supported, for after the property value of the attribute extracted before judging that loading renders is rendered with loading When the property value of respective attributes is identical, setting Webp format pictures support mark, support that mark setting unit is set specifically Browser can be set to support the mark of Webp format pictures when putting in COOKIE files;Second supports mark judging unit 6029, for when accessing network picture next time, judging whether that Webp format pictures support mark, if it is, triggering First transmitting element;If it is not, then triggering attributes extraction unit.Net can carried out every time to avoid browser in this way The supportive detection of Webp format pictures is carried out during network picture access, and only need to be after detecting for the first time, next time directly judges setting Mark, so as to save the access efficiency of network picture on the whole.
Further, browser can also include display effect detection unit 6030,6031 and of display effect judging unit First supports mark to eliminate unit 6032, wherein:Display effect detection unit 6030, for detecting the display of Webp format pictures Effect;Display effect judging unit 6031, for judging whether the display effect meets preset condition, if it is not, then triggering First supports mark to eliminate unit;First supports mark to eliminate unit 6032, is supported for eliminating the Webp format pictures of setting Mark.It although by this way can be by some support Webp format pictures but because of the bad browser of a variety of causes display effect It excludes except the range for using Webp format pictures, so as to improve the access performance of network picture on the whole.
It should be noted that:Above-mentioned is directly to increase support mark setting unit, support that mark judgement is single in browser side Member and support mark eliminate unit, in fact, the application can also be by these function settings of browser side in server side.This Under kind situation, browser can include third transmitting element and third receiving unit, and the server correspondingly includes second It holds mark setting unit and second and supports mark judging unit, wherein:The third transmitting element, for judging to load wash with watercolours When the property value of respective attributes is identical after the property value of the attribute extracted before dye is rendered with loading, sent to server The message that Webp format pictures can be supported;Described second supports mark setting unit, for after receiving the message Webp format pictures corresponding with browser is set to support mark according to the message;Described second supports mark judging unit, uses In in browser access next time network picture, judge whether that Webp format pictures support mark, and will determine that result is sent out Give browser;The third receiving unit, for receive accessed end return judge whether it is corresponding with access end Webp format pictures support mark as a result, if it is present triggering the first transmitting element;If it is not, then triggering attributes extraction Unit.Further, when the display effect of Webp format pictures on a web browser does not reach preset standard, browser can be with Including the 4th transmitting element, the server includes second and mark is supported to eliminate unit, wherein:4th transmitting element is used In the message that when display effect is unsatisfactory for preset condition, can not be supported to server transmission Webp format pictures;It is described Second supports mark to eliminate unit, for eliminating the corresponding with browser of setting according to the message after receiving the message Webp format pictures support mark.
For the simplicity of narration, what the different embodiments of this specification stressed be all it is different from other embodiment it Place, between each embodiment identical similar part can mutually referring to.For device, system embodiment, due to it Embodiment of the method is substantially similar to, so describing fairly simple, related part can be found in the explanation of embodiment of the method.More than institute The device of description, each unit of system embodiment may or may not be it is physically separate, both can be located at one Place can also be distributed under multiple network environments.In actual application, it can be selected according to the actual needs In some or all of unit realize present invention purpose, those of ordinary skill in the art are not paying creative labor In the case of dynamic, you can to understand and implement.
The above is only the specific embodiment of the application, it is noted that for the ordinary skill people of the art For member, under the premise of the application principle is not departed from, several improvements and modifications can also be made, these improvements and modifications also should It is considered as the protection domain of the application.

Claims (14)

  1. A kind of 1. method for accessing network picture, which is characterized in that applied to access end, this method includes:
    Preset standard Webp format pictures are obtained, extract the property value of at least one attribute of standard Webp format pictures;
    Loading renders the standard Webp format pictures;
    Judging the property value of respective attributes that the property value for the attribute that loading is extracted before rendering extracts after being rendered with loading is It is no identical, if identical, the access request that network picture is accessed with Webp forms is sent, receives and network is returned to Webp forms The response message of picture realizes the access of network picture;If it is not the same, it then sends to be supported other than Webp forms Form access the access request of network picture, receive and network picture returned to the form of can be supported other than Webp forms Response message realize network picture access.
  2. 2. according to the method described in claim 1, it is characterized in that, the method further includes:
    The property value of respective attributes is identical after the property value of the attribute extracted before judging that loading renders is rendered with loading When, setting Webp format pictures support mark, when accessing network picture next time, judge whether that Webp format pictures are supported Mark sends the step of accessing the access request of network picture with Webp forms if it is present performing;If it does not exist, then Perform the step of obtaining preset standard Webp format pictures;And/or
    The property value of respective attributes is identical after the property value of the attribute extracted before judging that loading renders is rendered with loading When, the message that Webp format pictures can be supported is sent, so that accessed end is corresponding with access end according to message setting Webp format pictures support mark, and when accessing network picture next time, what reception accessed end returned judges whether and visit Ask that the corresponding Webp format pictures support in end indicates as a result, if it is present perform transmission accesses network with Webp forms The step of access request of piece;If it does not exist, then perform the step of obtaining preset standard Webp format pictures.
  3. 3. according to the method described in claim 2, it is characterized in that, the method further includes:
    The display effect of Webp format pictures is detected, judges whether the display effect meets preset condition, if it is not, then eliminating The Webp format pictures of setting support mark and/or, the message that Webp format pictures can not be supported is sent, to be interviewed Ask that the Webp format pictures corresponding with access end that setting is eliminated at end according to the message support mark.
  4. 4. the according to the method described in claim 2, it is characterized in that, category of the attribute extracted before judging that loading renders Property value with loading render after respective attributes property value it is identical when, access end sets Webp format picture branch in cookie file Hold mark.
  5. A kind of 5. method of response to network picture access request, which is characterized in that applied to accessed end, this method includes:
    Receive and send the supportive detection message of Webp format pictures to access end after access request, with trigger access end obtain it is pre- Quasi- Webp format pictures are marked with, and extract the property value of at least one attribute of standard Webp format pictures;
    The property value extracted before the rendering standard Webp format pictures will be loaded and be carried after loading rendering by receiving access end The property value of the respective attributes taken be compared whether identical judging result;
    If the judging result is identical for property value, with the access request of Webp forms response access end;If described sentence Disconnected result is differed for property value, then with the access request of the form that can the be supported response access end other than Webp forms.
  6. 6. according to the method described in claim 5, it is characterized in that, the method further includes:
    In the identical judging result of the property value for receiving access end, Webp format pictures corresponding with access end is set to support Mark, instantly during secondary response network picture access request, judges whether corresponding with access end after access request is received Webp format pictures support mark, if it is present perform with Webp forms response access end access request the step of;Such as Fruit is not present, then perform to access end send Webp format pictures it is supportive detection message the step of;And/or
    Instantly it during secondary response network picture access request, is sent after access request is received to access end with the presence or absence of Webp lattice The inquiry message of formula picture support mark, the Webp format pictures support mark judging loading rendering premise by access end The property value of the attribute taken with loading render after respective attributes property value it is identical when set, if it is present perform with Webp forms respond the step of access request of access end;Webp format pictures are sent if it does not exist, then performing to access end The step of supportive detection message.
  7. 7. a kind of device for accessing network picture, which is characterized in that applied to access end, which includes:Attributes extraction unit, Loading rendering unit, determined property unit, the first transmitting element and the first receiving unit and the second transmitting element and second connect Unit is received, wherein:
    The attributes extraction unit for obtaining preset standard Webp format pictures, extracts standard Webp format pictures extremely The property value of a few attribute;
    The loading rendering unit renders the standard Webp format pictures for loading;
    The determined property unit, the property value for judging the attribute extracted before loading rendering are corresponding after being rendered to loading Whether the property value of attribute is identical, if identical, triggers the first transmitting element;If it is not the same, then triggering second sends list Member;
    First transmitting element, for sending the access request that network picture is accessed with Webp forms;
    First receiving unit, for receiving the visit for the response message realization network picture that network picture is returned with Webp forms It asks;
    Second transmitting element, for sending the visit that network picture is accessed with the form that can be supported other than Webp forms Ask request;
    Second receiving unit, for receiving the sound that network picture is returned with the form that can be supported other than Webp forms Message is answered to realize the access of network picture.
  8. 8. device according to claim 7, which is characterized in that described device, which further includes, supports mark setting unit and support Indicate judging unit, wherein:
    The support mark setting unit, for the property value of the attribute and loading wash with watercolours extracted before judging that loading renders When the property value of respective attributes is identical after dye, setting Webp format pictures support mark;
    It is described to support mark judging unit, for when accessing network picture next time, judging whether Webp format picture branch Mark is held, if it is present the first transmitting element of triggering;If it does not exist, then triggering attributes extraction unit;
    And/or described device further includes third transmitting element and third receiving unit, wherein:
    The third transmitting element, for after the property value of the attribute extracted before judging that loading renders is rendered with loading When the property value of respective attributes is identical, the message that Webp format pictures can be supported is sent, so that accessed end disappears according to this Breath sets Webp format pictures corresponding with access end to support mark;
    The third receiving unit, for when accessing network picture next time, receiving judging whether for accessed end return Corresponding with access end Webp format pictures support mark as a result, if it is present the first transmitting element of triggering;If it does not deposit Then triggering attributes extraction unit.
  9. 9. device according to claim 8, which is characterized in that described device further includes display effect detection unit, display Effect judging unit and support mark eliminate unit and/or the 4th transmitting element, wherein:
    The display effect detection unit, for detecting the display effect of Webp format pictures;
    The display effect judging unit, for judging whether the display effect meets preset condition, if it is not, then triggering branch It holds mark and eliminates unit;
    It is described that mark is supported to eliminate unit, support mark for eliminating the Webp format pictures of setting;
    4th transmitting element, for when display effect is unsatisfactory for preset condition, sending Webp format pictures can not be by The message of support eliminates the Webp format pictures corresponding with access end set according to the message so as to accessed end and supports mark Will.
  10. 10. a kind of device of response to network picture access request, which is characterized in that applied to accessed end, which includes:Inspection Message sending unit, judging result receiving unit, the first response unit and the second response unit are surveyed, wherein:
    The detection message sending unit, it is supportive for sending Webp format pictures to access end after access request is received Message is detected, preset standard Webp format pictures are obtained, and extract standard Webp format pictures at least to trigger access end The property value of one attribute;
    The judging result receiving unit will load for receiving access end and render what is extracted before the standard Webp format pictures After the property value is rendered with loading the property value of respective attributes that extracts be compared whether identical judging result, If the judging result is identical for property value, the first response unit is triggered, if the judging result is property value not phase Together, then the second response unit is triggered;
    First response unit, for the access request of the network photo response access end of Webp forms;
    Second response unit, for the network photo response access end of the form that can be supported other than Webp forms Access request.
  11. 11. a kind of network picture access system, which is characterized in that the system includes server and browser, wherein:
    The server is used to provide preset standard Webp format pictures to browser, is additionally operable to receiving browser with Webp With Webp Format network photo responses when form accesses the access request of network picture, receive browser with Webp forms with With the form that can be supported other than Webp forms when the outer form that can be supported accesses the access request of network picture Network photo response;
    The browser includes:Attributes extraction unit, loading rendering unit, determined property unit, the first transmitting element and first Receiving unit and the second transmitting element and the second receiving unit, wherein:The attributes extraction unit, for being obtained from server Preset standard Webp format pictures are taken, extract the property value of at least one attribute of standard Webp format pictures;The loading Rendering unit renders the standard Webp format pictures for loading;The determined property unit, before judging that loading renders Whether the property value of the attribute of extraction is identical with the property value of respective attributes after loading rendering, if identical, triggers the One transmitting element;If it is not the same, then trigger the second transmitting element;First transmitting element, for sending with Webp forms Access the access request of network picture;First receiving unit, for receiving the response that network picture is returned with Webp forms Message realizes the access of network picture;Second transmitting element, for sending with can be supported other than Webp forms Form accesses the access request of network picture;Second receiving unit, for receiving with can be propped up other than Webp forms The form held returns to the access of the response message realization network picture of network picture.
  12. 12. system according to claim 11, which is characterized in that
    The browser further includes the first support mark setting unit and first and supports mark judging unit, wherein:Described first Mark setting unit is supported, for corresponding after the property value of the attribute extracted before judging that loading renders is rendered to loading When the property value of attribute is identical, setting Webp format pictures support mark;Described first supports mark judging unit, under During secondary access network picture, judge whether that Webp format pictures support mark, if it is present the first transmission of triggering is single Member;If it does not exist, then triggering attributes extraction unit;And/or
    The browser further includes third transmitting element and third receiving unit, and the server further includes the second support mark and sets It puts unit and second and supports mark judging unit, wherein:The third transmitting element, for being extracted before judging that loading renders The attribute property value with loading render after respective attributes property value it is identical when, to server send Webp format pictures The message that can be supported;Described second supports mark setting unit, for being set after receiving the message according to the message It puts Webp format pictures corresponding with browser and supports mark;Described second supports mark judging unit, under browser During secondary access network picture, judge whether that Webp format pictures support mark, and will determine that result is sent to browser;Institute State third receiving unit, for receive accessed end return judge whether Webp format picture branch corresponding with access end Hold mark as a result, if it is present the first transmitting element of triggering;If it is not, then triggering attributes extraction unit.
  13. 13. system according to claim 12, which is characterized in that the browser further include display effect detection unit, Display effect judging unit and the first support mark eliminate unit and/or the 4th transmitting element, when browser includes the 4th hair When sending unit, the server includes second and mark is supported to eliminate unit, wherein:
    The display effect detection unit, for detecting the display effect of Webp format pictures;
    The display effect judging unit, for judging whether the display effect meets preset condition, if it is not, then triggering the One supports mark to eliminate unit;
    Described first supports mark to eliminate unit, and mark is supported for eliminating the Webp format pictures of setting;
    4th transmitting element, for when display effect is unsatisfactory for preset condition, Webp format pictures to be sent to server The message that can not be supported;
    Described second supports mark to eliminate unit, for after receiving the message according to message elimination setting and browsing The corresponding Webp format pictures of device support mark.
  14. 14. system according to claim 13, which is characterized in that described first supports mark setting unit to be specifically used for When judging that the property value for loading the attribute for rendering preceding extraction is identical with the property value of respective attributes after loading rendering, Webp format pictures is set to support mark in cookie file.
CN201310019875.1A 2013-01-18 2013-01-18 Access network picture, the response method of access request and its device, system Active CN103942206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310019875.1A CN103942206B (en) 2013-01-18 2013-01-18 Access network picture, the response method of access request and its device, system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310019875.1A CN103942206B (en) 2013-01-18 2013-01-18 Access network picture, the response method of access request and its device, system

Publications (2)

Publication Number Publication Date
CN103942206A CN103942206A (en) 2014-07-23
CN103942206B true CN103942206B (en) 2018-06-22

Family

ID=51189876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310019875.1A Active CN103942206B (en) 2013-01-18 2013-01-18 Access network picture, the response method of access request and its device, system

Country Status (1)

Country Link
CN (1) CN103942206B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153761A (en) * 2016-12-05 2018-06-12 阿里巴巴集团控股有限公司 Access the method, apparatus of network picture and response to network picture access
CN108268484A (en) * 2016-12-30 2018-07-10 中移(杭州)信息技术有限公司 A kind of picture loading method and terminal
CN107680144B (en) * 2017-10-16 2021-06-29 郑州云海信息技术有限公司 WebP file conversion method and device
CN113761417A (en) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 Picture loading method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1662079A (en) * 2004-01-20 2005-08-31 Lg电子株式会社 System and method for making multimedia message service compatible
CN101763357A (en) * 2008-11-13 2010-06-30 北京搜狗科技发展有限公司 Method and system for browser to load internet resources
CN101777066A (en) * 2009-12-31 2010-07-14 优视科技有限公司 Web page rendering and browsing system for mobile communication equipment terminals and application method thereof
CN101794298A (en) * 2010-01-22 2010-08-04 中兴通讯股份有限公司 Method for realizing page adaptation, page adaptation system and communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030193967A1 (en) * 2001-12-31 2003-10-16 Gregg Fenton Method, apparatus and system for processing multimedia messages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1662079A (en) * 2004-01-20 2005-08-31 Lg电子株式会社 System and method for making multimedia message service compatible
CN101763357A (en) * 2008-11-13 2010-06-30 北京搜狗科技发展有限公司 Method and system for browser to load internet resources
CN101777066A (en) * 2009-12-31 2010-07-14 优视科技有限公司 Web page rendering and browsing system for mobile communication equipment terminals and application method thereof
CN101794298A (en) * 2010-01-22 2010-08-04 中兴通讯股份有限公司 Method for realizing page adaptation, page adaptation system and communication system

Also Published As

Publication number Publication date
CN103942206A (en) 2014-07-23

Similar Documents

Publication Publication Date Title
CN101080055B (en) A method, system and device for quickly browsing webpage via mobile phone browser
US9436572B2 (en) Method and system to detect a cached web page
CN103942206B (en) Access network picture, the response method of access request and its device, system
US8935576B2 (en) Automated cabling process for a complex environment
CN109542427A (en) A kind of system customization method, apparatus and electronic equipment and storage medium
CN102970282B (en) website security detection system
WO2016144518A1 (en) Method and apparatus for fast communication of information during bluetooth discovery phase
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
CN104834588B (en) The method and apparatus for detecting resident formula cross site scripting loophole
JP2011523114A (en) Apparatus and method for sharing files
CN102480504B (en) Method and system for accessing enumerated data
CN112685211A (en) Error information display method and device, electronic equipment and medium
US11614933B2 (en) Disabling a script based on indications of unsuccessful execution of the script
CN113641924B (en) Webpage interactive time point detection method and device, electronic equipment and storage medium
CN104573486B (en) leak detection method and device
JP6088853B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
US10021210B1 (en) Providing faster data access using multiple caching servers
CN104639666B (en) Method for accessing domain name and device
CN101686244A (en) Method and system for transmitting service information
CN103106140A (en) Intelligent display device testing information display method
CN115421693A (en) Method and device for realizing micro front-end architecture, computer equipment and storage medium
CN105119927A (en) Message sending, receiving method and terminal and message sending system
CN106302004A (en) network detecting method and device
CN113612662A (en) Network monitoring method, device, readable medium and equipment
CN112783548B (en) Access method and device of network system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1197474

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant