CN103942206A - Network picture access and access request response method and device and system thereof - Google Patents

Network picture access and access request response method and device and system thereof Download PDF

Info

Publication number
CN103942206A
CN103942206A CN201310019875.1A CN201310019875A CN103942206A CN 103942206 A CN103942206 A CN 103942206A CN 201310019875 A CN201310019875 A CN 201310019875A CN 103942206 A CN103942206 A CN 103942206A
Authority
CN
China
Prior art keywords
picture
webp
access
format picture
webp format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310019875.1A
Other languages
Chinese (zh)
Other versions
CN103942206B (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]

Abstract

The embodiment of the invention discloses a network picture access method. The method includes the steps that a preset standard picture in the Webp format is acquired, and the attribute value of at least one attribute of the standard picture is extracted; the standard picture is loaded and rendered; whether the attribute value of the attribute extracted before the standard picture is loaded and rendered is the same as the attribute value of a corresponding attribute after the standard picture is loaded and rendered or not is judged, if yes, an access request for access to a network picture in the Webp format is sent, and a response message for returning the network picture in the Webp format is received so as to achieve access; if not, an access request for access to the network picture in a supported format different from the Webp format is sent, and a response message for returning the network picture in the corresponding format is received so as to achieve access to the network picture. The embodiment of the invention further discloses a network access request response method and a device and system corresponding to the method. Through the network picture access and access request response method and the device and system corresponding to the method, the network picture access (response) efficiency can be improved.

Description

