CN106202549A - The method and device that a kind of picture loads - Google Patents

The method and device that a kind of picture loads Download PDF

Info

Publication number
CN106202549A
CN106202549A CN201610597635.3A CN201610597635A CN106202549A CN 106202549 A CN106202549 A CN 106202549A CN 201610597635 A CN201610597635 A CN 201610597635A CN 106202549 A CN106202549 A CN 106202549A
Authority
CN
China
Prior art keywords
picture
tone
mass
request
tone pitch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610597635.3A
Other languages
Chinese (zh)
Inventor
罗小平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201610597635.3A priority Critical patent/CN106202549A/en
Publication of CN106202549A publication Critical patent/CN106202549A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the method and device that a kind of picture loads.The method that this picture loads includes: user end to server sends the request obtaining picture;Server generates the mass-tone tone pitch of picture according to request, and wherein, server obtains the mass-tone tone pitch of picture from the URL that request is corresponding or transfers, according to request, the mass-tone tone pitch that picture is corresponding from data base;Mass-tone tone pitch is returned to client;Client Loads Image, and before client has loaded picture, the viewing area of picture is shown as the color that mass-tone tone pitch is corresponding.By implementing the technical program, can be in advance at the dominant hue of picture viewing area display picture, it is to avoid picture has loaded the viewing area of front picture and blank out occurred, problem that after loading, colour contrast is bigger, the visual experience of raising user.

Description

