CN103902664A - Page image rendering method and information providing method and device - Google Patents

Page image rendering method and information providing method and device Download PDF

Info

Publication number
CN103902664A
CN103902664A CN201410086406.6A CN201410086406A CN103902664A CN 103902664 A CN103902664 A CN 103902664A CN 201410086406 A CN201410086406 A CN 201410086406A CN 103902664 A CN103902664 A CN 103902664A
Authority
CN
China
Prior art keywords
attribute information
picture
page
request
inquiry request
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
CN201410086406.6A
Other languages
Chinese (zh)
Other versions
CN103902664B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410086406.6A priority Critical patent/CN103902664B/en
Publication of CN103902664A publication Critical patent/CN103902664A/en
Application granted granted Critical
Publication of CN103902664B publication Critical patent/CN103902664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The invention discloses a page image rendering method and device. The method includes the steps that when a page is loaded, an attribute information query request of a page image is sent; a response message corresponding to the attribute information query request is obtained, and attribute information in the response message is extracted; a render region of the image in the page is determined according o the attribute information; rendering is conducted to the page according to the render region of the image, and when the image is downloaded, the image is painted in the render region. According to the rendering method, the page is rendered according to the render region of the image, and when the image is downloaded, rendering of an irreplaceable element part of the page is finished, and reflows and repaints are not needed, so that rendering efficiency is improved. The invention further discloses an information providing method and device.

Description