The method of accesses network picture, response request of access and device thereof, system
Technical field
The application relates to technical field of information processing, particularly relates to a kind of method of accesses network picture, the method for response to network picture access request and corresponding device, system thereof.
Background technology
Webp picture format is a kind of new picture format in recent years occurring.In the situation that picture quality is equal to, there is storage space that the picture of Webp form takies with respect to the picture of extended formatting (such as jpeg format, bmp form, png form etc.) still less, resource in transmission over networks consumption obviously reduces, and the transmission time also shortens dramatically.According to test, the in the situation that of lossy compression method, the jpeg format picture of the equal image quality of volume ratio of the picture of Webp form is little by 25%~34%; The in the situation that of Lossless Compression, than little 34% left and right of png format picture generating with libpng, less by 26% than the png format picture of processing through pngout.
Above-mentioned advantage based on Webp picture format, is extensively popular after the picture release of Webp form, especially in resource-constrained access to netwoks environment just.Yet, because Webp picture format is a kind of novel picture format, most of target devices, such as browser, all to develop for traditional picture format, when accesses network picture, there is the problem of not supporting (playing up failure), play up unsuccessfully to need afterwards to reload and play up or change picture format, cause the overall efficiency of network picture access to reduce.As can be seen here, prior art needs method or the device of a kind of novel accesses network picture, response to network picture access request, to make full use of the advantage of Webp format picture, and then at net environment, improves the efficiency of accessing (response) network picture.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of method of accesses network picture, response to network picture access request and has installed accordingly and system, to make full use of the advantage of Webp format picture, at net environment, improve the efficiency of access (response) network picture.
The embodiment of the present application provides a kind of network picture access method.The method comprises:
Obtain preset standard Webp format picture, extract the property value of at least one attribute of this standard Webp format picture;
Described standard Webp format picture is played up in loading;
Whether judgement loads the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading identical, if identical, send the request of access with Webp form accesses network picture, receive the access that the response message that returns to network picture with Webp form is realized network picture; If not identical, send the request of access with the form accesses network picture that can be supported beyond Webp form, receive the access that the response message that returns to network picture with the form that can be supported beyond Webp form is realized network picture.
Preferably, described method also comprises:
When after the property value of judging the described attribute extracting before loading is played up is played up with loading, the property value of respective attributes is identical, Webp format picture support sign is set, when next accesses network picture, judge whether to exist Webp format picture support sign, if existed, carry out the step sending with the request of access of Webp form accesses network picture; If there is no, carry out the step of obtaining preset standard Webp format picture; And/or,
When after the property value of judging the described attribute extracting before loading is played up is played up with loading, the property value of respective attributes is identical, send the message that Webp format picture can be supported, so that accessed end arranges the Webp format picture support sign corresponding with access end according to this message, when next accesses network picture, receive the result that judges whether to exist the Webp format picture support sign corresponding with access end that accessed end is returned, if existed, carry out the step sending with the request of access of Webp form accesses network picture; If there is no, carry out the step of obtaining preset standard Webp format picture.
Further preferably, described method also comprises:
Detect the display effect of Webp format picture, judge whether described display effect meets pre-conditioned, if not, eliminate the Webp format picture support sign arranging, and/or, send the message that Webp format picture can not be supported, so that the Webp format picture support sign corresponding with access end arranging eliminated in accessed end according to this message.
Further preferably, when after the property value of judging the described attribute extracting before loading is played up is played up with loading, the property value of respective attributes is identical, access end arranges Webp format picture support sign in cookie file.
The embodiment of the present application also provides a kind of method of response to network picture access request.The method comprises:
After receiving request of access, to access end, send the supportive detect-message of Webp format picture, to trigger access end, obtain preset standard Webp format picture, and extract the property value of at least one attribute of this standard Webp format picture;
Receiving access end plays up loading property value that the described property value that extracts before described standard Webp format picture and loading play up the respective attributes of rear extraction and compares the whether identical judged result obtaining;
If described in judgment result is that property value is identical, with the request of access of Webp form response access end; If described in judgment result is that property value is not identical, with the request of access of the form that can the be supported response access end beyond Webp form.
Preferably, described method also comprises:
When the identical judged result of the property value that receives access end, the Webp format picture support sign corresponding with access end is set, instantly during secondary response network picture access request, after receiving request of access, judge whether to exist the Webp format picture support sign corresponding with access end, if existed, carry out the step with the request of access of Webp form response access end; If there is no, carry out the step that sends the supportive detect-message of Webp format picture to access end; And/or,
Instantly during secondary response network picture access request, after receiving request of access, to access end, send the apply for information that whether has Webp format picture support sign, described Webp format picture support sign arranges when identical by the property value of access end respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, if existed, carry out the step with the request of access of Webp form response access end; If there is no, carry out the step that sends the supportive detect-message of Webp format picture to access end.
With said method embodiment accordingly, the embodiment of the present application also provides a kind of device of accesses network picture.This device comprises: attributes extraction unit, loading rendering unit, determined property unit, the first transmitting element and the first receiving element, and the second transmitting element and the second receiving element, wherein:
Described attributes extraction unit, for obtaining preset standard Webp format picture, extracts the property value of at least one attribute of this standard Webp format picture;
Described loading rendering unit, plays up described standard Webp format picture for loading;
Whether identical described determined property unit, load the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading for judging, if identical, trigger the first transmitting element; If not identical, trigger the second transmitting element;
Described the first transmitting element, for sending the request of access with Webp form accesses network picture;
Described the first receiving element, realizes the access of network picture for receiving the response message that returns to network picture with Webp form;
Described the second transmitting element, for sending the request of access with the form accesses network picture that can be supported beyond Webp form;
Described the second receiving element, realizes the access of network picture for receiving the response message that returns to network picture with the form that can be supported beyond Webp form.
Preferably, described device also comprises: support mark setting unit and support sign judging unit, wherein:
Described support mark setting unit, when identical for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, arranges Webp format picture support sign;
Described support sign judging unit, for when the next accesses network picture, judges whether to exist Webp format picture support sign, if existed, triggers the first transmitting element; If there is no, trigger attributes extraction unit;
And/or, the 3rd transmitting element and the 3rd receiving element, wherein:
Described the 3rd transmitting element, when identical for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, send the message that Webp format picture can be supported, so that accessed end arranges the Webp format picture support sign corresponding with access end according to this message;
Described the 3rd receiving element, for when the next accesses network picture, receives the result that judges whether to exist the Webp format picture support sign corresponding with access end that accessed end is returned, if existence triggers the first transmitting element; If there is no, trigger attributes extraction unit.
Further preferably, described device also comprises display effect detecting unit, display effect judging unit, and supports sign to eliminate unit and/or the 4th transmitting element, wherein:
Described display effect detecting unit, for detection of the display effect of Webp format picture;
Described display effect judging unit, pre-conditioned for judging whether described display effect meets, if not, trigger and support sign to eliminate unit;
Described support sign is eliminated unit, for eliminating the Webp format picture support sign of setting;
Described the 4th transmitting element, when pre-conditioned for not meeting in display effect, sends the message that Webp format picture can not be supported, so that the Webp format picture support sign corresponding with access end arranging eliminated in accessed end according to this message.
The embodiment of the present application also provides a kind of device of response to network picture access request.This device comprises: detect-message transmitting element, judged result receiving element, the first response unit and the second response unit, wherein:
Described detect-message transmitting element, for send the supportive detect-message of Webp format picture to access end after receiving request of access, to trigger access end, obtain preset standard Webp format picture, and extract the property value of at least one attribute of this standard Webp format picture;
Described judged result receiving element, for receiving access end, loading is played up to property value that the described property value that extracts before described standard Webp format picture and loading play up the respective attributes of rear extraction and compare the whether identical judged result obtaining, if described in judgment result is that property value is identical, trigger the first response unit, if described in judgment result is that property value is not identical, triggers the second response unit;
Described the first response unit, for the request of access of the network photo response access end with Webp form;
Described the second response unit, for the request of access of the network photo response access end with the Webp form form that can be supported in addition.
In addition, the embodiment of the present application also provides a kind of network picture access system.This system comprises server and browser, wherein:
Described server is for providing preset standard Webp format picture to browser, also for when receiving browser with the request of access of Webp form accesses network picture with Webp form network photo response, when receiving browser with the request of access of the form accesses network picture that can be supported beyond Webp form with the network photo response of the form that can be supported beyond Webp form;
Described browser comprises: attributes extraction unit, loading rendering unit, determined property unit, the first transmitting element and the first receiving element, and second transmitting element and the second receiving element, wherein: described attributes extraction unit, for obtaining preset standard Webp format picture from server, extract the property value of at least one attribute of this standard Webp format picture; Described loading rendering unit, plays up described standard Webp format picture for loading; Whether identical described determined property unit, load the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading for judging, if identical, trigger the first transmitting element; If not identical, trigger the second transmitting element; Described the first transmitting element, for sending the request of access with Webp form accesses network picture; Described the first receiving element, realizes the access of network picture for receiving the response message that returns to network picture with Webp form; Described the second transmitting element, for sending the request of access with the form accesses network picture that can be supported beyond Webp form; Described the second receiving element, realizes the access of network picture for receiving the response message that returns to network picture with the form that can be supported beyond Webp form.
Preferably, described browser also comprises the first support mark setting unit and the first support sign judging unit, wherein: described first supports mark setting unit, when identical for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, Webp format picture support sign is set; Described second supports sign judging unit, for when the next accesses network picture, judges whether to exist Webp format picture support sign, if existed, triggers the first transmitting element; If there is no, trigger attributes extraction unit; And/or,
Described browser also comprises the 3rd transmitting element and the 3rd receiving element, described server also comprises the second support mark setting unit and the second support sign judging unit, wherein: described the 3rd transmitting element, for judge the property value that loads the described attribute extracting before playing up with load play up after the property value of respective attributes when identical, the message that can be supported to server transmission Webp format picture; Described second supports mark setting unit, for the Webp format picture support sign corresponding with browser is set according to this message after receiving described message; Described second supports sign judging unit, for when browser accesses network picture next time, judges whether to exist Webp format picture support sign, and judged result is sent to browser; Described the 3rd receiving element, the result that judges whether to exist the Webp format picture support sign corresponding with access end of returning for receiving accessed end, if existed, triggers the first transmitting element; If not, trigger attributes extraction unit.
Further preferably, described browser also comprises display effect detecting unit, display effect judging unit, and the first support sign elimination unit and/or the 4th transmitting element, when browser comprises the 4th transmitting element, described server comprises the second support sign elimination unit, wherein:
Described display effect detecting unit, for detection of the display effect of Webp format picture;
Described display effect judging unit, pre-conditioned for judging whether described display effect meets, if not, trigger the first support sign and eliminate unit;
Described first supports sign to eliminate unit, for eliminating the Webp format picture support sign of setting;
Described the 4th transmitting element, when pre-conditioned for not meeting in display effect, sends the message that Webp format picture can not be supported;
Described second supports sign to eliminate unit, for eliminate according to this message the Webp format picture support sign corresponding with browser arranging after receiving described message.
Further preferably, described first while supporting that mark setting unit is identical specifically for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, and Webp format picture support sign is set in cookie file.
The embodiment of the present application loads and plays up, compares the operation judges access ends such as property value and whether supports Webp format picture by the preset standard Webp format picture to obtaining.Compared with prior art, whether access end is judged access end and is supported Webp format picture to be conducive to accessed end to choose the access that correct format picture is realized network picture: when access end is supported Webp format picture, accessed end with Webp format picture response request of access to realize the access of network picture; When access end is not supported Webp format picture, accessed end with other photo response request of access that can be supported outside Webp format picture to realize the access of network picture, due under equal image quality condition, " volume " of Webp format picture is less than extended formatting picture, thereby improved transmission speed, and then improved on the whole access (response) efficiency of network picture.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, the accompanying drawing the following describes is only some embodiment that record in the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of method of the accesses network picture of the embodiment of the present application one;
Fig. 2 is the process flow diagram of method of the accesses network picture of the embodiment of the present application two;
Fig. 3 is the process flow diagram of method of the response to network picture access request of the embodiment of the present application three;
Fig. 4 is the structured flowchart of device of a kind of accesses network picture of the embodiment of the present application four;
Fig. 5 is the structured flowchart of device of the another kind of accesses network picture of the embodiment of the present application four;
Fig. 6 is the structured flowchart of the network picture access system of the embodiment of the present application five.
Embodiment
In order to make those skilled in the art person understand better the technical scheme in the application, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all should belong to the scope of the application's protection.
Embodiment mono-
Webp form, as a kind of novel picture format, often faces supportive (compatibility) problem (demand) of the access end (such as browser) of network picture to this form, and then has influence on access or the response efficiency of network picture.Such as, when browser passes through the picture of network access server, if do not carry out supportive detection, server directly sends to browser by " volume " less Webp format picture, may not support the picture of this form to cause loading to play up failure due to browser, at this moment server need to resend the picture of extended formatting, thereby have influence on network picture access or response efficiency and user, experiences.
When Webp format picture is when net environment is used, access end sends after request of access, if accessed end can be known access end and have the ability of supporting Webp format picture, the picture that access end need to be able to be accessed sends to access end in the mode of Webp form, because Webp format picture is less than the volume of extended formatting picture, thereby can save transfer resource, improve access (response) efficiency of network picture.Referring to Fig. 1, this figure shows the flow process of method of the accesses network picture of the embodiment of the present application one from the angle of access end.This embodiment comprises:
Step S101: obtain preset standard Webp format picture, extract the property value of at least one attribute of this standard Webp format picture;
Access end, before carrying out network picture access or in access process, can obtain preset standard Webp format picture, utilizes supportive to Webp format picture of this standard Webp format picture test access end.Here obtaining the operation of preset standard Webp format picture can carry out under certain trigger condition, this trigger condition can directly embody the instruction for people, such as, before access end carries out network picture access, eject dialog box, whether inquiry needs to carry out the supportive detection of Webp format picture, if receive the acknowledge message from user, triggers the step of obtaining preset standard Webp format picture; This trigger condition can also be presented as pre-conditioned being met, such as, at access end, access for the first time after certain server, monitor the supportive detect-message that server sends, trigger the step of obtaining preset standard Webp format picture.
The preset standard Webp format picture is here for detection of access end, whether to support a carrier of Webp format picture, and itself is the operand of the application of conduct based on Webp format picture not.Such as, in passing through the networking picture process of browser access server, preset standard Webp format picture is not the Target Photo that browser will be accessed, but a prior Webp format picture that is positioned at server end or browser end preset or that generate in advance according to certain rule.Because this Webp format picture only needs to play the effect whether browser supports Webp format picture that detects, therefore, in actual application, for improving supportive detection speed and efficiency, conventionally this Webp format picture is set to a standardization picture, and " standardization " can be presented as fixed width, height or fixed size etc.
Also it should be noted that: preset standard Webp format picture can be pre-stored local at access end, also can download by network, the concrete Starting mode that adopts which kind of mode to depend on supportive detection: when being started by access end, access end, before sending request of access, can recall from this locality preset standard Webp format picture and complete supportive testing process; When being started by accessed end, access end can receive from the pre-stored standard Webp format picture in accessed end, then utilizes this standard Webp format picture to complete the supportive testing process of access end.
Step S102: load and play up described standard Webp format picture;
Step S103: whether judgement loads the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading identical, if identical, performs step S104: if not identical, perform step S105;
After loading is played up, may there are two kinds of situations: the one, load and play up successfully, loading is played up and is successfully shown as preset standard Webp format picture and do not change before and after loading, this standard Webp format picture does not have the phenomenons such as disappearance, corrupted, distortion after loading and playing up, based on this, can judge whether to load and play up successfully by relatively loading the whether identical mode of property value of the respective attributes before and after playing up, if property value is identical, illustrate after loading is played up and do not change, show access end support Webp format picture; The 2nd, load and play up failure, loading is played up failure and is shown as default Webp format picture variation has occurred after loading is played up, this standard Webp format picture fails to load, or load and to occur distortion, the phenomenon such as damaged after playing up, based on this, the attribute of the result after loading is played up (can still show as a pictures) is inevitable there is difference before playing up with its loading, thereby shows that access end do not support Webp format picture.In actual application, for improving the accuracy detecting, a plurality of attributes can be set to be detected jointly, in step S101, extract the property value of a plurality of attributes, after loading is played up, in step S103, these a plurality of property values and the property value that loads the result respective attributes after playing up are compared, if all identical, think that access end supports Webp format picture.
Above-mentioned steps S101~S103 can adopt the realizations such as program language Javascript, Java.And, in actual testing process, can also preset standard Webp format picture be carried out to special coding according to the difference that detects triggering mode, with acceleration detection.Such as, when detecting trigger request by startup of server, access end can receive from accessed end, adopt the standard Webp format picture after base64 coding, and utilize this standard Webp picture to realize and detect.Below the exemplary detection core code providing by Javascript language compilation:
In this code segment, the base64 of given standard Webp picture coding is highly 2, after the LOAD through picture (loading is played up) operation, if the height of picture is still 2, can show that access end can support Webp format picture, otherwise, illustrate that access end do not support Webp format picture.
Step S104: send the request of access with Webp form accesses network picture, receive the access that the response message that returns to network picture with Webp form is realized network picture;
Through aforesaid detecting step, if access end can be supported Webp format picture, to accessed end, send the request of access with Webp form accesses network picture, make accessed end by the requirement of request of access, with Webp form, return to the response message of network picture, access end is realized the access of network picture after receiving this response message, thereby utilizes the advantage of Webp format picture to reduce transfer resource.The response message that network picture is returned to Webp form in the accessed end that access end receives can be that the Webp form in the in advance preset plurality of picture form in accessed end directly returns, also can be accessed end after learn access end " with Webp form accesses network picture ", the picture of extended formatting is converted to Webp format picture and sends to access end.
Step S105: send the request of access with the form accesses network picture that can be supported beyond Webp form, receive the access that the response message that returns to network picture with the form that can be supported beyond Webp form is realized network picture;
Through aforesaid detecting step, if access end is not supported Webp format picture, extended formatting from the access end beyond Webp form to accessed end transmission that can support with (such as, JPG form) request of access of accesses network picture, make accessed end by the requirement of request of access, with Webp form, return to the response message of network picture, access end receives the access that realizes network picture after this response message.
The present embodiment is in accesses network picture process, access end judges whether himself supports Webp format picture, be conducive to access end and correctly receive picture format, thereby realize the access of network picture: when access end is supported Webp format picture, from accessed end, receive Webp format picture and realize picture access, when access end is not supported Webp format picture, other pictures that can be supported that receive outside Webp format picture from accessed end are realized picture access, due under equal image quality condition, " volume " of Webp format picture is less than extended formatting picture, thereby improved transmission speed, and then improved the access efficiency of network picture.
Embodiment bis-
In the above-described embodiments, access end is judged and is supported after Webp format picture, by receiving the Webp format picture returning according to request of access accessed end, has realized goal of the invention.But, if when same access end is accessed at every turn, all carry out the supportive decision operation of Webp format picture, be actually unnecessary repetition, cause the waste of processing resource.For this reason, the present embodiment is preferably after carrying out for the first time the supportive judgement of Webp format picture, if access end is supported Webp format picture, carry out mark, Webp format picture support sign is set, like this, when this access end carries out accessing next time, can carry out again the supportive decision operation of Webp format picture, and directly take appropriate measures.Webp format picture support sign is set here and can comprises following two kinds of implementations:
One of mode: by access end, the support of Webp format picture is directly set and indicates.The main cause of adopting is in this way: on the one hand, executive agent as the supportive detection of Webp format picture, it can know self supportive situation to Webp format picture in time, Webp format picture support sign can be promptly set, be conducive to save the whole time of access to netwoks; On the other hand, owing to arranging in this locality, without notifying accessed end by testing result, thus the mistake that can avoid transmitting procedure to bring; On the one hand, this sign set-up mode is completed by the access end self of One's name is legion again, if by register-stored, only need a small amount of register, thereby reduces storage resources, is conducive to disperse the working load of accessed end.While specifically arranging, this sign can be arranged in the cookie file that access end this locality maintains.
Two of mode: by accessed end, the Webp format picture support corresponding with access end is set and indicates.By which, Webp format picture support sign being set needs access end that testing result is sent to accessed end, so that accessed end arranges the Webp format picture support sign corresponding with access end according to this message after receiving this message.The reason of adopting is in this way: generally speaking, the processing power of accessed end is stronger, when a plurality of access ends send after testing result message to same accessed end, can, concentrated setting unified by accessed end, thus the mode arranging respectively than each access end has bulk velocity faster.After arranging like this, when access end carries out network picture access, can ask accessed end according to its pre-stored picture format, to carry out the form response of " initiatively ": if access end is supported Webp format picture, receive accessed end with the picture of Webp form response to realize the access of network picture, otherwise the picture that reception accessed end responds with extended formatting (such as JPG form) is to realize the access of network picture.
By aforementioned manner, arrange after Webp format picture support sign, in some situation, may need to cancel this setting.Such as, although access end is confirmed self can support Webp format picture, but based on a variety of causes, access end shows that the effect of Webp format picture may be not as expected, in this case as may more wishing to adopt extended formatting picture to the user of network picture access, even if it will take more storage resources or transfer resource.For this reason, the application is preferably in the situation that understanding access end Webp format picture is supported, access end also detects the actual displayed effect of Webp format picture, then judge whether its display effect meets pre-conditioned, if meet, can continue to retain Webp format picture support sign; If do not met, eliminate the Webp format picture support sign previously having arranged, or further, Webp format picture is set and does not support sign.By such operation, although some access ends can be supported Webp format picture, owing to showing that the display effect of Webp format picture is bad, may be pushed into " blacklist ", thereby it is filtered out from the access end of support Webp format picture.
It should be noted that: corresponding with two kinds of modes of the above-mentioned Webp of setting format picture support sign, the mode of eliminating Webp format picture support sign also can comprise two kinds: a kind of is directly by access end this supports that disappear, to be indicated; Another kind is that access end detects and need to cancel after Webp format picture support sign, this message is sent to accessed end with the form of " Webp format picture can not be supported ", so that the Webp format picture support sign corresponding with access end arranging eliminated in accessed end according to this message.
Webp format picture support sign based on above-mentioned setting, can on embodiment mono-basis, there is mode of texturing (embodiment bis-) in the application, be access end when carrying out network picture access next time, can first judge whether to arrange Webp format picture support sign, and then take appropriate measures.Referring to Fig. 2, the figure shows the flow process of this mode of texturing.This flow process comprises:
Step S201: judge whether to exist Webp format picture support sign, if existed, perform step S205; If there is no, enter step S202;
Step S202: obtain preset standard Webp format picture, extract the property value of at least one attribute of this standard Webp format picture;
Step S203: load and play up described standard Webp format picture;
Step S204: whether judgement loads the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading identical, if identical, performs step S205: if not identical, perform step S206;
Step S205: send the request of access with Webp form accesses network picture, receive the access that the response message that returns to network picture with Webp form in accessed end is realized network picture;
Step S206: send the request of access with the form accesses network picture that can be supported beyond Webp form, receive the access that the response message that returns to network picture with the form that can be supported beyond Webp form in accessed end is realized network picture.
Embodiment tri-
Aforementioned two situations that embodiment has described to realize network picture access based on Webp format picture from the angle of access end, are described from the angle of accessed end below, the method for a kind of response to network picture access request that the present embodiment provides.Referring to Fig. 3, the figure shows the flow process of the method for the response to network picture access request of describing from the angle of accessed end, this flow process comprises:
Step S301: send the supportive detect-message of Webp format picture to access end after receiving request of access, obtain preset standard Webp format picture to trigger access end, and extract the property value of at least one attribute of this standard Webp format picture;
Accessed end receives after the request of access of access end transmission, generally by the request of the picture format with traditional (such as JPG form) response access end.In the present embodiment, the testing of whether access end being supported to Webp format picture, before the request of response access end, is first triggered, to respond targetedly the request of access end according to testing result in accessed end.Accessed end sends the supportive detect-message of Webp format picture to access end after receiving request of access, thereby trigger access end, obtains preset standard Webp format picture, and extracts the property value relatively judging for subsequent step.It should be noted that: the preset standard Webp format picture here can be that accessed end is carried in detect-message and sends to access end, can be also that trigger after access end accessed end, by access end, from himself or other equipment, is obtained.
Step S302: receive access end and loading is played up to property value that the described property value that extracts before described standard Webp format picture and loading play up the respective attributes of rear extraction and compare the whether identical judged result obtaining; If described in judgment result is that property value is identical, perform step S303; If described in judgment result is that property value is not identical, performs step S304;
Step S303: with the request of access of Webp form response access end;
Step S304: with the request of access of the form that can the be supported response access end beyond Webp form.
Describe network picture access process based on accessed end after, same reason, when avoiding accessed end to receive the request of access from same access end at every turn, all trigger the supportive testing process of Webp format picture, can arrange and support sign, this support sign can be set directly at access end on the one hand, like this, when accessed end received after request of access in next time, can trigger the judgement to supporting that whether sign exists by the detect-message sending to access end, then, accessed end is receiving access end to supporting to indicate after the judged result whether existing, according to the request of access of judged result response access end, on the other hand can by accessed end receive access end to the testing result of the supportive detection of Webp format picture after, by accessed end, the support of Webp format picture being set indicates, like this, when accessed end received after request of access in next time, can directly judge whether to exist Webp to support sign, then according to the request of access of the result response access end of judgement.Further, can carry out Processing for removing to the support sign arranging, its process and above-mentioned description from access end angle are similar, for avoiding repetition, and superfluous words no longer here.
Embodiment tetra-
Above-described embodiment is embodiment of the method, with embodiment of the method accordingly, the application also provides a kind of device embodiment of accesses network picture, this device is mainly described the access process of network picture from access end angle.Referring to Fig. 4, this figure shows the structured flowchart of this device from the angle of access end, and the device of this accesses network picture can be embedded in actual applications and in browser, forms a kind of new browser.This device comprises: attributes extraction unit 401, loading rendering unit 402, determined property unit 403, the first transmitting element 404 and the first receiving element 405, and the second transmitting element 406 and the second receiving element 407, wherein:
Attributes extraction unit 401, for obtaining preset standard Webp format picture, extracts the property value of at least one attribute of this standard Webp format picture;
Load rendering unit 402, for loading described standard Webp format picture;
Whether identical determined property unit 403, load the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading for judging, if identical, trigger the first transmitting element 404; If not identical, trigger the second transmitting element 405;
The first transmitting element 404, for sending the request of access with Webp form accesses network picture;
The first receiving element 405, realizes the access of network picture for receiving the response message that returns to network picture with Webp form;
The second transmitting element 406, for sending the request of access with the form accesses network picture that can be supported beyond Webp form;
The second receiving element 407, realizes the access of network picture for receiving the response message that returns to network picture with the form that can be supported beyond Webp form.
The course of work of present networks picture access device embodiment is: when needs carry out network picture access or in network picture access process, by attributes extraction unit 401, obtain preset standard Webp format picture, extract the property value of at least one attribute of this standard Webp format picture, then by loading rendering unit 402 loadings, play up described standard Webp format picture, after loading is played up and has been operated, whether determined property unit 403 judgement loads the property value that the property value of the described attribute of playing up front extraction plays up rear respective attributes with loading identical, if identical, trigger the request of access that the first transmitting element 404 sends with Webp form accesses network picture, then by the first receiving element 405, receive the access that the response message that returns to network picture with Webp form in accessed ends is realized network picture, if it is not identical, trigger the second transmitting element 406 and send the request of access with the form accesses network picture that can be supported beyond Webp form, then by the second receiving element 407, receive the access that the response message that returns to network picture with the form that can be supported beyond Webp form is realized network picture.
Although the device embodiment of aforesaid accesses network picture can realize the application's goal of the invention, but, in this embodiment, often carry out the access of primary network picture, all will trigger the supportive testing process of Webp format picture, and in actual application, access end may need same accessed end repeatedly to access, same " access end " it is consistent to the supportive of Webp format picture in access process repeatedly, can not change with the variation of access times.For this reason, can in aforementioned means embodiment, increase and support mark setting unit 408, when identical for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, Webp format picture support sign is set, like this, when identical " access end " carries out later for the second time access to accessed end, can first to the existence of this sign, whether judge, if existed, illustrate that access end shows that by detection it has the ability of supporting Webp format picture, can directly receive the response message that accessed end is responded with Webp form, on the contrary, receive the response message that accessed end is responded with extended formatting.The support sign of the above-mentioned Webp of setting format picture can comprise two kinds of specific implementations: the one, at access end self, arrange, and the 2nd, in accessed end, arrange.For the first situation, referring to Fig. 4, can judge and himself support, after Webp format picture, corresponding sign to be directly set at access end; For second case, referring to Fig. 5 (the figure shows the structured flowchart of the device of another kind of accesses network picture), need to can support after Webp format picture judging access end, by the 3rd transmitting element, to accessed end, send the message that Webp format picture can be supported, so that accessed end arranges the sign of the support Webp format picture corresponding with access end according to this message.It should be noted that: above-mentioned two kinds specifically arrange Webp format picture support sign and can exist simultaneously, both at access end, Webp format picture support sign was set, Webp format picture support sign is also set in accessed end, like this can be by user according to the situation choice for use of self a kind of pattern or open two kinds of patterns wherein simultaneously.
Be provided with under the situation of Webp format picture support sign, aforementioned means embodiment may further include and supports sign judging unit 409, referring to Fig. 4, this unit is for when next accesses network picture, judge whether to exist Webp format picture support sign, if so, trigger the first transmitting element and to accessed end, directly send the request of access with Webp form accesses network picture, so that the format picture that it needs is returned to by its requirement in accessed end; If not, trigger attributes extraction unit and carry out the supportive detecting step of Webp format picture.Similarly, the support sign arbitration functions here still can have been brought in by accessed, referring to Fig. 5, when next accesses network picture, by the 3rd receiving element, receive the result that judges whether to exist the Webp format picture support sign corresponding with access end that access end returns, if exist, trigger the first transmitting element; If not, trigger attributes extraction unit and carry out the supportive detecting step of Webp format picture.
The Webp format picture support of the support mark setting unit setting by aforementioned increase indicates, in actual application, may occur unsatisfactory part.Such as, although certain access end is supported the picture of Webp form, after it is played up, its display effect is also bad, this equates access end and " does not support Webp format picture ".For this reason, said apparatus embodiment can also comprise display effect detecting unit 410, display effect judging unit 411 and support sign to eliminate unit 412, referring to Fig. 4, wherein the function of each unit is: display effect detecting unit 410, for detection of the display effect of Webp format picture; Display effect judging unit 411, pre-conditioned for judging whether described display effect meets, if not, trigger and support sign to eliminate unit; Support sign to eliminate unit 412, eliminate the Webp format picture support sign arranging.Although some can be supported to Webp format pictures but the bad access end of display effect filters out by this processing.It should be noted that: corresponding with arranging of Webp format picture support sign, the function that the support sign is here cancelled unit also can or complete at access end, or completes in accessed end.Referring to Fig. 5, when completing in accessed end, access end is judged display effect by display effect judging unit and is not met when pre-conditioned, by the 4th transmitting element, to accessed end, send the message that Webp format picture can not be supported, so that the Webp format picture support sign corresponding with access end arranging eliminated in accessed end according to this message.
The foregoing of this device embodiment has been described the access process of network picture from the angle of access end, be described below from the angle of accessed end, its essence is a kind of device of response to network picture access request.The device of describing response to network picture access request from the angle of accessed end can be embedded into and in server, forms a kind of new server actual application.This device comprises: detect-message transmitting element, judged result receiving element, the first response unit and the second response unit, wherein:
Described detect-message transmitting element, for send the supportive detect-message of Webp format picture to access end after receiving request of access, to trigger access end, obtain preset standard Webp format picture, and extract the property value of at least one attribute of this standard Webp format picture;
Described judged result receiving element, for receiving access end, loading is played up to property value that the described property value that extracts before described standard Webp format picture and loading play up the respective attributes of rear extraction and compare the whether identical judged result obtaining, if described in judgment result is that property value is identical, trigger the first response unit, if described in judgment result is that property value is not identical, triggers the second response unit;
Described the first response unit, for the request of access with Webp form response access end;
Described the second response unit, for the request of access of the form that can the be supported response access end with beyond Webp form.
Embodiment five
The application also provides a kind of network picture access system.Referring to Fig. 6, the figure shows the structured flowchart of this system.This system comprises server 601 and browser 602, wherein:
Server 601 is for providing preset standard Webp format picture to browser, also for when receiving browser with the request of access of Webp form accesses network picture with Webp form network photo response, when receiving browser with the request of access of the form accesses network picture that can be supported beyond Webp form with the network photo response of the form that can be supported beyond Webp form;
Browser 602 comprises: attributes extraction unit 6021, loading rendering unit 6022, determined property unit 6023, the first transmitting element 6024 and the first receiving element 6025, and second transmitting element 6026 and the second receiving element 6027, wherein: attributes extraction unit 6021, for obtaining preset standard Webp format picture from server, extract the property value of at least one attribute of this standard Webp format picture; Load rendering unit 6022, for loading, play up described standard Webp format picture; Whether identical determined property unit 6023, load the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading for judging, if identical, trigger the first transmitting element 6024; If not identical, trigger the second transmitting element 6026; The first transmitting element 6024, for sending the request of access with Webp form accesses network picture; The first receiving element 6025, realizes the access of network picture for receiving the response message that returns to network picture with Webp form; The second transmitting element 6026, for sending the request of access with the form accesses network picture that can be supported beyond Webp form; The second receiving element 6027, realizes the access of network picture for receiving the response message that returns to network picture with the form that can be supported beyond Webp form.
The course of work of said system embodiment is referring to the description of previous embodiment, for avoiding repeating here no longer superfluous words.It should be noted that: in actual application, the function mode of said system embodiment can be: at browser first during the network picture of access services device, browser sends after the request of accesses network picture to server, by server, the shell script that carries out the supportive detection of browser Webp format picture is put into the HTML code of returning to browser, when browser receives after these codes, move this shell script and realize the detection of whether this browser being supported to Webp format picture, if find after testing browser, can support Webp format picture, in this testing result being write to the cookie file of browsers local maintenance.When browser carries out for the second time or for the second time during later network picture access, first read the content of cookie file, analyze self and whether support Webp format picture, if supported, in being sent to the request of access of server, clearly wish that server returns to the network picture of request access with Webp form, server receives after this request, to browser, returns to Webp format picture, thereby realizes the access of network picture.
In real world applications process, based on some special requirement, can also be optimized said system embodiment.Such as can also comprising the first support mark setting unit 6028 and first, browser supports sign judging unit 6029, wherein: first supports mark setting unit 6028, when identical for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, Webp format picture support sign is set, supports mark setting unit that the sign that browser is supported Webp format picture can be set when specifically arranging in COOKIE file; Second supports sign judging unit 6029, for when the next accesses network picture, judges whether to exist Webp format picture support sign, if so, triggers the first transmitting element; If not, trigger attributes extraction unit.Can avoid in this way browser when carrying out network picture access, all to carry out the supportive detection of Webp format picture at every turn, and only need be after detecting first, next time is the sign of judgement setting directly, thereby can save on the whole the access efficiency of network picture.
Further, browser can also comprise display effect detecting unit 6030, display effect judging unit 6031 and the first support sign elimination unit 6032, wherein: and display effect detecting unit 6030, for detection of the display effect of Webp format picture; Display effect judging unit 6031, pre-conditioned for judging whether described display effect meets, if not, trigger the first support sign and eliminate unit; First supports sign to eliminate unit 6032, for eliminating the Webp format picture support sign of setting.Although some can be supported to Webp format pictures but get rid of and using outside the scope of Webp format picture because of the bad browser of a variety of causes display effect by which, thereby improving on the whole the access performance of network picture.
It should be noted that: above-mentioned is directly in browser side, to increase and support mark setting unit, support sign judging unit and support sign to eliminate unit, and in fact, the application can also be by these function setting of browser side at server side.Under this situation, browser can comprise the 3rd transmitting element and the 3rd receiving element, described server correspondingly comprises the second support mark setting unit and the second support sign judging unit, wherein: described the 3rd transmitting element, for judge the property value that loads the described attribute extracting before playing up with load play up after the property value of respective attributes when identical, the message that can be supported to server transmission Webp format picture; Described second supports mark setting unit, for the Webp format picture support sign corresponding with browser is set according to this message after receiving described message; Described second supports sign judging unit, for when browser accesses network picture next time, judges whether to exist Webp format picture support sign, and judged result is sent to browser; Described the 3rd receiving element, the result that judges whether to exist the Webp format picture support sign corresponding with access end of returning for receiving accessed end, if existed, triggers the first transmitting element; If not, trigger attributes extraction unit.Further, when the display effect of Webp format picture on browser do not reach preset standard, browser can comprise the 4th transmitting element, described server comprises the second support sign elimination unit, wherein: described the 4th transmitting element, when pre-conditioned for not meeting in display effect, to server, send the message that Webp format picture can not be supported; Described second supports sign to eliminate unit, for eliminate according to this message the Webp format picture support sign corresponding with browser arranging after receiving described message.
Easy for what narrate, the different embodiment of this instructions stress is all the difference with other embodiment, between each embodiment identical similar part can be mutually referring to.Especially, for device, system embodiment, because it is substantially similar in appearance to embodiment of the method, so describe fairly simplely, relevant part can be referring to the explanation of embodiment of the method.Each unit of device described above, system embodiment can or can not be also physically to separate, and both can be positioned at a place, or also can be distributed to a plurality of net environments.In actual application, can select according to the actual needs some or all of unit wherein to realize the application's goal of the invention, those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
The above is only the application's embodiment; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection domain.