The method and device that a kind of picture loads
Technical field
The present invention relates to internet arena, more particularly, it relates to the method and device that a kind of picture loads.
Background technology
URL (URL) is the position to the resource that can obtain from the Internet and the one of access method Succinct expression, is the address of standard resource on the Internet.Each file on the Internet has a unique URL, its bag The information contained points out how the position of file and browser should process it.URL is uniform resource identifier One sow, uniform resource identifier determines a resource, and URL not only determines a resource, but also Represent that where is it.In picture loading procedure, each picture to be loaded has a corresponding URL, and server can basis The URL of picture navigates to this picture in data base, and data base also preserves the attribute information of picture.
Along with the development of mobile Internet, user utilizes mobile phone to carry out increasing activity, if browse webpage, listen song, Shopping, chat etc., user is when opening browser or opening APP, and browser or APP typically can load some pictures, due to Picture is generally large compared to word, so when Loading Image, if unstable networks or network speed unhappy if, often at word After having shown, picture can be in space state before showing for a long time, adds the most suddenly after server has been downloaded at picture Carry, cause the hopping sense of picture, reduce user's visual experience.Or, when network is poor, be also only able to display picture top or The secondary parts such as person's low side, remainder still can present blank color, hence it is evident that can not meet user's request.
Summary of the invention
The technical problem to be solved in the present invention is, successfully loads front picture viewing area for the picture of prior art and goes out Existing blank defect, it is provided that the method and device that a kind of picture loads.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of method that picture loads, including:
The request obtaining picture is sent to server;
Receive the mass-tone tone pitch of the described picture that described server returns according to described request;
Load described picture, and before described picture has loaded, the viewing area of described picture is shown as described mass-tone The color that tone pitch is corresponding.
Further, method of the present invention also includes:
After described picture has loaded, show described picture in the viewing area of described picture.
On the other hand, invention additionally discloses a kind of method that picture loads, including:
Receive the request obtaining picture that client sends;
The mass-tone tone pitch of described picture is generated according to described request;
The described mass-tone tone pitch generated is returned to described client.
Preferably, in method of the present invention, the described mass-tone tone pitch generating described picture according to described request, bag Include:
The mass-tone tone pitch of described picture is obtained from the URL that described request is corresponding.
Preferably, in method of the present invention, also include:
The mass-tone tone pitch of described picture is generated according to the color of the described picture of storage in data base;
The URL that described picture is corresponding is generated according to described mass-tone tone pitch.
Preferably, in method of the present invention, the described mass-tone tone pitch generating described picture according to described request, bag Include:
Transferring, according to described request, the mass-tone tone pitch that described picture is corresponding from data base, wherein, described mass-tone tone pitch is Color according to described picture previously generates and preserves in the database.
On the other hand, invention additionally discloses a kind of method that picture loads, including:
User end to server sends the request obtaining picture;
Described server generates the mass-tone tone pitch of described picture according to described request, and described mass-tone tone pitch is returned to institute State client;
Described client loads described picture, and by the display of described picture before described client has loaded described picture Region is shown as the color that described mass-tone tone pitch is corresponding.
Preferably, in method of the present invention, described server generates the mass-tone of described picture according to described request Tone pitch, including:
Described server obtains the mass-tone tone pitch of described picture from the URL that described request is corresponding.
On the other hand, invention additionally discloses the device that a kind of picture loads, including:
Request transmitting unit, for sending the request obtaining picture to server;
Mass-tone tone pitch receives unit, for receiving the dominant hue of the described picture that described server returns according to described request Value;
First loading unit, is used for loading described picture;
Second loading unit, for being shown as described master by the viewing area of described picture before described picture has loaded The color that tone value is corresponding.
On the other hand, invention additionally discloses the device that a kind of picture loads, including:
Request reception unit, for receiving the request obtaining picture that client sends;
Mass-tone tone pitch signal generating unit, for generating the mass-tone tone pitch of described picture according to described request;
Mass-tone tone pitch transmitting element, for returning to described client by the described mass-tone tone pitch generated.
Implement the method and device that a kind of picture of the present invention loads, have the advantages that the method that picture loads Including: user end to server sends the request of acquisition picture;Described server generates the master of described picture according to described request Tone value, wherein, obtains the mass-tone tone pitch of described picture or according to described from the URL that described request is corresponding The mass-tone tone pitch that described picture is corresponding is transferred in request from data base;Described mass-tone tone pitch is returned to described client;Described Client loads described picture;It is described before described client has loaded described picture, the viewing area of described picture to be shown as The color that mass-tone tone pitch is corresponding.By implementing the technical program, can keep away in advance at the dominant hue of picture viewing area display picture Exempt to occur before picture has loaded blank out, the problem that after loading, contrast is bigger, improve the experience of user.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the schematic flow sheet of the method that a kind of picture that the embodiment of the present invention provides loads;
Fig. 2 is the schematic flow sheet of the method that the another kind of picture that the embodiment of the present invention provides loads;
Fig. 3 is the schematic flow sheet of the method that a kind of picture that the embodiment of the present invention provides loads;
Fig. 4 is the structural representation of the device that a kind of picture that the embodiment of the present invention provides loads;
Fig. 5 is the structural representation of the device that the another kind of picture that the embodiment of the present invention provides loads.
Detailed description of the invention
In order to be more clearly understood from the technical characteristic of the present invention, purpose and effect, now comparison accompanying drawing describes in detail The detailed description of the invention of the present invention.
The above-mentioned picture that the present invention is directed to prior art successfully loads the defect that the appearance of front picture viewing area is blank, it is provided that The method and device that a kind of picture loads.The method that this picture loads includes: user end to server sends and obtains asking of picture Ask;Server generates the mass-tone tone pitch of picture according to request, wherein, obtains picture from the URL that request is corresponding Mass-tone tone pitch or according to request from data base, transfer the mass-tone tone pitch that picture is corresponding;Mass-tone tone pitch is returned to client; Client Loads Image, and before client has loaded picture, the viewing area of picture is shown as the face that mass-tone tone pitch is corresponding Color.By implementing the technical program, can be in advance at the dominant hue of picture viewing area display picture, it is to avoid picture has loaded Before blank out occurs, the problem that after loading, picture color contrast is bigger, improve user experience.Especially by following several Individual embodiment illustrates.
Such as Fig. 1, it it is the first embodiment of the present invention.
As it is shown in figure 1, be the schematic flow sheet of the method for a kind of picture loading of the present embodiment.The method that this picture loads Being applied to access the client of the Internet, client includes but not limited to: accesses the web browser of WWW, receive and post electronics postal Email client during part and the client software etc. of instant messaging, also include the application journey in intelligent mobile phone terminal Sequence.Such as, user open on intelligent mobile phone terminal browser or open APP carry out browsing webpage, listen song, do shopping, chat etc. Deng.Concrete, at client-side, the method that this picture loads includes:
Step 101: send the request obtaining picture to server.Concrete, user carries out browsing net in use client Page, listen song, do shopping, chat during, client needs to show some pictures, and client obtains to server transmission according to demand Take the request of picture.Such as, user is during browsing webpage, after clicking through a webpage, there is a need to load in webpage Picture, first the URL of this picture is sent in the caching of browser by server, now, if user is initially opened this Webpage, then this locality does not store this picture, and browser needs to send the request obtaining picture to server.
Step 102: receive the mass-tone tone pitch of the picture that server returns according to request.Concrete, in client to service After device sends the request obtaining picture, server can be searched in data base according to the URL of this picture and navigate to this picture.Number According to storehouse not only stores this picture, also stored for the multiple attribute information of picture, the size of such as picture, size, definition, color Coloured silk, dominant hue, background colour etc., wherein, the mass-tone tone pitch of picture generates according to the color of picture.Tone refers to the light that object reflects With which kind of wavelength preponderating in line and determine, different wave length produces the sensation of different colours, and tone is the important spy of color Levying, which determine the basic feature of color essence, dominant hue is the global judgement of the integral color to a width picture, refers to picture The basic tendency of color appearance.Server is asked, by the picture navigated to and the genus of picture according to the acquisition picture of client Property information downloads on server, such as, download on server by the mass-tone tone pitch of picture, server again by this picture and The mass-tone tone pitch of picture is sent to client, and client receives picture and the dominant hue of picture that server returns according to request Value, certainly, client first receives the mass-tone tone pitch of the picture that server returns.
Step 103: Load Image, and it is corresponding that the viewing area of picture is shown as before picture has loaded mass-tone tone pitch Color.
After client receives picture, show picture in the viewing area of this picture.Display process can use disposably Display or download limit, limit show, the image content that will receive shows in time in picture viewing area.It is appreciated that loading After picture, the original display in the viewing area content of picture, the mass-tone tone pitch of such as picture can be override.
Concrete, during actually used client Loads Image, because picture is relatively big or network speed is relatively slow, client from Sending acquisition picture to ask to receive picture and need the regular hour, this time is the longest sometimes, in the meantime, and picture aobvious Show that region is constantly in space state.Comparing and picture itself, it is the least that the mass-tone tone pitch of picture takies memory space, and moment is i.e. Can complete to receive.Therefore, for avoiding the viewing area of picture to be in space state for a long time, first client is called and is received The color that the mass-tone tone pitch of picture is corresponding fills the viewing area of (rendering) picture.So, after client receives picture, The process transitions ratio reloading picture is milder, keeps the total tune of the page, can improve the visual experience of user.
Further, after picture has loaded, the picture in client call buffer area, show in the viewing area of picture Picture.Because of the most rendered dominant hue of this picture in picture viewing area before, and this dominant hue and this picture integral color As distribution, the loading procedure ratio that can make picture is milder, will not cause the huge difference before and after loading, makes user feel to compare Comfortable, improve the visual experience of user.
Such as Fig. 2, it it is the second embodiment of the present invention.
Fig. 2 is the schematic flow sheet of the method that a kind of picture of the present embodiment loads.The method is applied is providing network to access Server in.Concrete, in server side, the method that a kind of picture disclosed in the present embodiment loads, including:
Step 201: receive the request obtaining picture that client sends.Client sends to server according to demand and obtains The request of picture, server receives the request obtaining picture that client sends.This request comprises the positional information of picture.
Step 202: generate the mass-tone tone pitch of picture according to request.
Concrete, in the method for the present embodiment, use two ways to realize generating the mass-tone tone pitch of picture according to request, Respectively:
Mode one: obtain the mass-tone tone pitch of picture from the URL that request is corresponding.Concrete, according to data In storehouse, the color of the picture of storage generates the mass-tone tone pitch of picture, not only stores this picture, also stored for this picture in data base Multiple attribute information, the size of such as picture, size, definition, color, dominant hue, background colour etc..Server extracts in advance The mass-tone tone pitch of picture or the mass-tone tone pitch of the colouring information generation picture according to picture.Further, this is got at server After the mass-tone tone pitch of picture, mass-tone tone pitch is added in the URL (URL) of this picture, form the master comprising picture The URL of tone value, so, just generates the special URL corresponding with picture according to mass-tone tone pitch.Obtain at needs When taking the mass-tone tone pitch of picture, it is no longer necessary to server to data base is searched the mass-tone tone pitch of picture, only need to be from this picture Extracting directly in URL, improves the speed of the mass-tone tone pitch obtaining picture.
Or
Mode two: in the method for the present embodiment, generates the mass-tone tone pitch of picture according to request.Concrete, data base In not only store this picture, also stored for the multiple attribute information of this picture, the size of such as picture, size, definition, color Coloured silk, dominant hue, background colour etc.;Then server transfers the mass-tone tone pitch that picture is corresponding, wherein, mass-tone according to request from data base Tone pitch is that the color according to picture previously generates and is saved in data base, and sets up mass-tone tone pitch and this picture of picture Incidence relation.
It should be understood that the process of the mass-tone tone pitch of above-mentioned generation picture has been carried out when picture stores in data base Complete.The extraction of the dominant hue of picture, including pass-through mode one, mode two dominant hue of picture incorporated in the URL of picture or It is stored in data base, conveniently can directly transfer when needed.
Step 203: the mass-tone tone pitch of generation is returned to client.After server obtains the mass-tone tone pitch of picture, excellent First the mass-tone tone pitch of generation being returned to client, server is the most also obtaining this picture, becomes from data base at server After merit download pictures, picture is returned to client.It is appreciated that the size taking memory space of the mass-tone tone pitch because of picture It is far smaller than picture itself, causes the mass-tone tone pitch of energy quick obtaining picture and return to client.
Such as Fig. 3, it it is the third embodiment of the present invention.
Fig. 3 is the schematic flow sheet of the method that a kind of picture of the present embodiment loads.3rd embodiment combines the first enforcement In example, client-side and the workflow of the second embodiment server side, form a complete system, and this system includes visitor The data base of family end, server and correspondence.Concrete, the method for a kind of picture loading disclosed in the present embodiment, including:
Step 301: user end to server sends the request obtaining picture.Concrete, user is carried out in use client During browsing webpage, listening song, do shopping, chat, client needs to show some pictures, and client is according to demand to server Send the request obtaining picture.Such as, user is during browsing webpage, after clicking through a webpage, has and need in webpage Picture to be loaded, first the URL of picture is sent in the caching of browser by server, now, if user beats first Open this webpage, then this locality does not store this picture, and browser needs to send the request obtaining this picture to server.
Step 302: server generates the mass-tone tone pitch of picture according to request, and mass-tone tone pitch is returned to client.
Concrete, client sends the request obtaining picture according to demand to server, and server receives client and sends Obtain picture request.
Preferably, in the method for the present embodiment, server generates the mass-tone tone pitch of picture according to request, concrete, In the method for the present embodiment, two ways is used to realize generating the mass-tone tone pitch of picture according to request, respectively:
Mode one: obtain the mass-tone tone pitch of picture from the URL that request is corresponding.Concrete, according to data In storehouse, the color of the picture of storage generates the mass-tone tone pitch of picture, not only stores this picture, also stored for this picture in data base Multiple attribute information, the size of such as picture, size, definition, color, dominant hue, background colour etc..Server extracts in advance The mass-tone tone pitch of picture or the mass-tone tone pitch of the colouring information generation picture according to picture.Further, this is got at server After the mass-tone tone pitch of picture, mass-tone tone pitch is added in the URL (URL) of this picture, form the master comprising picture The URL of tone value, so, just generates, according to mass-tone tone pitch, the special URL that picture is corresponding.Obtain at needs During the mass-tone tone pitch of picture, it is no longer necessary to server to data base is searched the mass-tone tone pitch of picture, only need to be from the URL of this picture Middle extracting directly, improves the speed of the mass-tone tone pitch obtaining picture.
Or
Mode two: in the method for the present embodiment, generates the mass-tone tone pitch of picture according to request.Concrete, data base In not only store this picture, also stored for the multiple attribute information of this picture, the size of such as picture, size, definition, color Coloured silk, dominant hue, background colour etc.;Then server transfers the mass-tone tone pitch that picture is corresponding, wherein, mass-tone according to request from data base Tone pitch is that the color according to picture previously generates and is saved in data base, and sets up mass-tone tone pitch and this picture of picture Incidence relation.
It should be understood that the process of the mass-tone tone pitch of above-mentioned generation picture has been carried out when picture stores in data base Complete.The extraction of the dominant hue of picture, including pass-through mode one, mode two dominant hue of picture incorporated in the URL of picture or It is stored in data base, conveniently can directly transfer when needed.
Further, the mass-tone tone pitch of generation is returned to client.Concrete, the mass-tone tone pitch of picture is obtained at server After, preferentially the mass-tone tone pitch of generation is returned to client, it will be understood that server is the most also obtaining this picture, in service Picture after success download pictures, is returned to client from data base by device.It is appreciated that taking of the mass-tone tone pitch because of picture The size of memory space is far smaller than picture itself, causes the mass-tone tone pitch of energy quick obtaining picture and returns to client.
Step 303: client Loads Image, and before client has loaded picture, the viewing area of picture is shown as main The color that tone value is corresponding.
After client receives picture, show picture in the viewing area of this picture.Display process can use disposably Display or download limit, limit show, the image content that will receive shows in time in picture viewing area.It is appreciated that loading After picture, the original display in the viewing area content of picture, the mass-tone tone pitch of such as picture can be override.
Concrete, during actually used client Loads Image, because picture is relatively big or network speed is relatively slow, client from Sending acquisition picture to ask to receive picture and need the regular hour, this time is the longest sometimes, in the meantime, and picture aobvious Show that region is constantly in space state.Comparing and picture itself, it is the least that the mass-tone tone pitch of picture takies memory space, and moment is i.e. Can complete to receive.Therefore, for avoiding the viewing area of picture to be in space state for a long time, first client is called and is received The color that the mass-tone tone pitch of picture is corresponding fills the viewing area of (rendering) picture.So, receive picture in client, then The process transitions ratio Loaded Image is milder, keeps the total tune of the page, can improve the visual experience of user.
Further, after picture has loaded, the picture in client call buffer area, show in the viewing area of picture Picture.Because of the most rendered dominant hue of this picture in picture viewing area before, and this dominant hue divides with picture integral color Cloth is the same, and the loading procedure ratio that can make picture is milder, will not cause the huge difference before and after loading, makes user feel relatively and relaxes Clothes, improve the experience of user.
Such as Fig. 4, it it is the fourth embodiment of the present invention.
Fig. 4 is the structural representation of the device that a kind of picture of the present embodiment loads;The device that this picture loads is applied and connects Entering the client of the Internet, client includes but not limited to: accesses the web browser of WWW, receive electricity when posting Email Sub-Mail Clients and the client software etc. of instant messaging, also include the application program in intelligent mobile phone terminal;User exists Open on intelligent mobile phone terminal browser or open APP carry out browsing webpage, listen song, do shopping, chat etc..Concrete, this reality Execute the device that a kind of picture disclosed in example loads, including: request transmitting unit 401, mass-tone tone pitch receive unit 402, first add Carrier unit the 403, second loading unit 404, is below described in detail.
Request transmitting unit 401, for sending the request obtaining picture to server.
Concrete, user during using client to carry out to browse webpage, listening song, do shopping, chat, client needs Showing some pictures, client sends the request obtaining picture according to demand to server.Such as, user is browsing webpage process In, after clicking through a webpage, webpage there is a need to the picture loaded, first the URL of picture is sent to clear by server Looking in the caching of device, now, if user is initially opened this webpage, then this locality does not store this picture, browser need to Server sends the request obtaining this picture.
Mass-tone tone pitch receives unit 402, for receiving the mass-tone tone pitch of the picture that server returns according to request.
Concrete, send the request obtaining picture at user end to server after, server can count according to the URL of picture According to Search and Orientation in storehouse to this picture, data base not only stores this picture, also stored for the multiple attribute information of picture, such as The size of picture, size, definition, color, dominant hue, background colour etc., server, will according to the acquisition picture request of client The picture navigated to and the attribute information of picture download on server, such as, the mass-tone tone pitch of picture is downloaded to server On, the mass-tone tone pitch of picture and picture is sent to client by server again, and client receives server and returns according to request Picture and the mass-tone tone pitch of picture.
First loading unit 403, is used for Loading Image.After client receives picture, aobvious in the viewing area of picture Diagram sheet.Display process can use disposable display or download limit, limit to show, the image content that will receive shows in time Picture viewing area.It is appreciated that after Loading Image, the original display in the viewing area content of picture can be override, such as scheme The mass-tone tone pitch of sheet.
Second loading unit 404, for being shown as mass-tone tone pitch pair by the viewing area of picture before picture has loaded The color answered.
Concrete, during actually used client Loads Image, because picture is relatively big or network speed is relatively slow, client from Sending acquisition picture to ask to receive picture and need the regular hour, this time is the longest sometimes, and the mass-tone tone pitch of picture The least, moment can complete to receive.Therefore, for avoiding picture loading area to be in space state for a long time, in this process In, the color that first client calls the mass-tone tone pitch of the picture received corresponding renders and fills picture loading area, makes Obtain picture loading area and seem that ratio is milder, keep the total tune of the page, the experience of user can be improved.
Further, after picture has loaded, the picture in client call buffer area, show in the viewing area of picture Picture.Because of the most rendered dominant hue of picture in picture viewing area before, and this dominant hue is distributed with picture integral color Equally, the loading procedure ratio that can make picture is milder, the most inconspicuous, will not cause the huge difference before and after loading, make user Feel more comfortable, improve the experience of user.
Such as Fig. 5, it it is the fifth embodiment of the present invention.
Fig. 5 is the structural representation of the device that a kind of picture of the present embodiment loads.Disclosed in the present embodiment, a kind of picture adds The device carried, including: request reception unit 501, mass-tone tone pitch signal generating unit 502, mass-tone tone pitch transmitting element 503, below enter Row describes in detail.
Request reception unit 501, for receiving the request obtaining picture that client sends.Client is according to demand to clothes Business device sends the request obtaining picture, and server receives the request obtaining picture that client sends.
Mass-tone tone pitch signal generating unit 502, for generating the mass-tone tone pitch of picture according to request.
Concrete, in the device of the present embodiment, use two ways to realize generating the mass-tone tone pitch of picture according to request, Respectively:
Mode one: obtain the mass-tone tone pitch of picture from the URL that request is corresponding.Concrete, according to data In storehouse, the color of the picture of storage generates the mass-tone tone pitch of picture, not only stores this picture, also stored for this figure in data base The multiple attribute information of sheet, the size of such as picture, size, definition, color, dominant hue, background colour etc.;Server carries in advance Take the mass-tone tone pitch of picture or produce the mass-tone tone pitch of picture according to the colouring information of picture.Further, get at server After the mass-tone tone pitch of this picture, mass-tone tone pitch is added in the URL of this picture, form the URL comprising picture dominant tone value, this Sample, just generates, according to mass-tone tone pitch, the URL that picture is corresponding.When needing the mass-tone tone pitch obtaining picture, no longer Need server to data base searches the mass-tone tone pitch of picture, only need to extract from the URL of this picture, improve to obtain and scheme The speed of the mass-tone tone pitch of sheet.
Or
Mode two: in the device of the present embodiment, generates the mass-tone tone pitch of picture, not only deposits in data base according to request Store up this picture, also stored for the multiple attribute information of this picture, the size of such as picture, size, definition, color, dominant hue, Background colour etc.;Then server transfers the mass-tone tone pitch that picture is corresponding, wherein, according to mass-tone tone pitch according to request from data base The color of picture previously generates and is saved in data base, and sets up the mass-tone tone pitch of picture and the incidence relation of this picture.
It should be understood that the process of the mass-tone tone pitch of above-mentioned generation picture has been carried out when picture stores in data base The extraction of the dominant hue of picture, and according to mode one or mode two, the dominant hue of picture is incorporated in the URL of picture or storage In data base, transfer during convenient use.
Mass-tone tone pitch transmitting element 503, for returning to client by the mass-tone tone pitch of generation.
After server obtains the mass-tone tone pitch of picture, preferentially the mass-tone tone pitch of generation is returned to client, Ke Yili Solving, server is the most also obtaining this picture, after server successfully downloads this picture from data base, picture is returned to visitor Family end.
Above example only for technology design and the feature of the present embodiment are described, its object is to allow and is familiar with technique Personage will appreciate that the content of the present embodiment and implements accordingly, can not limit the protection domain of the present embodiment.All with this enforcement Equalization change and the modification that example right is done, all should belong to the covering scope of the present embodiment claim.