The rendering intent of picture and the supplying method of information, device in the page
Technical field
The present invention relates to Internet technical field, relate in particular to supplying method, the device of rendering intent, device and a kind of information of picture in a kind of page.
Background technology
At present, in network, exist large-scale picture resource.For example, webpage comprises the picture of abundant species, and various electron album class application programs comprise the various pictures that user takes etc.
But, in the time that various application programs Show Picture, there is following problem: if browser class application program, this application program is in the time playing up the webpage that comprises picture, preferentially from CSS(Cascading Style Sheets, CSS (cascading style sheet)) and <img> label in obtain the wide high information of picture, reserved corresponding viewing area, starting afterwards word plays up, without waiting for that picture has loaded, but, often existence cannot be obtained wide high information, or wide high information is imperfect, or the inaccurate problem of wide high information, after causing picture loading, the page need to again flow (reflows), draw (repaints), reduce the efficiency of playing up, if electron album class application program represents picture according to user's uplink time or editor's picture/mb-type, if picture number is very large, the picture representing often can not meet user's demand, if picture is checked class application program, the demonstration problems such as picture easily rotates, handstand, mirror image.
Summary of the invention
The present invention is intended to solve at least to a certain extent one of technical matters in correlation technique.
For this reason, first object of the present invention is to propose the rendering intent of picture in a kind of page.The method is played up the page according to the region of playing up of picture, and after waiting for that picture has been downloaded, the irreplaceable element part of the page has completed and played up, and without reflows, repaints etc., has improved the efficiency of playing up.
Second object of the present invention is to propose the rendering intent of picture in a kind of page.
The 3rd object of the present invention is to propose a kind of supplying method of information.
The 4th object of the present invention is to propose the rendering device of picture in a kind of page.
The 5th object of the present invention is to propose the rendering device of picture in a kind of page.
The 6th object of the present invention is to propose a kind of generator of information.
To achieve these goals, the rendering intent of picture in the page of first aspect present invention embodiment, comprising: in the time of load page, send the attribute information inquiry request of picture in the described page; Obtain response message corresponding to described attribute information inquiry request, and extract the attribute information in described response message; Determine that according to described attribute information described picture plays up region in the described page; According to the region of playing up of described picture, the described page is played up, wherein, after described picture is downloaded, drawn described picture described in playing up region.
The rendering intent of picture in the page of the embodiment of the present invention, in the time of load page, can first send the attribute information inquiry request of picture in the page, and extract the attribute information in response message corresponding to attribute information inquiry request obtaining, and determine that according to attribute information this picture plays up region in the page, and according to the region of playing up of this picture, the page is played up, after waiting for that picture has been downloaded, the irreplaceable element part of the page has completed and has played up, without reflows, repaints etc., improve the efficiency of playing up.
To achieve these goals, the rendering intent of picture in the page of second aspect present invention embodiment, comprising: the attribute information inquiry request that receives picture in the described page sending when the page loads; Search attribute information corresponding to described attribute information inquiry request; If find attribute information corresponding to described attribute information inquiry request, described attribute information is added in response message corresponding to described attribute information inquiry request, and send, to determine that according to described attribute information described picture plays up region in the described page in the time that the described page loads, and according to the region of playing up of described picture, the described page is played up.
The rendering intent of picture in the page of the embodiment of the present invention, can receive the attribute information inquiry request of picture in the page sending when the page loads, and search attribute information corresponding to this attribute information inquiry request, in the time finding attribute information corresponding to attribute information inquiry request, this attribute information can be added in response message corresponding to attribute information inquiry request, and send, so that browser class application program determines that according to this attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of this picture, the page is played up, at least have the following advantages: a large amount of picture resource of buffer memory in (1) result buffer memory, therefore most inquiry request, server can directly return, without capturing to third party's website, save the crawl time, promote the speed of response, (2) when there is no Target Photo resource in result buffer memory, need to capture the picture resource of third party's website time, capture strategy according to existing point of machine room, can promote significantly crawl success ratio, and reduce the crawl time, (3) result cache resources is multiplexing, only need add attribute information field while writing result buffer memory, greatly reduces cost.
To achieve these goals, the supplying method of the information of third aspect present invention embodiment, comprise: receive at least one picture file that user uploads by first terminal, described at least one picture file comprises respectively corresponding picture and the attribute information of described picture, wherein, described first terminal is mobile terminal; According to described attribute information, described at least one picture is processed; When receiving described user by when request of checking of the second terminal, will be after treatment described at least one picture be sent to described the second terminal, to represent in described the second terminal.
The supplying method of the information of the embodiment of the present invention, can process picture according to attribute information, when receiving user by when request of checking of the second terminal, picture after treatment is sent to the second terminal, to represent in the second terminal, and by the rotation information of shooting is sent to the second terminal, so that the second terminal represents picture according to the rotation information of taking, while having avoided the second terminal to represent picture, there is the demonstration problems such as picture rotation, handstand, mirror image, promoted user's experience.
To achieve these goals, the rendering device of picture in the page of fourth aspect present invention embodiment, comprising: sending module, for when the load page, sends the attribute information inquiry request of picture in the described page; Acquisition module, for obtaining response message corresponding to described attribute information inquiry request, and extracts the attribute information in described response message; Determination module, for determining the play up region of described picture at the described page according to described attribute information; Rendering module, plays up the described page for the region of playing up according to described picture, wherein, after described picture is downloaded, draws described picture described in playing up region.
The rendering device of picture in the page of the embodiment of the present invention, by response message corresponding to acquisition module getattr information inquiring request, and extract the attribute information in response message, determination module determines that according to attribute information this picture plays up region in the page, rendering module is played up the page according to the region of playing up of this picture, after waiting for that picture has been downloaded, the irreplaceable element part of the page has completed and has played up, without reflows, repaints etc., improve the efficiency of playing up.
To achieve these goals, the rendering device of picture in the page of fifth aspect present invention embodiment, comprising: receiver module, for receiving the attribute information inquiry request of the described page picture sending when the page loads; Search module, for searching attribute information corresponding to described attribute information inquiry request; Rendering module, for described while searching module searches to attribute information corresponding to described attribute information inquiry request, described attribute information is added in response message corresponding to described attribute information inquiry request, and send, to determine that according to described attribute information described picture plays up region in the described page in the time that the described page loads, and according to the region of playing up of described picture, the described page is played up.
The rendering device of picture in the page of the embodiment of the present invention, receive the attribute information inquiry request of picture in the page sending when the page loads by receiver module, in the time searching module searches to attribute information corresponding to attribute information inquiry request, rendering module can add this attribute information in response message corresponding to attribute information inquiry request, and send, so that browser class application program determines that according to this attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of this picture, the page is played up, at least have the following advantages: a large amount of picture resource of buffer memory in (1) result buffer memory, therefore most inquiry request, server can directly return, without capturing to third party's website, save the crawl time, promote the speed of response, (2) when there is no Target Photo resource in result buffer memory, need to capture the picture resource of third party's website time, capture strategy according to existing point of machine room, can promote significantly crawl success ratio, and reduce the crawl time, (3) result cache resources is multiplexing, only need add attribute information field while writing result buffer memory, greatly reduces cost.
To achieve these goals, the generator of the information of sixth aspect present invention embodiment, comprise: receiver module, for receiving at least one picture file that user uploads by first terminal, described at least one picture file comprises respectively corresponding picture and the attribute information of described picture, wherein, described first terminal is mobile terminal; Processing module, for processing described at least one picture according to described attribute information; Sending module, for receiving described user by when request of checking of the second terminal, will be after treatment described at least one picture be sent to described the second terminal, to represent in described the second terminal.
The generator of the information of the embodiment of the present invention, picture is processed according to attribute information by processing module, sending module is receiving user by when request of checking of the second terminal, picture after treatment is sent to the second terminal, to represent in the second terminal, and by the rotation information of shooting is sent to the second terminal, so that the second terminal represents picture according to the rotation information of taking, while having avoided the second terminal to represent picture, there is the demonstration problems such as picture rotation, handstand, mirror image, promoted user's experience.
Brief description of the drawings
Fig. 1 is the process flow diagram of the rendering intent of picture in the page according to an embodiment of the invention;
Fig. 2 is the process flow diagram of the rendering intent of picture in the page in accordance with another embodiment of the present invention;
Fig. 3 is according to an embodiment of the invention according to the process flow diagram of attribute information corresponding to required parameter inquiry request;
Fig. 4 is the process flow diagram of the extracting method of attribute information according to an embodiment of the invention;
Fig. 5 is the process flow diagram of the supplying method of information according to an embodiment of the invention;
Fig. 6 is the structural representation of the rendering device of picture in the page according to an embodiment of the invention;
Fig. 7 is the structural representation of the rendering device of picture in the page in accordance with another embodiment of the present invention;
Fig. 8 is the structural representation of the rendering device of picture in the page of a specific embodiment according to the present invention;
Fig. 9 is the structural representation of the rendering device of picture in the page of another specific embodiment according to the present invention;
Figure 10 is the structural representation of the generator of information according to an embodiment of the invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, be intended to for explaining the present invention, and can not be interpreted as limitation of the present invention.
Disclosing below provides many different embodiment or example to be used for realizing different structure of the present invention.Of the present invention open in order to simplify, hereinafter the parts to specific examples and setting are described.Certainly, they are only example, and object does not lie in restriction the present invention.In addition, the present invention can be in different examples repeat reference numerals and/or letter.This repetition is in order to simplify and object clearly, itself do not indicate the relation between discussed various embodiment and/or setting.
In order to solve when the page rendering, often cannot obtain the wide high information of picture or wide high information is imperfect or wide high information is inaccurate, after causing picture loading, the page need to flow again, the problem of drafting etc., the present invention proposes supplying method, the device of rendering intent, device and the information of picture in a kind of page.Particularly, describe according to supplying method, the device of rendering intent, device and the information of picture in the page of the embodiment of the present invention below with reference to accompanying drawing.
Embodiments of the invention propose the rendering intent of picture in a kind of page, comprising: in the time of load page, send the attribute information inquiry request of picture in the page; The response message that getattr information inquiring request is corresponding, and extract the attribute information in response message; Determine that according to attribute information picture plays up region in the page; According to the region of playing up of picture, the page is played up, wherein, after picture is downloaded, playing up rendered images in region.
Fig. 1 is the process flow diagram of the rendering intent of picture in the page according to an embodiment of the invention.
As shown in Figure 1, in this page, the rendering intent of picture can comprise:
S101, in the time of load page, sends the attribute information inquiry request of picture in the page.
Wherein, in one embodiment of the invention, attribute information inquiry request can be HTML (Hypertext Markup Language) HTTP(Hypertext Transfer Protocol) request.
It should be noted that, picture is the alternative element of a kind of webpage.Browser class application program is in the time playing up the page, and the page sketching the contours can flow.If resolution that can not designated pictures, after picture resource is downloaded successfully, browser class application program needs reflows, repaints.Otherwise, can know this picture required size in the page if first obtain the resolution of picture.
For example, in the page of the embodiment of the present invention, the rendering intent of picture can be applicable in browser class application program, when browser class application program is in the time loading with the page of picture, can first send the attribute information inquiry request of all pictures in this page to server.
S102, the response message that getattr information inquiring request is corresponding, and extract the attribute information in response message.
Wherein, in one embodiment of the invention, response message can be http response message, and wherein, the response head of http response message can comprise attribute information, and the main body BODY portion of http response message can be sky.In addition, in one embodiment of the invention, attribute information can comprise one or more in altitude information, the rotation information of shooting etc. of longitude and latitude, shooting time, spot for photography of wide high information, spot for photography.
For example, after the attribute information inquiry request of browser class application program all pictures in the server transmission page, server can be put into the attribute information of the picture parsing the response head of response message corresponding to the attribute information inquiry request of this picture, also the main body BODY part of response message can be put to sky, and this response message is back to browser class application program, after browser class application program gets this response message, can extract the attribute information in this response message, as, in the page, need the wide high information of the picture loading, the longitude and latitude of spot for photography, shooting time, the altitude information of spot for photography, the rotation information of taking etc.
S103, determines that according to attribute information picture plays up region in the page.
Particularly, browser class application program, after the attribute information extracting in response message, can determine that this picture plays up region in the page according to the wide high information of this picture etc.
S104, plays up the page according to the region of playing up of picture, wherein, and after picture is downloaded, playing up rendered images in region.
Particularly, determine according to attribute information picture in the page play up region after, just can know how decyclization is around near irreplaceable element, at this moment, also can before download pictures, start the page to play up, after picture is downloaded, only need be in the page playing up of picture in region, draw out this picture and can complete playing up of the page.Wherein, irreplaceable element can be regarded as Word message in the page etc.
The rendering intent of picture in the page of the embodiment of the present invention, in the time of load page, can first send the attribute information inquiry request of picture in the page, and extract the attribute information in response message corresponding to attribute information inquiry request obtaining, and determine that according to attribute information this picture plays up region in the page, and according to the region of playing up of this picture, the page is played up, after waiting for that picture has been downloaded, the irreplaceable element part of the page has completed and has played up, without reflows, repaints etc., improve the efficiency of playing up.
Below can be by be described the rendering intent of picture the page that the embodiment of the present invention proposes from server end.
In order to realize above-described embodiment, the present invention also proposes the rendering intent of picture in a kind of page.
The rendering intent of picture in a kind of page that embodiments of the invention propose, comprising: the attribute information inquiry request that receives picture in the page sending when the page loads; Search attribute information corresponding to attribute information inquiry request; If find attribute information corresponding to attribute information inquiry request, attribute information is added in response message corresponding to attribute information inquiry request, and send, to determine that according to attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of picture, the page is played up.
Fig. 2 is the process flow diagram of the rendering intent of picture in the page in accordance with another embodiment of the present invention, and this embodiment is described from server end.
As shown in Figure 2, in this page, the rendering intent of picture can comprise:
S201, the attribute information inquiry request of picture in the page sending while receiving page loading.
Wherein, in one embodiment of the invention, attribute information inquiry request can be HTML (Hypertext Markup Language) HTTP request.
For example, when browser class application program is in the time loading with the page of picture, can first send the attribute information inquiry request (as HTTP request) of all pictures in this page to server, server is receiving after this HTTP request, can filter illegal URI(Uniform Resource Identifier in this HTTP request, universal resource identifier) or illegal URL(Uniform Resource Locator, URL(uniform resource locator)).
S202, searches attribute information corresponding to attribute information inquiry request.
Wherein, in one embodiment of the invention, attribute information can comprise one or more in altitude information, the rotation information of shooting etc. of longitude and latitude, shooting time, spot for photography of wide high information, spot for photography.
According to one embodiment of present invention, before searching attribute information corresponding to attribute information inquiry request, also comprise: first, checking attribute information inquiry request; Afterwards, if checking attribute information inquiry request is legal, further extract the required parameter in attribute information inquiry request, with the attribute information corresponding according to required parameter inquiry request.Wherein, in an embodiment of the present invention, required parameter can comprise the identification information of attribute information type and picture etc.
Particularly, server is after receiving the attribute information inquiry request of picture in the page sending when the page loads, can first verify legitimacy and the real-time of this attribute information inquiry request, in the time that this request of checking is legal, can extract the required parameter in this request, and attribute information that can be corresponding according to this required parameter inquiry request, with the interested Target Photo of analysis user.
Preferably, in one embodiment of the invention, as shown in Figure 3, the attribute information corresponding according to required parameter inquiry request can comprise:
S301, attribute information corresponding to search request parameter in result buffer memory.
S302 if do not find the attribute information that required parameter is corresponding, further searches the picture resource that whether exists required parameter corresponding in former figure buffer memory.
S303, if find the picture resource that required parameter is corresponding, extracts attribute information according to picture resource corresponding to the required parameter finding.
S304, if do not find the picture resource that required parameter is corresponding, captures the webpage that required parameter is corresponding, and extracts the picture resource that required parameter is corresponding from the webpage capturing.
Particularly, in the time not finding picture resource corresponding to required parameter, can initiate query aim picture Site IP (Internet Protocol to DNS Cache, the agreement interconnecting between network), analyze the affiliated service provider of this Site IP, according to a point machine room strategy, capture webpage corresponding to required parameter, and from this webpage, extract the picture resource that required parameter is corresponding.
S305, the picture resource corresponding according to the required parameter extracting extracts attribute information.
It should be noted that, if finding the attribute information that required parameter is corresponding in result buffer memory, continue execution step S203.
Hence one can see that, and directly attribute information corresponding to search request parameter in result buffer memory, has saved the crawl time, promotes the speed of response, and in the time capturing third party's website picture resource, according to existing point of machine room strategy, greatly promoted crawl success ratio.
Preferably, in one embodiment of the invention, can extract attribute information according to picture resource corresponding to the required parameter finding or picture resource corresponding to the required parameter extracting, particularly, as shown in Figure 4, the extracting method of attribute information can comprise:
S401, checking picture resource.
Particularly, server, after extracting picture resource and required parameter, can first be verified the legitimacy of picture resource.
S402, if checking picture resource is legal, further verifies required parameter.
Wherein, in an embodiment of the present invention, if checking picture resource is illegal, return to error message, the attribute information of picture extracts unsuccessfully.
S403, if checking required parameter is legal, further judges the head file that whether has attribute information in picture resource.
Particularly, in the time that checking required parameter is legal, can further judge whether picture resource JPEG has Exif head.Should be appreciated that in an embodiment of the present invention, Exif can be a kind of types of image file formats, and its data storage and jpeg format are identical.Exif form can be the information of inserting digital photograph at jpeg format head, the sound and the GPS(Global Positioning System that record can comprise the various and shooting condition of aperture, shutter, white balance, ISO, focal length, time on date etc. while shooting and camera brand, model, color-code, shooting time, GPS) information, thumbnail etc.
Wherein, in an embodiment of the present invention, if checking required parameter is illegal, return to error message, the attribute information of picture extracts unsuccessfully.
S404, if there is the head file of attribute information, extracts attribute information in the head file of dependency information, and attribute information and required parameter are write in result buffer memory.
Particularly, after there is the head file of attribute information in judgement, can extract according to IFD chain extraction algorithm the attribute information of Target Photo, afterwards can be using this attribute information, required parameter and URL as associating key, write in result buffer memory, so that server is searched the attribute information that this required parameter is corresponding in result buffer memory.
Wherein, in an embodiment of the present invention, can carry out to extract by the JPEG as in following table 1-table 3, Exif structure the attribute information of Target Photo.Particularly, as shown in table 1 below, JPEG can be made up of 8 marks, starts with 0xFFD8, and 0xFFD9 finishes, and the mark between 0xFFE0-0xFFEF can be described as application mark, and 0xFFE0 is JFIF, and 0xFFE1 is EXIF.
1SOI0xD8 Image starts
2APP00xE0 JFIF application data block
3APPn0xE1-0xEF Other application data block
4DQT0xDB Quantization table
5SOF00xC0 Frame starts
6DHT0xC4 Huffman table
7SOS0xDA Sweep trace starts
8EOI0xD9 Image finishes
Table 1
As shown in table 2 below, Exif can be by mono-kind of TIFF(picture format more flexibly) format storage information, calculate side-play amount according to the difference of data byte order, and can search (seek) by simple internal memory, be addressed to IFD(image file directory) first node IFD0(master image IFD of chained list), it is connecting IFD1(thumbnail IFD), in IFD0, can comprise special tag (Tag), can show that it arrives the side-play amount of subIFD.Wherein, subIFD is the sub-IFD of master image IFD, has recorded facility information, and the IFD chained list of Exif only has IFD0 and IFD1.
Figure BDA0000474974930000081
Figure BDA0000474974930000091
Table 2
Wherein, IFD can be made up of bibliographical entity, and as shown in table 3 below, two bytes of beginning can represent bibliographical entity quantity, followed by being bibliographical entity object, each 12 bytes that account for, and with the mode record of key-value, key is tag number (tag_id), the data layout of value is comparatively special, be made up of three/tetra-partial data parts, data layout has 12 kinds, and component quantity can be made up of 4Bytes.With the byte number of component and the long-pending total length that can represent this label of the quantity of component, when this value is less than 4Bytes, 4Bytes subsequently represents data itself; While being greater than 4Bytes, represent the side-play amount of data.
Figure BDA0000474974930000092
Table 3
S405, the if there is no head file of attribute information, according to picture resource getattr information, and writes attribute information and required parameter in result buffer memory.
Particularly, in the time there is not the head file of attribute information in judgement, can calculate according to the picture resource grabbing the width of this picture, to obtain width information of this picture etc., and this width information and required parameter are write in result buffer memory, so that server is searched the attribute information that this required parameter is corresponding in result buffer memory.
Hence one can see that, can in the head file of dependency information, extract attribute information or get attribute information according to picture resource, improve accuracy, and attribute information and required parameter are write in result buffer memory, result cache resources reusable, has reduced cost like this.
S203, if find attribute information corresponding to attribute information inquiry request, attribute information is added in response message corresponding to attribute information inquiry request, and send, to determine that according to attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of picture, the page is played up.
Wherein, in one embodiment of the invention, response message can be http response message, and wherein, the response head of http response message can comprise attribute information, and the main body BODY portion of http response message can be sky.
Particularly, in the time finding attribute information corresponding to attribute information inquiry request, this attribute information can be linked into the response head of http response message, and the main body BODY part of http response message is put to sky, and be back to browser class application program by Web Server, so that browser class application program determines that according to this attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of this picture, the page is played up.
The rendering intent of picture in the page of the embodiment of the present invention, can receive the attribute information inquiry request of picture in the page sending when the page loads, and search attribute information corresponding to this attribute information inquiry request, in the time finding attribute information corresponding to attribute information inquiry request, this attribute information can be added in response message corresponding to attribute information inquiry request, and send, so that browser class application program determines that according to this attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of this picture, the page is played up, at least have the following advantages: a large amount of picture resource of buffer memory in (1) result buffer memory, therefore most inquiry request, server can directly return, without capturing to third party's website, save the crawl time, promote the speed of response, (2) when there is no Target Photo resource in result buffer memory, need to capture the picture resource of third party's website time, capture strategy according to existing point of machine room, can promote significantly crawl success ratio, and reduce the crawl time, (3) result cache resources is multiplexing, only need add attribute information field while writing result buffer memory, greatly reduces cost.
It should be noted that, equipment rotation information is also an easy uncared-for hiding attribute, as red fox (Firefox), IE and windows picture reader etc., after picture is decoded, by the original pixels stream video card that writes direct, can cause the demonstration problem such as rotation, handstand, mirror image of image content, have a strong impact on user and experience.Even had corresponding strategy at mobile terminal, but in order to save flow, conventionally the metamessage of picture can be removed, at this moment can cause terminal " blinding ".In order to address this is that, the invention allows for a kind of supplying method of information.
The supplying method of a kind of information that embodiments of the invention propose, comprise: receive at least one picture file that user uploads by first terminal, at least one picture file comprises respectively corresponding picture and the attribute information of picture, and wherein, first terminal is mobile terminal; According to attribute information, at least one picture is processed; When receiving user by when request of checking of the second terminal, at least one picture after treatment is sent to the second terminal, to represent in the second terminal.
Fig. 5 is the process flow diagram of the supplying method of information according to an embodiment of the invention.
As shown in Figure 5, the supplying method of this information can comprise:
S501, receives at least one picture file that user uploads by first terminal, and at least one picture file comprises respectively corresponding picture and the attribute information of picture, and wherein, first terminal is mobile terminal.
In addition, in one embodiment of the invention, attribute information can comprise one or more in altitude information, the rotation information of shooting etc. of longitude and latitude, shooting time, spot for photography of wide high information, spot for photography.
S502, processes at least one picture according to attribute information.
Wherein, in one embodiment of the invention, picture file can comprise multiple.Particularly, can sort out the plurality of picture according to the attribute information of multiple picture files, for example, can sort out multiple pictures according to the shooting time in attribute information, also can sort out multiple pictures according to longitude and latitude or the altitude information etc. of spot for photography, afterwards, can in the second terminal, represent these pictures according to sorting out result.
Optionally, in an embodiment of the present invention, also can sort out multiple users according to the classification result of multiple picture files, and according to recommending between multiple users' the multiple users of classification result.Thus, can, according to personal interest to realize the recommendation between user, promote user's experience.
S503, when receiving user by when request of checking of the second terminal, is sent to the second terminal by least one picture after treatment, to represent in the second terminal.
Wherein, in an embodiment of the present invention, the second terminal can be regarded as picture scan tool, and picture scan tool can comprise that a lot, what the upper user's frequency of utilization of PC was higher has two kinds: a kind of is that the picture carrying on windows is checked application program; One is browser, as IE, red fox etc.
Preferably, in an embodiment of the present invention, can also comprise: the rotation information of shooting is sent to the second terminal, so that the second terminal represents picture according to the rotation information of taking.That is to say, when at least one picture of processing is sent to the second terminal, also the rotation information of the shooting of this picture can be sent to the second terminal, so that the second terminal represents picture according to the rotation information of this shooting in displaying interface.For example, after picture decoding, show as and rotated 90 degree, in the time that this picture is sent to the second terminal, also this rotation information can be sent to the second terminal, the second terminal gets after this rotation information, can first do matrixing to the picture element matrix of this picture, afterwards the picture after conversion be represented in displaying interface.
The supplying method of the information of the embodiment of the present invention, can process picture according to attribute information, when receiving user by when request of checking of the second terminal, picture after treatment is sent to the second terminal, to represent in the second terminal, and by the rotation information of shooting is sent to the second terminal, so that the second terminal represents picture according to the rotation information of taking, while having avoided the second terminal to represent picture, there is the demonstration problems such as picture rotation, handstand, mirror image, promoted user's experience.
In order to realize above-described embodiment, the invention allows for the rendering device of picture in a kind of page.
The rendering device of picture in a kind of page that the embodiment of the present invention proposes, comprising: sending module, for when the load page, sends the attribute information inquiry request of picture in the page; Acquisition module, for response message corresponding to getattr information inquiring request, and extracts the attribute information in response message; Determination module, for determining the play up region of picture at the page according to attribute information; Rendering module, plays up the page for the region of playing up according to picture, wherein, and after picture is downloaded, playing up rendered images in region.
Fig. 6 is the structural representation of the rendering device of picture in the page according to an embodiment of the invention.
As shown in Figure 6, in this page, the rendering device of picture can comprise: sending module 110, acquisition module 120, determination module 130 and rendering module 140.
Particularly, sending module 110, for when the load page, sends the attribute information inquiry request of picture in the page.Wherein, in one embodiment of the invention, attribute information inquiry request can be HTML (Hypertext Markup Language) HTTP request.
It should be noted that, picture is the alternative element of a kind of webpage.Browser class application program is in the time playing up the page, and the page sketching the contours can flow.If resolution that can not designated pictures, after picture resource is downloaded successfully, browser class application program needs reflows, repaints.Otherwise, can know this picture required size in the page if first obtain the resolution of picture.
For example, when browser class application program is in the time loading with the page of picture, sending module 110 can first send the attribute information inquiry request of all pictures in this page to server.
Acquisition module 120 is for response message corresponding to getattr information inquiring request, and extracts the attribute information in response message.Wherein, in one embodiment of the invention, response message can be http response message, and wherein, the response head of http response message can comprise attribute information, and the main body BODY portion of http response message can be sky.In addition, in one embodiment of the invention, attribute information can comprise one or more in altitude information, the rotation information of shooting etc. of longitude and latitude, shooting time, spot for photography of wide high information, spot for photography.
For example, after the attribute information inquiry request of sending module 110 all pictures in the server transmission page, server can be put into the attribute information of the picture parsing the response head of response message corresponding to the attribute information inquiry request of this picture, also the main body BODY part of response message can be put to sky, and this response message is back to browser class application program, after acquisition module 120 gets this response message, can extract the attribute information in this response message, as, in the page, need the wide high information of the picture loading, the longitude and latitude of spot for photography, shooting time, the altitude information of spot for photography, the rotation information of taking etc.
Determination module 130 is for determining the play up region of picture at the page according to attribute information.More specifically, after acquisition module 120 extracts the attribute information in response message, determination module 130 can determine that this picture plays up region in the page according to the wide high information of this picture etc.
Rendering module 140 is played up the page for the region of playing up according to picture, wherein, and after picture is downloaded, playing up rendered images in region.More specifically, determine according to attribute information at determination module 130 picture in the page play up region after, rendering module 140 just can know how decyclization is around near irreplaceable element, at this moment, also can before download pictures, start the page to play up, after picture is downloaded, only need be in the page playing up of picture in region, draw out this picture and can complete playing up of the page.Wherein, irreplaceable element can be regarded as Word message in the page etc.
The rendering device of picture in the page of the embodiment of the present invention, by response message corresponding to acquisition module getattr information inquiring request, and extract the attribute information in response message, determination module determines that according to attribute information this picture plays up region in the page, rendering module is played up the page according to the region of playing up of this picture, after waiting for that picture has been downloaded, the irreplaceable element part of the page has completed and has played up, without reflows, repaints etc., improve the efficiency of playing up.
In order to realize above-described embodiment, the invention allows for the rendering device of picture in a kind of page.
The rendering device of picture in a kind of page that the embodiment of the present invention proposes, comprising: receiver module, for receiving the attribute information inquiry request of the page picture sending when the page loads; Search module, for searching attribute information corresponding to attribute information inquiry request; Rendering module, for in the time searching module searches to attribute information corresponding to attribute information inquiry request, attribute information is added in response message corresponding to attribute information inquiry request, and send, to determine that according to attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of picture, the page is played up.
Fig. 7 is the structural representation of the rendering device of picture in the page in accordance with another embodiment of the present invention.
As shown in Figure 7, in this page, the rendering device of picture can comprise: receiver module 210, search module 220 and rendering module 230.
Particularly, receiver module 210 is for receiving the attribute information inquiry request of the page picture sending when the page loads.Wherein, in one embodiment of the invention, attribute information inquiry request can be HTML (Hypertext Markup Language) HTTP request.
For example, in browser class application program in the time loading with the page of picture, can first send the attribute information inquiry request (as HTTP request) of all pictures in this page to server, receiver module 210 is receiving after this HTTP request, can filter illegal URI or illegal URL in this HTTP request.
Search module 220 for searching attribute information corresponding to attribute information inquiry request.Wherein, in one embodiment of the invention, attribute information can comprise one or more in altitude information, the rotation information of shooting etc. of longitude and latitude, shooting time, spot for photography of wide high information, spot for photography.
Rendering module 230 is in the time searching module searches to attribute information corresponding to attribute information inquiry request, attribute information is added in response message corresponding to attribute information inquiry request, and send, to determine that according to attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of picture, the page is played up.
Wherein, in one embodiment of the invention, response message can be http response message, and wherein, the response head of http response message can comprise attribute information, and the main body BODY portion of http response message can be sky.
More specifically, searching module 220 while finding attribute information corresponding to attribute information inquiry request, rendering module 230 can be linked into this attribute information the response head of http response message, and the main body BODY part of http response message is put to sky, and be back to browser class application program by Web Server, so that browser class application program determines that according to this attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of this picture, the page is played up.
The rendering device of picture in the page of the embodiment of the present invention, receive the attribute information inquiry request of picture in the page sending when the page loads by receiver module, in the time searching module searches to attribute information corresponding to attribute information inquiry request, rendering module can add this attribute information in response message corresponding to attribute information inquiry request, and send, so that browser class application program determines that according to this attribute information picture plays up region in the page in the time that the page loads, and according to the region of playing up of this picture, the page is played up, at least have the following advantages: a large amount of picture resource of buffer memory in (1) result buffer memory, therefore most inquiry request, server can directly return, without capturing to third party's website, save the crawl time, promote the speed of response, (2) when there is no Target Photo resource in result buffer memory, need to capture the picture resource of third party's website time, capture strategy according to existing point of machine room, can promote significantly crawl success ratio, and reduce the crawl time, (3) result cache resources is multiplexing, only need add attribute information field while writing result buffer memory, greatly reduces cost.
Fig. 8 is the structural representation of the rendering device of picture in the page of a specific embodiment according to the present invention.
As shown in Figure 8, in this page, the rendering device of picture can comprise: receiver module 210, search module 220, rendering module 230, authentication module 240 and extraction module 250.
Particularly, authentication module 240, for before searching attribute information corresponding to attribute information inquiry request, is verified attribute information inquiry request.Extraction module 250, in the time that authentication module 240 verifies that attribute information inquiry request is legal, further extracts the required parameter in attribute information inquiry request, with the attribute information corresponding according to required parameter inquiry request.Wherein, in an embodiment of the present invention, required parameter can comprise the identification information of attribute information type and picture etc.
More specifically, after receiver module 210 receives the attribute information inquiry request of picture in the page sending when the page loads, authentication module 240 can first be verified legitimacy and the real-time of this attribute information inquiry request, in the time that this request of checking is legal, extraction module 250 can extract the required parameter in this request, and attribute information that can be corresponding according to this required parameter inquiry request, with the interested Target Photo of analysis user.
The rendering device of picture in the page of the embodiment of the present invention, by extraction module in the time that authentication module checking attribute information inquiry request is legal, further extract the required parameter in attribute information inquiry request, with the attribute information corresponding according to required parameter inquiry request, improved accuracy.
Fig. 9 is the structural representation of the rendering device of picture in the page of another specific embodiment according to the present invention.
As shown in Figure 9, in this page, the rendering device of picture can comprise: receiver module 210, search module 220, rendering module 230, authentication module 240, extraction module 250, first and search unit 251, second and search unit 252, extraction unit 253 and placement unit 254.Wherein, extraction module 250 can comprise that first searches unit 251, second and search unit 252, extraction unit 253 and placement unit 254.
Particularly, first search unit 251 at attribute information corresponding to result buffer memory search request parameter.
Second searches unit 252 in the time that first searches unit 251 and do not find attribute information corresponding to required parameter, further in former figure buffer memory, searches the picture resource that whether exists required parameter corresponding.
Extraction unit 253 is in the time that second searches unit 252 and find picture resource corresponding to required parameter, and the picture resource corresponding according to the required parameter finding extracts attribute information.
According to one embodiment of present invention, extraction unit 253 can comprise the first checking subelement, the second checking subelement, judgment sub-unit, extraction subelement and obtain subelement.
More specifically, the first checking subelement is used for verifying picture resource.The second checking subelement, in the time that the first checking subelement verifies that picture resource is legal, is further verified required parameter.Judgment sub-unit, in the time that the second checking subelement verifies that required parameter is legal, further judges the head file that whether has attribute information in picture resource.Extract subelement in the time that judgment sub-unit judgement exists the head file of attribute information, in the head file of dependency information, extract attribute information, and attribute information and required parameter are write in result buffer memory.Obtain subelement in the time that judgment sub-unit judgement does not exist the head file of attribute information, according to picture resource getattr information, and attribute information and required parameter are write in result buffer memory.Wherein, the concrete function of above-mentioned subelement can the corresponding description with reference to said method, does not repeat them here.
Placement unit 254, in the time that second searches unit 252 and do not find picture resource corresponding to required parameter, captures webpage corresponding to required parameter, and extract the picture resource that required parameter is corresponding from the webpage capturing.More specifically, in the time that second searches unit 252 and does not find picture resource corresponding to required parameter, placement unit 254 can be initiated query aim picture Site IP to DNS Cache, analyze the affiliated service provider of this Site IP, according to a point machine room strategy, capture webpage corresponding to required parameter, and from this webpage, extract the picture resource that required parameter is corresponding.
In an embodiment of the present invention, extraction unit 253 also extracts attribute information for picture resource corresponding to required parameter extracting according to placement unit 254.
The rendering device of picture in the page of the embodiment of the present invention, by direct attribute information corresponding to search request parameter in result buffer memory, save the crawl time, promote the speed of response, and in the time capturing third party's website picture resource, according to existing point of machine room strategy, greatly promote crawl success ratio.
In order to realize above-described embodiment, the invention allows for a kind of generator of information.
The generator of a kind of information that the embodiment of the present invention proposes, comprise: receiver module, at least one picture file of uploading by first terminal for receiving user, at least one picture file comprises respectively corresponding picture and the attribute information of picture, wherein, first terminal is mobile terminal; Processing module, for processing at least one picture according to attribute information; Sending module, for receiving user by when request of checking of the second terminal, is sent to the second terminal by least one picture after treatment, to represent in the second terminal.
Figure 10 is the structural representation of the generator of information according to an embodiment of the invention.
As shown in figure 10, the generator of this information can comprise: receiver module 310, processing module 320 and sending module 330.
Particularly, at least one picture file that receiver module 310 is uploaded by first terminal for receiving user, at least one picture file comprises respectively corresponding picture and the attribute information of picture, wherein, first terminal is mobile terminal.In addition, in one embodiment of the invention, attribute information can comprise one or more in altitude information, the rotation information of shooting etc. of longitude and latitude, shooting time, spot for photography of wide high information, spot for photography.
Processing module 320 is for processing at least one picture according to attribute information.Wherein, in one embodiment of the invention, picture file can comprise multiple.Particularly, processing module 320 can be sorted out multiple pictures according to the attribute information of multiple picture files, to represent multiple pictures according to sorting out result in the second terminal.For example, can sort out multiple pictures according to the shooting time in attribute information, also can sort out multiple pictures according to longitude and latitude or the altitude information etc. of spot for photography.
Optionally, in one embodiment of the invention, processing module 320 can also be used for according to the classification result of multiple picture files, multiple users being sorted out, and according to recommending between multiple users' the multiple users of classification result.Thus, can, according to personal interest to realize the recommendation between user, promote user's experience.
Sending module 330, for receiving user by when request of checking of the second terminal, is sent to the second terminal by least one picture after treatment, to represent in the second terminal.Wherein, in an embodiment of the present invention, the second terminal can be regarded as picture scan tool, and picture scan tool can comprise that a lot, what the upper user's frequency of utilization of PC was higher has two kinds: a kind of is that the picture carrying on windows is checked application program; One is browser, as IE, red fox etc.
Preferably, in one embodiment of the invention, sending module 330 can also be used for the rotation information of shooting to be sent to the second terminal, so that the second terminal represents picture according to the rotation information of taking.That is to say, when at least one picture of processing is sent to the second terminal, sending module 330 also can be sent to the second terminal by the rotation information of the shooting of this picture, so that the second terminal represents picture according to the rotation information of this shooting in displaying interface.For example, after picture decoding, show as and rotated 90 degree, sending module 330 is in the time being sent to the second terminal by this picture, also this rotation information can be sent to the second terminal, the second terminal gets after this rotation information, can first do matrixing to the picture element matrix of this picture, afterwards the picture after conversion be represented in displaying interface.
The generator of the information of the embodiment of the present invention, picture is processed according to attribute information by processing module, sending module is receiving user by when request of checking of the second terminal, picture after treatment is sent to the second terminal, to represent in the second terminal, and by the rotation information of shooting is sent to the second terminal, so that the second terminal represents picture according to the rotation information of taking, while having avoided the second terminal to represent picture, there is the demonstration problems such as picture rotation, handstand, mirror image, promoted user's experience.
Any process of otherwise describing in process flow diagram or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
The logic and/or the step that in process flow diagram, represent or otherwise describe at this, for example, can be considered to the sequencing list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (as computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), or use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can comprise, device that storage, communication, propagation or transmission procedure use for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random-access memory (ram), ROM (read-only memory) (ROM), the erasable ROM (read-only memory) (EPROM or flash memory) of editing, fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other the suitable medium that can print described program thereon, because can be for example by paper or other media be carried out to optical scanning, then edit, decipher or process in electronics mode and obtain described program with other suitable methods if desired, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in storer and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computer-readable recording medium, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.
The above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
In addition, term " first ", " second " be only for describing object, and can not be interpreted as instruction or hint relative importance or the implicit quantity that indicates indicated technical characterictic.Thus, one or more these features can be expressed or impliedly be comprised to the feature that is limited with " first ", " second ".In description of the invention, the implication of " multiple " is two or more, unless otherwise expressly limited specifically.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, to the schematic statement of above-mentioned term not must for be identical embodiment or example.And, specific features, structure, material or the feature of description can one or more embodiment in office or example in suitable mode combination.In addition,, not conflicting in the situation that, those skilled in the art can carry out combination and combination by the feature of the different embodiment that describe in this instructions or example and different embodiment or example.
Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, amendment, replacement and modification.