Claims (14)

1. a method for accesses network picture, is characterized in that, the method comprises:
Obtain preset standard Webp format picture, extract the property value of at least one attribute of this standard Webp format picture;
Described standard Webp format picture is played up in loading;
Whether the property value that judgement loads the described attribute of playing up front extraction is identical with the property value that loads the respective attributes of playing up rear extraction, if identical, send the request of access with Webp form accesses network picture, receive the access that the response message that returns to network picture with Webp form is realized network picture; If not identical, send the request of access with the form accesses network picture that can be supported beyond Webp form, receive the access that the response message that returns to network picture with the form that can be supported beyond Webp form is realized network picture.
2. method according to claim 1, is characterized in that, described method also comprises:
When after the property value of judging the described attribute extracting before loading is played up is played up with loading, the property value of respective attributes is identical, Webp format picture support sign is set, when next accesses network picture, judge whether to exist Webp format picture support sign, if existed, carry out the step sending with the request of access of Webp form accesses network picture; If there is no, carry out the step of obtaining preset standard Webp format picture; And/or,
When after the property value of judging the described attribute extracting before loading is played up is played up with loading, the property value of respective attributes is identical, send the message that Webp format picture can be supported, so that accessed end arranges the Webp format picture support sign corresponding with access end according to this message, when next accesses network picture, receive the result that judges whether to exist the Webp format picture support sign corresponding with access end that accessed end is returned, if existed, carry out the step sending with the request of access of Webp form accesses network picture; If there is no, carry out the step of obtaining preset standard Webp format picture.
3. method according to claim 2, is characterized in that, described method also comprises:
Detect the display effect of Webp format picture, judge whether described display effect meets pre-conditioned, if not, eliminate the Webp format picture support sign arranging, and/or, send the message that Webp format picture can not be supported, so that the Webp format picture support sign corresponding with access end arranging eliminated in accessed end according to this message.
4. method according to claim 2, is characterized in that, when after the property value of judging the described attribute extracting before loading is played up is played up with loading, the property value of respective attributes is identical, access end arranges Webp format picture support sign in cookie file.
5. a method for response to network picture access request, is characterized in that, the method comprises:
After receiving request of access, to access end, send the supportive detect-message of Webp format picture, to trigger access end, obtain preset standard Webp format picture, and extract the property value of at least one attribute of this standard Webp format picture;
Receiving access end plays up loading property value that the described property value that extracts before described standard Webp format picture and loading play up the respective attributes of rear extraction and compares the whether identical judged result obtaining;
If described in judgment result is that property value is identical, with the request of access of Webp form response access end; If described in judgment result is that property value is not identical, with the request of access of the form that can the be supported response access end beyond Webp form.
6. method according to claim 5, is characterized in that, described method also comprises:
When the identical judged result of the property value that receives access end, the Webp format picture support sign corresponding with access end is set, instantly during secondary response network picture access request, after receiving request of access, judge whether to exist the Webp format picture support sign corresponding with access end, if existed, carry out the step with the request of access of Webp form response access end; If there is no, carry out the step that sends the supportive detect-message of Webp format picture to access end; And/or,
Instantly during secondary response network picture access request, after receiving request of access, to access end, send the apply for information that whether has Webp format picture support sign, described Webp format picture support sign arranges when identical by the property value of access end respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, if existed, carry out the step with the request of access of Webp form response access end; If there is no, carry out the step that sends the supportive detect-message of Webp format picture to access end.
7. a device for accesses network picture, is characterized in that, this device comprises: attributes extraction unit, loading rendering unit, determined property unit, the first transmitting element and the first receiving element, and the second transmitting element and the second receiving element, wherein:
Described attributes extraction unit, for obtaining preset standard Webp format picture, extracts the property value of at least one attribute of this standard Webp format picture;
Described loading rendering unit, plays up described standard Webp format picture for loading;
Whether identical described determined property unit, load the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading for judging, if identical, trigger the first transmitting element; If not identical, trigger the second transmitting element;
Described the first transmitting element, for sending the request of access with Webp form accesses network picture;
Described the first receiving element, realizes the access of network picture for receiving the response message that returns to network picture with Webp form;
Described the second transmitting element, for sending the request of access with the form accesses network picture that can be supported beyond Webp form;
Described the second receiving element, realizes the access of network picture for receiving the response message that returns to network picture with the form that can be supported beyond Webp form.
8. device according to claim 7, is characterized in that, described device also comprises to be supported mark setting unit and support sign judging unit, wherein:
Described support mark setting unit, when identical for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, arranges Webp format picture support sign;
Described support sign judging unit, for when the next accesses network picture, judges whether to exist Webp format picture support sign, if existed, triggers the first transmitting element; If there is no, trigger attributes extraction unit;
And/or described device also comprises the 3rd transmitting element and the 3rd receiving element, wherein:
Described the 3rd transmitting element, when identical for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, send the message that Webp format picture can be supported, so that accessed end arranges the Webp format picture support sign corresponding with access end according to this message;
Described the 3rd receiving element, for when the next accesses network picture, receives the result that judges whether to exist the Webp format picture support sign corresponding with access end that accessed end is returned, if existence triggers the first transmitting element; If there is no, trigger attributes extraction unit.
9. device according to claim 8, is characterized in that, described device also comprises display effect detecting unit, display effect judging unit, and supports sign to eliminate unit and/or the 4th transmitting element, wherein:
Described display effect detecting unit, for detection of the display effect of Webp format picture;
Described display effect judging unit, pre-conditioned for judging whether described display effect meets, if not, trigger and support sign to eliminate unit;
Described support sign is eliminated unit, for eliminating the Webp format picture support sign of setting;
Described the 4th transmitting element, when pre-conditioned for not meeting in display effect, sends the message that Webp format picture can not be supported, so that the Webp format picture support sign corresponding with access end arranging eliminated in accessed end according to this message.
10. a device for response to network picture access request, is characterized in that, this device comprises: detect-message transmitting element, judged result receiving element, the first response unit and the second response unit, wherein:
Described detect-message transmitting element, for send the supportive detect-message of Webp format picture to access end after receiving request of access, to trigger access end, obtain preset standard Webp format picture, and extract the property value of at least one attribute of this standard Webp format picture;
Described judged result receiving element, for receiving access end, loading is played up to property value that the described property value that extracts before described standard Webp format picture and loading play up the respective attributes of rear extraction and compare the whether identical judged result obtaining, if described in judgment result is that property value is identical, trigger the first response unit, if described in judgment result is that property value is not identical, triggers the second response unit;
Described the first response unit, for the request of access of the network photo response access end with Webp form;
Described the second response unit, for the request of access of the network photo response access end with the Webp form form that can be supported in addition.
11. 1 kinds of network picture access system, is characterized in that, this system comprises server and browser, wherein:
Described server is for providing preset standard Webp format picture to browser, also for when receiving browser with the request of access of Webp form accesses network picture with Webp form network photo response, when receiving browser with the request of access of the form accesses network picture that can be supported beyond Webp form with the network photo response of the form that can be supported beyond Webp form;
Described browser comprises: attributes extraction unit, loading rendering unit, determined property unit, the first transmitting element and the first receiving element, and second transmitting element and the second receiving element, wherein: described attributes extraction unit, for obtaining preset standard Webp format picture from server, extract the property value of at least one attribute of this standard Webp format picture; Described loading rendering unit, plays up described standard Webp format picture for loading; Whether identical described determined property unit, load the property value that the property value of the described attribute play up front extraction plays up rear respective attributes with loading for judging, if identical, trigger the first transmitting element; If not identical, trigger the second transmitting element; Described the first transmitting element, for sending the request of access with Webp form accesses network picture; Described the first receiving element, realizes the access of network picture for receiving the response message that returns to network picture with Webp form; Described the second transmitting element, for sending the request of access with the form accesses network picture that can be supported beyond Webp form; Described the second receiving element, realizes the access of network picture for receiving the response message that returns to network picture with the form that can be supported beyond Webp form.
12. systems according to claim 11, is characterized in that,
Described browser also comprises the first support mark setting unit and the first support sign judging unit, wherein: described first supports mark setting unit, when identical for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, Webp format picture support sign is set; Described second supports sign judging unit, for when the next accesses network picture, judges whether to exist Webp format picture support sign, if existed, triggers the first transmitting element; If there is no, trigger attributes extraction unit; And/or,
Described browser also comprises the 3rd transmitting element and the 3rd receiving element, described server also comprises the second support mark setting unit and the second support sign judging unit, wherein: described the 3rd transmitting element, for judge the property value that loads the described attribute extracting before playing up with load play up after the property value of respective attributes when identical, the message that can be supported to server transmission Webp format picture; Described second supports mark setting unit, for the Webp format picture support sign corresponding with browser is set according to this message after receiving described message; Described second supports sign judging unit, for when browser accesses network picture next time, judges whether to exist Webp format picture support sign, and judged result is sent to browser; Described the 3rd receiving element, the result that judges whether to exist the Webp format picture support sign corresponding with access end of returning for receiving accessed end, if existed, triggers the first transmitting element; If not, trigger attributes extraction unit.
13. systems according to claim 12, it is characterized in that, described browser also comprises display effect detecting unit, display effect judging unit, and first support sign to eliminate unit and/or the 4th transmitting element, when browser comprises the 4th transmitting element, described server comprises the second support sign elimination unit, wherein:
Described display effect detecting unit, for detection of the display effect of Webp format picture;
Described display effect judging unit, pre-conditioned for judging whether described display effect meets, if not, trigger the first support sign and eliminate unit;
Described first supports sign to eliminate unit, for eliminating the Webp format picture support sign of setting;
Described the 4th transmitting element, when pre-conditioned for not meeting in display effect, sends to server the message that Webp format picture can not be supported;
Described second supports sign to eliminate unit, for eliminate according to this message the Webp format picture support sign corresponding with browser arranging after receiving described message.
14. systems according to claim 13, it is characterized in that, described first while supporting that mark setting unit is identical specifically for the property value of respective attributes after judging the property value that loads the described attribute extracting before playing up and playing up with loading, and Webp format picture support sign is set 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 true CN103942206A (en) 2014-07-23
CN103942206B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107680144A (en) * 2017-10-16 2018-02-09 郑州云海信息技术有限公司 A kind of method and device of WebP files conversion
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
CN113761417A (en) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 Picture loading method and device