Claims (10)

1. the method that a picture loads, it is characterised in that including:
The request obtaining picture is sent to server;
Receive the mass-tone tone pitch of the described picture that described server returns according to described request;
Load described picture, and before described picture has loaded, the viewing area of described picture is shown as described mass-tone tone pitch Corresponding color.
Method the most according to claim 1, it is characterised in that described method also includes:
After described picture has loaded, show described picture in the viewing area of described picture.
3. the method that a picture loads, it is characterised in that including:
Receive the request obtaining picture that client sends;
The mass-tone tone pitch of described picture is generated according to described request;
The described mass-tone tone pitch generated is returned to described client.
Method the most according to claim 3, it is characterised in that the described dominant hue generating described picture according to described request Value, including:
The mass-tone tone pitch of described picture is obtained from the URL that described request is corresponding.
Method the most according to claim 4, it is characterised in that described method also includes:
The mass-tone tone pitch of described picture is generated according to the color of the described picture of storage in data base;
The URL that described picture is corresponding is generated according to described mass-tone tone pitch.
Method the most according to claim 3, it is characterised in that the described dominant hue generating described picture according to described request Value, including:
From data base, the mass-tone tone pitch that described picture is corresponding is transferred, wherein, according to described mass-tone tone pitch according to described request The color of described picture previously generates and preserves in the database.
7. the method that a picture loads, it is characterised in that including:
User end to server sends the request obtaining picture;
Described server generates the mass-tone tone pitch of described picture according to described request, and described mass-tone tone pitch is returned to described visitor Family end;
Described client loads described picture, and by the viewing area of described picture before described client has loaded described picture It is shown as the color that described mass-tone tone pitch is corresponding.
Method the most according to claim 7, it is characterised in that described server generates described picture according to described request Mass-tone tone pitch, including:
Described server obtains the mass-tone tone pitch of described picture from the URL that described request is corresponding.
9. the device that a picture loads, it is characterised in that including:
Request transmitting unit, for sending the request obtaining picture to server;
Mass-tone tone pitch receives unit, for receiving the mass-tone tone pitch of the described picture that described server returns according to described request;
First loading unit, is used for loading described picture;
Second loading unit, for being shown as described dominant hue by the viewing area of described picture before described picture has loaded The color that value is corresponding.
10. the device that a picture loads, it is characterised in that including:
Request reception unit, for receiving the request obtaining picture that client sends;
Mass-tone tone pitch signal generating unit, for generating the mass-tone tone pitch of described picture according to described request;
Mass-tone tone pitch transmitting element, for returning to described client by the described mass-tone tone pitch generated.
CN201610597635.3A 2016-07-26 2016-07-26 The method and device that a kind of picture loads Pending CN106202549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610597635.3A CN106202549A (en) 2016-07-26 2016-07-26 The method and device that a kind of picture loads

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610597635.3A CN106202549A (en) 2016-07-26 2016-07-26 The method and device that a kind of picture loads

Publications (1)

Publication Number Publication Date
CN106202549A true CN106202549A (en) 2016-12-07

Family

ID=57496030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610597635.3A Pending CN106202549A (en) 2016-07-26 2016-07-26 The method and device that a kind of picture loads

Country Status (1)

Country Link
CN (1) CN106202549A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259533A (en) * 2016-12-28 2018-07-06 阿里巴巴集团控股有限公司 A kind of data transmission method and device
CN108595235A (en) * 2018-03-20 2018-09-28 车音智能科技有限公司 A kind of picture loading method and device
CN108846872A (en) * 2018-07-09 2018-11-20 苏州浪潮智能软件有限公司 A kind of image processing method and device
CN111402363A (en) * 2020-06-04 2020-07-10 广东睿江云计算股份有限公司 Method and system for filling frame picture color
CN111431947A (en) * 2020-06-15 2020-07-17 广东睿江云计算股份有限公司 Method and system for optimizing display of cloud desktop client

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164519A (en) * 2013-03-08 2013-06-19 优视科技有限公司 Method capable of adjusting tone of tool bar and device capable of adjusting tone of tool bar
CN103218989A (en) * 2013-04-09 2013-07-24 广东欧珀移动通信有限公司 Personalized display method and personalized display terminal during picture preloading
CN105786896A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Color rendering method and device of page sidebar

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164519A (en) * 2013-03-08 2013-06-19 优视科技有限公司 Method capable of adjusting tone of tool bar and device capable of adjusting tone of tool bar
CN103218989A (en) * 2013-04-09 2013-07-24 广东欧珀移动通信有限公司 Personalized display method and personalized display terminal during picture preloading
CN105786896A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Color rendering method and device of page sidebar

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259533A (en) * 2016-12-28 2018-07-06 阿里巴巴集团控股有限公司 A kind of data transmission method and device
CN108595235A (en) * 2018-03-20 2018-09-28 车音智能科技有限公司 A kind of picture loading method and device
CN108846872A (en) * 2018-07-09 2018-11-20 苏州浪潮智能软件有限公司 A kind of image processing method and device
CN111402363A (en) * 2020-06-04 2020-07-10 广东睿江云计算股份有限公司 Method and system for filling frame picture color
CN111431947A (en) * 2020-06-15 2020-07-17 广东睿江云计算股份有限公司 Method and system for optimizing display of cloud desktop client