Claims (14)

1. a rendering intent for picture in the page, is characterized in that, comprising:
In the time of load page, send the attribute information inquiry request of picture in the described page;
Obtain response message corresponding to described attribute information inquiry request, and extract the attribute information in described response message;
Determine that according to described attribute information described picture plays up region in the described page;
According to the region of playing up of described picture, the described page is played up, wherein, after described picture is downloaded, drawn described picture described in playing up region.
2. a rendering intent for picture in the page, is characterized in that, comprising:
Receive the attribute information inquiry request of picture in the described page sending when the page loads;
Search attribute information corresponding to described attribute information inquiry request;
If find attribute information corresponding to described attribute information inquiry request, described attribute information is added in response message corresponding to described attribute information inquiry request, and send, to determine that according to described attribute information described picture plays up region in the described page in the time that the described page loads, and according to the region of playing up of described picture, the described page is played up.
3. method according to claim 2, is characterized in that, described search attribute information corresponding to attribute information inquiry request before, also comprise:
Verify described attribute information inquiry request;
If verify that described attribute information inquiry request is legal, further extract the required parameter in described attribute information inquiry request, with the described attribute information corresponding according to the request of described request parameter query, wherein, described request parameter comprises the identification information of attribute information type and described picture.
4. method according to claim 3, is characterized in that, describedly comprises according to described attribute information corresponding to described request parameter query request:
In result buffer memory, search described attribute information corresponding to described request parameter;
If do not find described attribute information corresponding to described request parameter, further search the picture resource that whether exists described request parameter corresponding in former figure buffer memory;
If find picture resource corresponding to described request parameter, extract described attribute information according to picture resource corresponding to described request parameter finding;
If do not find picture resource corresponding to described request parameter, capture webpage corresponding to described request parameter, and extract picture resource corresponding to described request parameter from the described webpage capturing; And
Extract described attribute information according to picture resource corresponding to described request parameter extracting.
5. method according to claim 4, is characterized in that, the picture resource that described request parameter that described basis finds is corresponding or picture resource corresponding to described request parameter extracting extract described attribute information and comprise:
Verify described picture resource;
If verify that described picture resource is legal, further verify described request parameter;
If checking described request parameter is legal, further judge the head file that whether has attribute information in described picture resource;
If there is the head file of attribute information, from the head file of described attribute information, extract described attribute information, and by result buffer memory described in described attribute information and described request parameter read-in;
If there is no the head file of attribute information, obtains described attribute information according to described picture resource, and by result buffer memory described in described attribute information and described request parameter read-in.
6. a supplying method for information, is characterized in that, comprising:
Receive at least one picture file that user uploads by first terminal, described at least one picture file comprises respectively corresponding picture and the attribute information of described picture, and wherein, described first terminal is mobile terminal;
According to described attribute information, described at least one picture is processed;
When receiving described user by when request of checking of the second terminal, will be after treatment described at least one picture be sent to described the second terminal, to represent in described the second terminal.
7. method according to claim 6, is characterized in that, described picture file comprises multiple, describedly according to attribute information, described at least one picture is processed and is comprised:
According to the attribute information of described multiple picture files, described multiple pictures are sorted out, to represent described multiple picture according to sorting out result in described the second terminal.
8. a rendering device for picture in the page, is characterized in that, comprising:
Sending module, for when the load page, sends the attribute information inquiry request of picture in the described page;
Acquisition module, for obtaining response message corresponding to described attribute information inquiry request, and extracts the attribute information in described response message;
Determination module, for determining the play up region of described picture at the described page according to described attribute information;
Rendering module, plays up the described page for the region of playing up according to described picture, wherein, after described picture is downloaded, draws described picture described in playing up region.
9. a rendering device for picture in the page, is characterized in that, comprising:
Receiver module, for receiving the attribute information inquiry request of the described page picture sending when the page loads;
Search module, for searching attribute information corresponding to described attribute information inquiry request;
Rendering module, for described while searching module searches to attribute information corresponding to described attribute information inquiry request, described attribute information is added in response message corresponding to described attribute information inquiry request, and send, to determine that according to described attribute information described picture plays up region in the described page in the time that the described page loads, and according to the region of playing up of described picture, the described page is played up.
10. device according to claim 9, is characterized in that, also comprises:
Authentication module, for described search attribute information corresponding to attribute information inquiry request before, verify described attribute information inquiry request;
Extraction module, for in the time that described authentication module verifies that described attribute information inquiry request is legal, further extract the required parameter in described attribute information inquiry request, with the described attribute information corresponding according to the request of described request parameter query, wherein, described request parameter comprises the identification information of attribute information type and described picture.
11. devices according to claim 10, is characterized in that, described extraction module comprises:
First searches unit, for search described attribute information corresponding to described request parameter at result buffer memory;
Second searches unit, in the time that described first searches unit and do not find described attribute information corresponding to described request parameter, further in former figure buffer memory, searches the picture resource that whether exists described request parameter corresponding;
Extraction unit, in the time that described second searches unit and find picture resource corresponding to described request parameter, extracts described attribute information according to picture resource corresponding to described request parameter finding;
Placement unit, in the time that described second searches unit and do not find picture resource corresponding to described request parameter, captures webpage corresponding to described request parameter, and extract picture resource corresponding to described request parameter from the described webpage capturing; Wherein
Described extraction unit also extracts described attribute information for picture resource corresponding to described request parameter extracting according to described placement unit.
12. devices according to claim 11, is characterized in that, described extraction unit comprises:
The first checking subelement, for verifying described picture resource;
The second checking subelement, in the time that described the first checking subelement verifies that described picture resource is legal, further verifies described request parameter;
Judgment sub-unit, in the time that described the second checking subelement verifies that described request parameter is legal, further judges the head file that whether has attribute information in described picture resource;
Extract subelement, in the time that described judgment sub-unit judgement exists the head file of attribute information, from the head file of described attribute information, extract described attribute information, and by result buffer memory described in described attribute information and described request parameter read-in;
Obtain subelement, in the time that described judgment sub-unit judgement does not exist the head file of attribute information, obtain described attribute information according to described picture resource, and by result buffer memory described in described attribute information and described request parameter read-in.
The generator of 13. 1 kinds of information, is characterized in that, comprising:
Receiver module, at least one picture file of uploading by first terminal for receiving user, described at least one picture file comprises respectively corresponding picture and the attribute information of described picture, wherein, described first terminal is mobile terminal;
Processing module, for processing described at least one picture according to described attribute information;
Sending module, for receiving described user by when request of checking of the second terminal, will be after treatment described at least one picture be sent to described the second terminal, to represent in described the second terminal.
14. devices according to claim 13, it is characterized in that, described picture file comprises multiple, described processing module specifically for: according to the attribute information of described multiple picture files, described multiple pictures are sorted out, with according to sort out result in described the second terminal, represent described multiple picture.
CN201410086406.6A 2014-03-10 2014-03-10 Page image rendering method and information providing method and device Active CN103902664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410086406.6A CN103902664B (en) 2014-03-10 2014-03-10 Page image rendering method and information providing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410086406.6A CN103902664B (en) 2014-03-10 2014-03-10 Page image rendering method and information providing method and device