Citations (5)

* 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
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

Patent Citations (5)

* 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
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

Cited By (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
CN107680144A (en) * 2017-10-16 2018-02-09 郑州云海信息技术有限公司 A kind of method and device of WebP files conversion
CN113761417A (en) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 Picture loading method and device

Also Published As

Publication number Publication date
CN103942206B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN101080055B (en) A method, system and device for quickly browsing webpage via mobile phone browser
CN107133180B (en) Dynamic page testing method, testing device and storage medium
CN107368405B (en) Test system, test method, mock platform, interceptor and client
CN102811438B (en) Information interaction method, relevant device and system
CN109542427A (en) A kind of system customization method, apparatus and electronic equipment and storage medium
JP2012533806A (en) XSS detection method and apparatus
JP2015535969A (en) Method and system for monitoring advertisement display
CN102739663A (en) Detection method and scanning engine of web pages
CN105573733B (en) Method, web front-end and the system that browser is communicated with web front-end
CN103942206A (en) Network picture access and access request response method and device and system thereof
US10691390B2 (en) Method and device for video rendering
CN102419729A (en) Parallel test execution
CN107203470B (en) Page adjustment method and device
CN103023708A (en) Method and system for testing communication protocol interface
CN104348578B (en) The method and device of data processing
CN102970282A (en) Website security detection system
CN109712000A (en) Repeat insure method for limiting, device, equipment and readable storage medium storing program for executing
CN110401580A (en) Webpage status monitoring method and relevant device based on heartbeat mechanism
CN104462242B (en) Webpage capacity of returns statistical method and device
CN105051713A (en) System and method of web-based keyboard, video and mouse (kvm) redirection and application of the same
US11614933B2 (en) Disabling a script based on indications of unsuccessful execution of the script
CN202799166U (en) Mobile application network testing system
CN111225038B (en) Server access method and device
CN105188059A (en) Authentication method based on Portal server abnormity, and wireless access point
CN104239514A (en) Webpage rendering method, device and mobile terminal

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