Similar Documents

Publication Publication Date Title
CN106202549A (en) The method and device that a kind of picture loads
CN100486168C (en) A method for pushing the chat scenario to instant communication users
CN106528432B (en) The construction method and device of test scene data bury a test method
CN103034517B (en) Browser controls tool loads method and apparatus
CN104854848B (en) The processing method of terminal and contact head image
CN106384388B (en) The real-time try-in method of internet glasses and system based on HTML5 and augmented reality
CN105611422B (en) Online live broadcasting method and device based on multimedia list
CN107391664A (en) Page data processing method and system based on WEB
CN109474844A (en) Video information processing method and device, computer equipment
CN106708858A (en) Information recommendation method and device
CN111970188B (en) Capability forwarding method and device
CN105871945A (en) Image information sending method and device, and waterfall flow layout method and device
CN106357539B (en) A kind of data capture method and equipment
CN109697091A (en) Processing method, device, storage medium and the electronic device of the page
CN110363542A (en) Construction method, device, storage medium and the electronic equipment of customer service system
CN108052553A (en) Method, apparatus, computer equipment and the storage medium of electronic documentation generation
CN106209857A (en) Data transmission method and device
CN105718523A (en) Information sharing method and system
CN106411688A (en) Method of displaying pendant object in user head portrait area and apparatus thereof
CN108230220A (en) Watermark adding method and device
CN104572981B (en) A kind of Webpage method for caching and processing and mobile terminal device
CN103401935A (en) Mobile terminal and method thereof for sharing data through web browser
CN105872193A (en) Method and device for sharing wallpaper picture, and mobile terminal
CN105677699A (en) Method and apparatus for generating news pages for user
CN107396142A (en) Interface navigation data processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207