Publications (2)

Publication Number Publication Date
CN103902664A true CN103902664A (en) 2014-07-02
CN103902664B CN103902664B (en) 2017-01-25

Family

ID=50993986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410086406.6A Active CN103902664B (en) 2014-03-10 2014-03-10 Page image rendering method and information providing method and device

Country Status (1)

Country Link
CN (1) CN103902664B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536973A (en) * 2014-12-03 2015-04-22 北京奇虎科技有限公司 Picture identification method and browser client
CN105913381A (en) * 2016-04-25 2016-08-31 乐视控股(北京)有限公司 Method for processing display position of rotated image and device thereof
CN106327430A (en) * 2016-08-31 2017-01-11 维沃移动通信有限公司 Picture display method and mobile terminal
CN106610832A (en) * 2015-10-27 2017-05-03 阿里巴巴集团控股有限公司 Page asynchronous rendering method and device
CN106897126A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 A kind of picture grasping means and server
CN106897127A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 A kind of method and server for picture capture treatment
CN107229642A (en) * 2016-03-24 2017-10-03 阿里巴巴集团控股有限公司 The page resource of target pages is shown, page resource loading method and device
CN107426282A (en) * 2017-05-02 2017-12-01 努比亚技术有限公司 A kind of picture loading method, terminal and server
CN109299414A (en) * 2018-09-26 2019-02-01 深圳壹账通智能科技有限公司 A kind of method and terminal of loading page
CN110764766A (en) * 2019-10-15 2020-02-07 成都四方伟业软件股份有限公司 Aperture effect implementation method and device
CN110765386A (en) * 2019-10-28 2020-02-07 北京字节跳动网络技术有限公司 Webpage image monitoring method and device, electronic equipment and readable storage medium
CN111680230A (en) * 2020-05-25 2020-09-18 北京百度网讯科技有限公司 Display method and device of search result page, electronic equipment and storage medium
CN114359017A (en) * 2021-12-27 2022-04-15 阿波罗智联(北京)科技有限公司 Multimedia resource processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030128234A1 (en) * 2002-01-09 2003-07-10 International Business Machines Corporation Utilizing document white space to persistently display designated content
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
CN103425699A (en) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 Method, equipment and system for acquiring web pages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030128234A1 (en) * 2002-01-09 2003-07-10 International Business Machines Corporation Utilizing document white space to persistently display designated content
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
CN103425699A (en) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 Method, equipment and system for acquiring web pages

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536973A (en) * 2014-12-03 2015-04-22 北京奇虎科技有限公司 Picture identification method and browser client
CN104536973B (en) * 2014-12-03 2018-01-16 北京奇虎科技有限公司 The method and browser client of picture recognition
CN106610832B (en) * 2015-10-27 2020-06-05 阿里巴巴集团控股有限公司 Page asynchronous rendering method and device
CN106610832A (en) * 2015-10-27 2017-05-03 阿里巴巴集团控股有限公司 Page asynchronous rendering method and device
CN106897126A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 A kind of picture grasping means and server
CN106897127A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 A kind of method and server for picture capture treatment
CN107229642A (en) * 2016-03-24 2017-10-03 阿里巴巴集团控股有限公司 The page resource of target pages is shown, page resource loading method and device
CN105913381A (en) * 2016-04-25 2016-08-31 乐视控股(北京)有限公司 Method for processing display position of rotated image and device thereof
CN106327430A (en) * 2016-08-31 2017-01-11 维沃移动通信有限公司 Picture display method and mobile terminal
CN106327430B (en) * 2016-08-31 2019-02-15 维沃移动通信有限公司 A kind of display methods and mobile terminal of picture
CN107426282A (en) * 2017-05-02 2017-12-01 努比亚技术有限公司 A kind of picture loading method, terminal and server
CN109299414A (en) * 2018-09-26 2019-02-01 深圳壹账通智能科技有限公司 A kind of method and terminal of loading page
CN110764766A (en) * 2019-10-15 2020-02-07 成都四方伟业软件股份有限公司 Aperture effect implementation method and device
CN110765386A (en) * 2019-10-28 2020-02-07 北京字节跳动网络技术有限公司 Webpage image monitoring method and device, electronic equipment and readable storage medium
CN111680230A (en) * 2020-05-25 2020-09-18 北京百度网讯科技有限公司 Display method and device of search result page, electronic equipment and storage medium
CN111680230B (en) * 2020-05-25 2023-04-18 北京百度网讯科技有限公司 Display method and device of search result page, electronic equipment and storage medium
CN114359017A (en) * 2021-12-27 2022-04-15 阿波罗智联(北京)科技有限公司 Multimedia resource processing method and device and electronic equipment
CN114359017B (en) * 2021-12-27 2023-11-17 阿波罗智联(北京)科技有限公司 Multimedia resource processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN103902664B (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN103902664A (en) Page image rendering method and information providing method and device
US8634603B2 (en) Automatic media sharing via shutter click
JP5385598B2 (en) Image processing apparatus, image management server apparatus, control method thereof, and program
CN104750848B (en) Processing method, server and the image display of image file
USRE48430E1 (en) Two-dimensional code processing method and terminal
CN108495185B (en) Video title generation method and device
KR20060092075A (en) Information processing apparatus, information processing method, and information processing system
WO2007038007A2 (en) System and method for hosting images embedded in external websites
US20170185675A1 (en) Fingerprinting and matching of content of a multi-media file
US20170150226A1 (en) Bookmarking prospective media content on computer network
CN102402603A (en) Method and device for providing image abstract information corresponding to thumbnail
WO2017140165A1 (en) Method and apparatus for resource storage and electronic device
KR101396362B1 (en) Method and apparatus for providing a detailed information of personal video recorder
CN113038153A (en) Financial live broadcast violation detection method, device and equipment and readable storage medium
CN109710827B (en) Picture attribute management method and device, picture server and business processing terminal
CN109062880B (en) Electronic book file production method, electronic device, server and storage medium
US20140072223A1 (en) Embedding Media Content Within Image Files And Presenting Embedded Media In Conjunction With An Associated Image
CN103198162B (en) A kind of picture browsing exchange method
CN104113509A (en) Media file push method and server
CN106503253A (en) The framework that a kind of web crawlers for picture format extracts URL and indexes and map
CN104699729B (en) Device and method for identifying authenticity of social network site photo
CN103294738A (en) System and method for multimedia stream data searching and retrieval
JP5780898B2 (en) Information providing apparatus, information providing method, and information providing program
JP4072987B2 (en) Recording apparatus and recording method
JP2006139399A (en) Content providing system, content providing method, program for executing the method and recording medium with the program stored therein

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant