CN106156285A - Image display method and device - Google Patents
Image display method and device Download PDFInfo
- Publication number
- CN106156285A CN106156285A CN201610483673.6A CN201610483673A CN106156285A CN 106156285 A CN106156285 A CN 106156285A CN 201610483673 A CN201610483673 A CN 201610483673A CN 106156285 A CN106156285 A CN 106156285A
- Authority
- CN
- China
- Prior art keywords
- picture
- parameter
- client
- compression factor
- mark
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
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 disclosure discloses a kind of image display method and device, belongs to Internet technical field.The method includes: receiving the picture acquisition request that client sends, described picture obtains request and includes the parameter of the network environment residing for described client;According to described parameter determination compression factor, and obtain picture compressed picture under described compression factor;Described compressed picture is sent to described client show;Solve client and be in any network environment server all to the original image of client transmission picture, cause when the poor quality of the network environment residing for client, client shows the problem that the speed of picture is very slow or can not show picture, server is according to the parameter of the network environment residing for client, the compressed picture corresponding with parameter is sent to client, reach to be maintained at the fluency of browsing pictures in the case of different network environments, save the effect of the flow of user.
Description
Technical field
It relates to Internet technical field, particularly to a kind of image display method and device.
Background technology
Along with popularizing of mobile Internet and being widely used of mobile terminal, people can be moved eventually by various being arranged on
Client browse picture on end.
Under normal circumstances, picture, after server end obtains picture, is shown on the display interface of client by client.
Disclosure
It is in any network environment server all to the artwork of client transmission picture to solve client, causes visitor
During the poor quality of the network environment residing for the end of family, the speed of client display picture is very slow or can not show asking of picture
Topic, disclosure embodiment provides a kind of image display method and device.Described technical scheme is as follows:
First aspect, it is provided that a kind of image display method, the method is applied in server, and the method includes:
Receiving the picture acquisition request that client sends, picture obtains request and includes the ginseng of the network environment residing for client
Number;
According to parameter determination compression factor, and obtain picture compressed picture under this compression factor;
Compressed picture is sent to client show.
Optionally, picture obtains the mark asking also to include picture.
Optionally, according to parameter determination compression factor, and obtain picture compressed picture under compression factor, including:
Whether including mark and the parameter of picture in detection caching mapping relations, caching mapping relations are for recordable picture
Mark, parameter and the buffer address corresponding with the mark of picture and parameter, buffer address is for indicating the pressure under compression factor
Contract drawing sheet storage position in the server;
If not including mark and the parameter of picture in caching mapping relations, then mark and parameter according to picture generate in pressure
Compressed picture under contracting ratio, and by the buffer address of compressed picture, the mark of picture and reference record in caching mapping relations
In;
If caching mapping relations include mark and the parameter of picture, then find out and picture from caching mapping relations
Identify the buffer address corresponding with parameter, the compressed picture obtained under compression factor according to buffer address.
Optionally, mark and parameter according to picture generate the compressed picture under compression factor, including:
Mark according to picture determines the storage address of picture, and obtains picture;
Determine the compression factor of picture from predetermined relationship according to parameter, predetermined relationship is between parameter and compression factor
Corresponding relation;
According to compression factor, picture is compressed, obtains compressed picture.
Second aspect, it is provided that a kind of image display method, the method is applied in client, and the method includes:
Sending picture to server and obtain request, picture obtains request and includes the parameter of the network environment residing for client;
The picture that reception server sends compressed picture under compression factor, compression factor is according to parameter determination;
Display compressed picture.
The third aspect, it is provided that a kind of image display apparatus, this device is applied in server, and this device includes:
Receiver module, is configured to receive the picture acquisition request that client sends, and picture obtains request and includes client
The parameter of residing network environment;
Acquisition module, is configured to according to parameter determination compression factor, and obtains picture compression figure under compression factor
Sheet;
Sending module, is configured to that compressed picture is sent to client and shows.
Optionally, picture obtains the mark asking also to include picture.
Optionally, acquisition module, including:
Detection sub-module, is configured to whether include in detection caching mapping relations mark and the parameter of picture, and caching reflects
Penetrating relation mark, parameter and the buffer address corresponding with the mark of picture and parameter for recordable picture, buffer address is used for
Instruction compressed picture under compression factor storage position in the server;
First obtains submodule, if being configured to cache mark and the parameter not including picture in mapping relations, then basis
The mark of picture and parameter generate the compressed picture under compression factor, and by the buffer address of compressed picture, the mark of picture
With reference record in caching mapping relations;
Second obtains submodule, if being configured to cache mapping relations to include mark and the parameter of picture, then from caching
Mapping relations find out the mark with picture and buffer address corresponding to parameter, obtains under compression factor according to buffer address
Compressed picture.
Optionally, first obtains submodule, including:
Picture obtains submodule, is configured to the mark according to picture and determines the storage address of picture, and obtains picture;
Compression factor determines submodule, is configured to determine from predetermined relationship the compression factor of picture according to parameter, in advance
Determining relation is the corresponding relation between parameter and compression factor;
Compression submodule, is configured to be compressed picture according to compression factor, obtains compressed picture.
Fourth aspect, it is provided that a kind of image display apparatus, this device is applied in client, and device includes:
Sending module, is configured to send picture to server and obtains request, and picture obtains request and includes residing for client
The parameter of network environment;
Receiver module, is configured to the picture receiving server transmission compressed picture under compression factor, compression factor
According to parameter determination;
Display module, is display configured to compressed picture.
5th aspect, it is provided that a kind of image display apparatus, this device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, processor is configured to:
Receiving the picture acquisition request that client sends, picture obtains request and includes the ginseng of the network environment residing for client
Number;
According to parameter determination compression factor, and obtain picture compressed picture under compression factor;
Compressed picture is sent to client show.
6th aspect, it is provided that a kind of image display apparatus, this device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, processor is configured to:
Sending picture to server and obtain request, picture obtains request and includes the parameter of the network environment residing for client;
The picture that reception server sends compressed picture under compression factor, compression factor is according to parameter determination;
Display compressed picture.
The technical scheme that disclosure embodiment provides has the benefit that
The picture being sent the parameter including network environment residing for client by user end to server obtains request, service
Device obtains the pressure of the acquisition request picture corresponding with the parameter of the network environment residing for client according to the picture that client sends
Contract drawing sheet, and be sent to client and show, solves client and is in any network environment server and all sends out to client
Send the original image of picture, cause when the poor quality of the network environment residing for client, the speed of client display picture
Very slow or show not go out the problem of picture, server is according to the parameter of the network environment residing for client, to client transmission
The compressed picture corresponding with parameter, has reached to be maintained at the fluency of browsing pictures in the case of different network environments, has saved user
The effect of flow.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in disclosure embodiment, in embodiment being described below required for make
Accompanying drawing be briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the disclosure, for
From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the schematic diagram of the implementation environment shown according to a kind of picture shown in exemplary partial embodiment;
Fig. 2 is the flow chart according to a kind of image display method shown in an exemplary embodiment;
Fig. 3 is the flow chart according to the another kind of image display method shown in another exemplary embodiment;
Fig. 4 is the flow chart according to the another kind of image display method shown in an exemplary embodiment;
Fig. 5 is the block diagram according to a kind of image display apparatus shown in an exemplary embodiment;
Fig. 6 is the block diagram according to the another kind of image display apparatus shown in an exemplary embodiment;
Fig. 7 is the block diagram according to the another kind of image display apparatus shown in another exemplary embodiment;
Fig. 8 is the block diagram according to the another kind of image display apparatus shown in another exemplary embodiment;
Fig. 9 is the block diagram according to the another kind of image display apparatus shown in another exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the disclosure are consistent.
Refer to Fig. 1, it illustrates the signal of the implementation environment of a kind of image display method that disclosure embodiment provides
Figure.This implementation environment includes: server 110 and at least one terminal 120, wherein:
Server 120 is the background server of third party application, can be a station server or multiple servers group
The server cluster become or cloud computing center.In server 120, storage has for picture displayed on the terminals.Optionally, clothes
In business device 120, also storage has for the compression factor of compressed picture and the corresponding relation of the parameter of network environment, and, caching reflects
Penetrate relation, the picture of the original image that these caching mapping relations are used for storing the buffer address of compressed picture, compressed picture is corresponding
Mark and the parameter of network environment.
Terminal 120 has data storage and the ability of data transmission, is provided with and can show the 3rd of picture in terminal 120
The client of Fang Yingyong, such as: such as terminal 120 is smart mobile phone, panel computer.Optionally, the quantity of terminal 120 is one
Or more than one.
Server 110 is connected by wireless network or cable network with terminal 120.
Refer to Fig. 2, it illustrates the flow chart of the image display method that one exemplary embodiment of the disclosure provides.This
Embodiment is applied to illustrate in the implementation environment shown in Fig. 1 with this image display method.This image display method includes
Following steps:
In step 201, user end to server sends picture and obtains request, and picture obtains request and includes residing for client
The parameter of network environment.
Optionally, client sends to service and includes the picture of the parameter of network environment residing for the mark of picture and client
Obtain request.Optionally, (Uniform Resource Locator, unification provides the picture URL in a network that is designated of picture
Source location accords with), or, the mark of picture is that other can uniquely determine the information of this picture.
The parameter of network environment is for indicating current network environment, such as: parameter 0 represents that current network conditions is
WIFI, parameter 1 represents that current network conditions is 2G network, and parameter 2 represents that current network conditions is 3G network, and parameter 3 represents to be worked as
Front network environment is 4G network, and parameter 4 represents that current network conditions is 5G network.
In step 202., server receives the picture acquisition request that client sends.
Optionally, server receives the picture acquisition request that client sends, and obtains request from picture and obtains client
The parameter of residing network environment.Optionally, server also obtains the mark obtaining picture request from picture, according to picture
Mark determines this picture storage position in the server.
In step 203, server is according to parameter determination compression factor, and obtains picture compression under this compression factor
Picture.
In step 204, compressed picture is sent to client and shows by server.
In step 205, client receives the compressed picture of the picture that server sends.
In step 206, client shows this compressed picture.
It should be noted that above-mentioned steps 201, step 205 and step 206 can be implemented separately the method becoming client-side
Embodiment, above-mentioned steps 202 to step 204 can be implemented separately the embodiment of the method becoming server side.
In sum, the image display method that disclosure embodiment provides, sent by user end to server and include visitor
The picture of the parameter of network environment residing for the end of family obtains request, server according to the picture that client sends obtain acquisition request and
The compressed picture of the picture that the parameter of the network environment residing for client is corresponding, and be sent to client and show, solve
Client is in any network environment server and all sends the original image of picture to client, causes at the net residing for client
During the poor quality of network environment, the speed of client display picture is very slow or can not show the problem of picture, server according to
The parameter of the network environment residing for client, sends the compressed picture corresponding with parameter to client, has reached to be maintained at difference
The fluency of browsing pictures in the case of network environment, saves the effect of the flow of user.
Refer to Fig. 3, it illustrates the flow chart of the image display method that another exemplary embodiment of the disclosure provides.
The present embodiment is applied to illustrate in the implementation environment shown in Fig. 1 with this image display method.This image display method bag
Include following steps:
In step 301, user end to server sends picture and obtains request, and picture obtains request and includes the mark of picture
Parameter with the network environment residing for this client.
Optionally, picture be designated picture URL in a network, or, the mark of picture is that other can be the most true
The information of this picture fixed.
Optionally, the implementation of this step has a following two kinds:
One, during the parameter of the network environment residing for client is added on the URL of the picture needing acquisition by client, then to
Server sends the picture of the URL including picture and obtains request.
Two, during the parameter of the network environment residing for client is not added on the URL of the picture needing acquisition by client, directly
Connect to send to server and include that the URL of picture and the picture of this parameter obtain request
The parameter of network environment is for indicating the quality of current network environment and network environment, such as: parameter 0 represents
Current network conditions is WIFI, and parameter 1 represents that current network conditions is 2G network, and parameter 2 represents that current network conditions is 3G net
Network, parameter 3 represents that current network conditions is 4G network, and parameter 4 represents that current network conditions is 5G network.
The quality of the network environment indicated by the parameter of network environment and the compression ratio of artwork are negative correlativing relation.Network rings
The quality in border is the highest, and the compression ratio of artwork is the least, and the quality of network environment is the lowest, and the compression ratio of artwork is the biggest.Such as: if network
The quality of environment is the highest, then the compression ratio of artwork is 0.8, if the quality of network environment is common, then the compression ratio of artwork is
0.6。
In step 302, server receives the picture acquisition request that client sends.
In step 303, whether server detection caching mapping relations include that picture obtains the picture that request includes
Mark and the parameter of the network environment residing for client.
Caching mapping relations for the mark of recordable picture, the parameter of network environment and with the mark of picture and network environment
The buffer address of compressed picture corresponding to parameter.Same pictures has a compressed picture relative to a parameter, same
Picture has the compressed picture that multiple are different, and the compression factor of every compressed picture is different.
Buffer address is for indicating the storage position in the server of the compressed picture under compression factor.
As shown in Table 1, what it was exemplary shows a kind of caching mapping relations.
Table one
Server obtains the parameter obtaining the network environment residing for the mark of picture and client request, detection from picture
Whether caching mapping relations include mark and this parameter of this picture.
If server detects mark and this parameter not including this picture in caching relation, then perform step 304;If clothes
Business device detects that caching relation includes mark and this parameter of this picture, then perform step 305.
In step 304, if not including mark and this parameter of this picture in caching mapping relations, then server is according to being somebody's turn to do
The mark of picture and this parameter generate the compressed picture under compression factor, and by the buffer address of compressed picture, this picture
Mark and this reference record are in caching mapping relations.
Wherein, server generates compressed picture according to mark and this parameter of this picture, can be realized by following three step,
As shown in Figure 4:
In step 304a, server determines the storage address of this picture according to the mark of this picture, and obtains this picture.
Optionally, when the mark of picture is picture URL in a network, server resolves this URL, obtains this picture
Storage address.
In step 304b, server determines the compression factor of artwork according to parameter from predetermined relationship, and predetermined relationship is
Corresponding relation between parameter and compression factor.
Optionally, predetermined relationship pre-sets.
Compression factor is the data volume business divided by the data volume of artwork of the compressed picture of artwork.Different parameters corresponds to
Different compression ratios.
The span of compression factor is less than 1 more than 0.When network environment is not WIFI, compression factor is less than more than 0
1。
As shown in Table 2, it schematically illustrates the corresponding pass between the parameter of a kind of network environment and compression factor
System.
Table two
Network environment | The parameter of network environment | Compression factor |
2G | Parameter 1 | 0.4 |
3G | Parameter 2 | 0.6 |
4G | Parameter 3 | 0.8 |
In step 304c, picture is compressed by server according to compression factor, obtains compressed picture.
After this picture being compressed according to compression factor, in the display content in compressed picture and the display in this picture
Hold identical, but the data volume of compressed picture is different with the data volume of this picture, such as: the data volume of picture is 0.5MB, compression ratio
Example is 0.8, then the data volume of compressed picture is 0.4MB.The picture quality of the compressed picture that different compress modes obtains is different.
After server generates compressed picture, compressed picture is cached, and by the buffer address of compressed picture, the mark of this picture
Knowing, the reference record of the network environment corresponding with compressed picture is in caching mapping relations.Such as: picture be designated URL1,
Network environment parameters is parameter 2, and the buffer address of the compressed picture of generation is buffer address 8, then server by URL1, parameter 2,
Corresponding relation record between buffer address 8 is in caching mapping relations.
In step 305, if caching mapping relations include mark and this parameter of this picture, then server reflects from caching
Penetrate the mark found out in relation with this picture and buffer address corresponding to parameter, obtain under compression factor according to buffer address
Compressed picture.
Such as: picture pic be designated URL2, the parameter of network environment is parameter 1, server from caching mapping relations
In to find the buffer address corresponding with URL2 and parameter 1 be buffer address 3, then server obtains compression from buffer address 3
Picture.
Within step 306, compressed picture is sent to client and shows by server.
In step 307, client receives this picture of server transmission compressed picture under compression factor.
In step 308, client shows this compressed picture.
If it should be noted that the network environment that the parameter that server parses indicates is WIFI network, the most not to this figure
Sheet is compressed, and directly obtains this picture, and is sent to client and shows.
It should be noted that above-mentioned steps 301, step 307 and step 308 can be implemented separately the method becoming client-side
Embodiment, above-mentioned steps 302 to step 304 can be implemented separately the embodiment of the method becoming server side.
In sum, the image display method that disclosure embodiment provides, sent by user end to server and include visitor
The picture of the parameter of network environment residing for the end of family obtains request, and server is according to the parameter determination of the network environment residing for client
Compression factor, and obtain this picture compressed picture under this compression factor, and be sent to client and show, solve visitor
Family end is in any network environment server and all sends the original image of picture to client, causes at the network residing for client
During the poor quality of environment, the speed of client display picture is very slow or can not show the problem of picture, and server is according to visitor
The parameter of the network environment residing for the end of family, sends the compressed picture corresponding with parameter to client, has reached to be maintained at different net
The fluency of browsing pictures under network ambient conditions, saves the effect of the flow of user.
Additionally, also by when caching in mapping relations mark and the parameter not including picture, by generate at compression ratio
The buffer address of the compressed picture under example, the mark of picture and reference record are in caching mapping relations, it is to avoid server repeats
Generate the same artwork compressed picture corresponding to same compression ratio, reduce the workload of server, improve the efficiency that picture obtains.
Following for disclosure device embodiment, may be used for performing method of disclosure embodiment.Real for disclosure device
Execute the details not disclosed in example, refer to method of disclosure embodiment.
Refer to Fig. 5, it illustrates the block diagram of the image display apparatus that one embodiment of the disclosure provides.This figure
Sheet display device can pass through software, hardware or both be implemented in combination with become the above-mentioned service that image display method is provided
The all or part of device.This device includes:
Receiver module 510, is configured to receive the picture acquisition request that client sends, and picture obtains request and includes client
The parameter of the network environment residing for end.
Acquisition module 520, is configured to according to parameter determination compression factor, and obtains picture compression under compression factor
Picture.
Sending module 530, is configured to that compressed picture is sent to client and shows.
In sum, the image display apparatus that disclosure embodiment provides, sent by user end to server and include visitor
The picture of the parameter of network environment residing for the end of family obtains request, and server is according to the parameter determination of the network environment residing for client
Compression factor, and obtain this picture compressed picture under this compression factor, and be sent to client and show, solve visitor
Family end is in any network environment server and all sends the original image of picture to client, causes at the network residing for client
During the poor quality of environment, the speed of client display picture is very slow or can not show the problem of picture, and server is according to visitor
The parameter of the network environment residing for the end of family, sends the compressed picture corresponding with parameter to client, has reached to be maintained at different net
The fluency of browsing pictures under network ambient conditions, saves the effect of the flow of user.
Refer to Fig. 6, it illustrates the block diagram of the image display apparatus that another embodiment of the disclosure provides.Should
Image display apparatus can pass through software, hardware or both be implemented in combination with become the above-mentioned clothes that image display method is provided
The all or part of business device.This device includes:
Receiver module 610, is configured to receive the picture acquisition request that client sends, and picture obtains request and includes client
The parameter of the network environment residing for end.
Acquisition module 620, is configured to according to parameter determination compression factor, and obtains picture compression under compression factor
Picture.
Sending module 630, is configured to that compressed picture is sent to client and shows.
Optionally, this picture obtains the mark asking also to include picture.
Optionally, acquisition module 620, including:
Detection sub-module 621, is configured to whether include in detection caching mapping relations mark and the parameter of picture, caching
Mapping relations are used for the mark of recordable picture, parameter and the buffer address corresponding with the mark of picture and parameter, buffer address
Compressed picture under instruction is in compression factor storage position in the server.
First obtains submodule 622, if being configured to cache mark and the parameter not including picture in mapping relations, then root
Mark and parameter according to picture generate the compressed picture under compression factor, and by the buffer address of compressed picture, the mark of picture
Know and reference record is in caching mapping relations.
Second obtains submodule 623, if being configured to cache mapping relations to include mark and the parameter of picture, then postpones
Deposit the mark found out in mapping relations with picture and buffer address corresponding to parameter, obtain in compression factor according to buffer address
Under compressed picture.
Optionally, first obtains submodule 622, including:
Picture obtains submodule 6221, is configured to the mark according to picture and determines the storage address of picture, and obtains figure
Sheet.
Compression factor determines submodule 6222, is configured to determine from predetermined relationship the compression ratio of picture according to parameter
Example, predetermined relationship is the corresponding relation between parameter and compression factor.
Compression submodule 6223, is configured to be compressed picture according to compression factor, obtains compressed picture.
In sum, the image display apparatus that disclosure embodiment provides, sent by user end to server and include visitor
The picture of the parameter of network environment residing for the end of family obtains request, and server is according to the parameter determination of the network environment residing for client
Compression factor, and obtain this picture compressed picture under this compression factor, and be sent to client and show, solve visitor
Family end is in any network environment server and all sends the original image of picture to client, causes at the network residing for client
During the poor quality of environment, the speed of client display picture is very slow or can not show the problem of picture, and server is according to visitor
The parameter of the network environment residing for the end of family, sends the compressed picture corresponding with parameter to client, has reached to be maintained at different net
The fluency of browsing pictures under network ambient conditions, saves the effect of the flow of user.
Additionally, also by when not including storing address and parameter in caching mapping relations, by the compressed picture of generation
Buffer address, the storage address of artwork of picture and reference record are in caching mapping relations, it is to avoid server repeatedly generate with
One artwork, corresponding to the compressed picture of same compression ratio, reduces the workload of server, improves the efficiency that picture obtains.
Refer to Fig. 7, it illustrates the block diagram of the image display apparatus that another embodiment of the disclosure provides.Should
Image display apparatus can pass through software, hardware or both be implemented in combination with become the above-mentioned end that image display method is provided
The all or part of end.This device includes:
Sending module 710, is configured to send picture to server and obtains request, and picture obtains request and includes client institute
The parameter of the network environment at place.
Receiver module 720, is configured to the picture receiving server transmission compressed picture under compression factor, this compression
Ratio is according to this parameter determination.
Display module 730, is display configured to compressed picture.
In sum, the image display apparatus that disclosure embodiment provides, sent by user end to server and include visitor
The picture of the parameter of network environment residing for the end of family obtains request, and server is according to the parameter determination of the network environment residing for client
Compression factor, and obtain this picture compressed picture under this compression factor, and be sent to client and show, solve visitor
Family end is in any network environment server and all sends the original image of picture to client, causes at the network residing for client
During the poor quality of environment, the speed of client display picture is very slow or can not show the problem of picture, and server is according to visitor
The parameter of the network environment residing for the end of family, sends the compressed picture corresponding with parameter to client, has reached to be maintained at different net
The fluency of browsing pictures under network ambient conditions, saves the effect of the flow of user.
The disclosure one exemplary embodiment provides a kind of image display apparatus, it is possible to the picture that realizing the disclosure provides shows
Showing method, this image display apparatus includes: processor, for storing the memorizer of processor executable;
Wherein, processor is configured to:
For storing the memorizer of processor executable;
Wherein, processor is configured to:
Receiving the picture acquisition request that client sends, picture obtains request and includes the ginseng of the network environment residing for client
Number;
According to parameter determination compression factor, and obtain picture compressed picture under compression factor;
Compressed picture is sent to client show.
The disclosure one exemplary embodiment provides a kind of image display apparatus, it is possible to the picture that realizing the disclosure provides shows
Showing method, this image display apparatus includes: processor, for storing the memorizer of processor executable;
Wherein, processor is configured to:
For storing the memorizer of processor executable;
Wherein, processor is configured to:
Sending picture to server and obtain request, picture obtains request and includes the parameter of the network environment residing for client;
The picture that reception server sends compressed picture under compression factor, this compression factor is according to this parameter determination
's;
Display compressed picture.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 is the block diagram according to a kind of device for obtaining display picture shown in another exemplary embodiment.Such as,
Device 800 may be provided in a network equipment.With reference to Fig. 8, device 800 includes processing assembly 802, and it farther includes one
Individual or multiple processors, and by the memory resource representated by memorizer 804, can be by processing holding of assembly 802 for storage
The instruction of row, such as application program.In memorizer 804 storage application program can include one or more each
Module corresponding to one group of instruction.It is configured to perform instruction, to perform above-mentioned image display method additionally, process assembly 802.
Device 800 can also include that a power supply module 806 is configured to perform the power management of device 800, and one has
Line or radio network interface 808 are configured to be connected to device 800 network, and input and output (I/O) interface 810.Dress
Put 800 and can operate based on the operating system being stored in memorizer 804, such as Windows ServerTM, Mac OS XTM,
UnixTM, LinuxTM, FreeBSDTM or similar.
Fig. 9 is the block diagram according to a kind of image display apparatus shown in an exemplary embodiment.Such as, device 900 can
To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, strong
Body equipment, personal digital assistant etc..
With reference to Fig. 9, device 900 can include following one or more assembly: processes assembly 902, memorizer 904, power supply
Assembly 906, multimedia groupware 908, audio-frequency assembly 910, input/output (I/O) interface 912, sensor cluster 914, Yi Jitong
Letter assembly 916.
Process assembly 902 and generally control the integrated operation of device 900, such as with display, call, data communication, phase
The operation that machine operation and record operation are associated.Process assembly 902 and can include that one or more processor 918 performs to refer to
Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 902 can include one or more module, just
Mutual in process between assembly 902 and other assemblies.Such as, process assembly 902 and can include multi-media module, many to facilitate
Media component 908 and process between assembly 902 mutual.
Memorizer 904 is configured to store various types of data to support the operation at device 900.Showing of these data
Example includes any application program for operation on device 900 or the instruction of method, contact data, telephone book data, disappears
Breath, picture, video etc..Memorizer 904 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile
Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash
Device, disk or CD.
The various assemblies that power supply module 906 is device 900 provide electric power.Power supply module 906 can include power management system
System, one or more power supplys, and other generate, manage and distribute, with for device 900, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 908 is included between device 900 and user.Real at some
Executing in example, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can
To be implemented as touch screen, to receive the input signal from user.Touch panel include one or more touch sensor with
Gesture on sensing touch, slip and touch panel.Touch sensor can not only sense touch or the border of sliding action, and
And also detect and touch or persistent period that slide is relevant and pressure.In certain embodiments, multimedia groupware 908 includes
One front-facing camera and/or post-positioned pick-up head.When device 900 is in operator scheme, during such as screening-mode or video mode, front
Put photographic head and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can
To be a fixing optical lens system or there is focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to output and/or input audio signal.Such as, audio-frequency assembly 910 includes a Mike
Wind (MIC), when device 900 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is joined
It is set to receive external audio signal.The audio signal received can be further stored at memorizer 904 or via communication set
Part 916 sends.In certain embodiments, audio-frequency assembly 910 also includes a speaker, is used for exporting audio signal.
I/O interface 912 provides interface for processing between assembly 902 and peripheral interface module, above-mentioned peripheral interface module can
To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock
Set button.
Sensor cluster 914 includes one or more sensor, for providing the state of various aspects to comment for device 900
Estimate.Such as, what sensor cluster 914 can detect device 900 opens/closed mode, the relative localization of assembly, such as assembly
For display and the keypad of device 900, sensor cluster 914 can also detect device 900 or the position of 900 1 assemblies of device
Put change, the presence or absence that user contacts, device 900 orientation or acceleration/deceleration and the temperature of device 900 with device 900
Change.Sensor cluster 914 can include proximity transducer, is configured to when not having any physical contact near detection
The existence of object.Sensor cluster 914 can also include optical sensor, and such as CMOS or ccd image sensor, being used for should in imaging
Use middle use.In certain embodiments, this sensor cluster 914 can also include acceleration transducer, gyro sensor, magnetic
Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to facilitate the communication of wired or wireless mode between device 900 and other equipment.Device
900 can access wireless network based on communication standard, such as Wi-Fi, 2G or 3G, or combinations thereof.An exemplary reality
Executing in example, communications component 916 receives the broadcast singal from external broadcasting management system or the relevant letter of broadcast via broadcast channel
Breath.In one exemplary embodiment, communications component 916 also includes near-field communication (NFC) module, to promote junction service.Example
As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing above-mentioned image display method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided
As included the memorizer 904 of instruction, above-mentioned instruction can have been performed above-mentioned picture display side by the processor 918 of device 900
Method.Such as, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
It should be understood that above-described embodiment provide image display apparatus perform image display method time, only more than
The division stating each functional module is illustrated, and in actual application, can distribute above-mentioned functions by difference as desired
Functional module complete, the internal structure of equipment will be divided into different functional modules, with complete described above all or
Person's partial function.It addition, the image display apparatus that above-described embodiment provides belongs to same design with image display method embodiment,
It implements process and refers to embodiment of the method, repeats no more here.
Above-mentioned disclosure embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware
Completing, it is also possible to instruct relevant hardware by program and complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only the preferred embodiment of the disclosure, not in order to limit the disclosure, all spirit in the disclosure and
Within principle, any modification, equivalent substitution and improvement etc. made, within should be included in the protection domain of the disclosure.
Claims (12)
1. an image display method, it is characterised in that be applied in server, described method includes:
Receiving the picture acquisition request that client sends, described picture obtains request and includes the network environment residing for described client
Parameter;
According to described parameter determination compression factor, and obtain picture compressed picture under described compression factor;
Described compressed picture is sent to described client show.
Method the most according to claim 1, it is characterised in that described picture obtains request and also includes the mark of described picture
Know.
Method the most according to claim 2, it is characterised in that described according to described parameter determination compression factor, and obtain
Picture compressed picture under described compression factor, including:
Whether detection caching mapping relations include that the mark of described picture and described parameter, described caching mapping relations are used for remembering
The record mark of picture, parameter and the buffer address corresponding with the mark of described picture and described parameter, described buffer address is used for
The instruction compressed picture under described compression factor storage position in described server;
If described caching mapping relations do not include the mark of described picture and described parameter, then according to the mark of described picture and
Described parameter generates compressed picture under described compression factor, and by the buffer address of described compressed picture, described picture
Mark and described reference record are in described caching mapping relations;
If described caching mapping relations include the mark of described picture and described parameter, then look into from described caching mapping relations
Find out the mark with described picture and buffer address corresponding to described parameter, according to the acquisition of described buffer address at described compression ratio
Compressed picture under example.
Method the most according to claim 3, it is characterised in that the described mark according to described picture and described parameter generate
Compressed picture under described compression factor, including:
Mark according to described picture determines the storage address of described picture, and obtains described picture;
From predetermined relationship, determine that according to described parameter the compression factor of described picture, described predetermined relationship are described parameter and institute
State the corresponding relation between compression factor;
According to described compression factor, described picture is compressed, obtains described compressed picture.
5. an image display method, it is characterised in that be applied in client, described method includes:
Sending picture to server and obtain request, described picture obtains request and includes the ginseng of the network environment residing for described client
Number;
Receiving the picture compressed picture under compression factor that described server sends, described compression factor is according to described parameter
Determine;
Show described compressed picture.
6. an image display apparatus, it is characterised in that be applied in server, described device includes:
Receiver module, is configured to receive the picture acquisition request that client sends, and described picture obtains request and includes described visitor
The parameter of the network environment residing for the end of family;
Acquisition module, is configured to according to described parameter determination compression factor, and obtains picture pressure under described compression factor
Contract drawing sheet;
Sending module, is configured to that described compressed picture is sent to described client and shows.
Device the most according to claim 6, it is characterised in that described picture obtains request and also includes the mark of described picture
Know.
Device the most according to claim 7, it is characterised in that described acquisition module, including:
Detection sub-module, is configured in detection caching mapping relations whether include the mark of described picture and described parameter, institute
State caching mapping relations mark, parameter and the caching corresponding with the mark of described picture and described parameter for recordable picture
Address, described buffer address is for indicating the storage position in described server of the compressed picture under described compression factor;
First obtains submodule, if being configured to not include the mark of described picture and described ginseng in described caching mapping relations
Number, then mark and described parameter according to described picture generate the compressed picture under described compression factor, and by described compression
The buffer address of picture, the mark of described picture and described reference record are in described caching mapping relations;
Second obtains submodule, if being configured to described caching mapping relations to include the mark of described picture and described parameter,
From described caching mapping relations, then find out the mark with described picture and buffer address corresponding to described parameter, according to described
Buffer address obtains the compressed picture under described compression factor.
Device the most according to claim 8, it is characterised in that described first obtains submodule, including:
Picture obtains submodule, is configured to the mark according to described picture and determines the storage address of described picture, and obtains institute
State picture;
Compression factor determines submodule, is configured to determine from predetermined relationship the compression ratio of described picture according to described parameter
Example, described predetermined relationship is the corresponding relation between described parameter and described compression factor;
Compression submodule, is configured to be compressed described picture according to described compression factor, obtains described compressed picture.
10. an image display apparatus, it is characterised in that be applied in client, described device includes:
Sending module, is configured to send picture to server and obtains request, and described picture obtains request and includes described client
The parameter of residing network environment;
Receiver module, is configured to the picture receiving the transmission of described server compressed picture under compression factor, described compression
Ratio is according to described parameter determination;
Display module, is display configured to described compressed picture.
11. 1 kinds of image display apparatus, it is characterised in that described device includes:
Processor;
For storing the memorizer of described processor executable;
Wherein, described processor is configured to:
Receiving the picture acquisition request that client sends, described picture obtains request and includes the network environment residing for described client
Parameter;
According to described parameter determination compression factor, and obtain picture compressed picture under described compression factor;
Described compressed picture is sent to described client show.
12. 1 kinds of image display apparatus, it is characterised in that described device includes:
Processor;
For storing the memorizer of described processor executable;
Wherein, described processor is configured to:
Sending picture to server and obtain request, described picture obtains request and includes the ginseng of the network environment residing for described client
Number;
Receiving the picture compressed picture under compression factor that described server sends, described compression factor is according to described parameter
Determine;
Show described compressed picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610483673.6A CN106156285A (en) | 2016-06-27 | 2016-06-27 | Image display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610483673.6A CN106156285A (en) | 2016-06-27 | 2016-06-27 | Image display method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106156285A true CN106156285A (en) | 2016-11-23 |
Family
ID=57350068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610483673.6A Pending CN106156285A (en) | 2016-06-27 | 2016-06-27 | Image display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106156285A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106874485A (en) * | 2017-02-20 | 2017-06-20 | 郑州云海信息技术有限公司 | The method and picture that a kind of picture is presented are presented device |
CN108347451A (en) * | 2017-01-23 | 2018-07-31 | 北京京东尚科信息技术有限公司 | Picture processing system, method and apparatus |
CN109510816A (en) * | 2018-10-23 | 2019-03-22 | 武汉极意网络科技有限公司 | Service request validation verification method, client and server |
CN110297811A (en) * | 2019-06-28 | 2019-10-01 | 联想(北京)有限公司 | Data processing method and device, computer system and computer readable storage medium storing program for executing |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040047423A1 (en) * | 2002-07-02 | 2004-03-11 | Conexant Systems, Inc. | Hypothetical reference decoder with low start-up delays for compressed image and video |
CN102905045A (en) * | 2012-10-26 | 2013-01-30 | 北京奇虎科技有限公司 | Method and server for providing picture data to computing terminal |
CN102946419A (en) * | 2012-10-26 | 2013-02-27 | 北京奇虎科技有限公司 | Picture server and picture data providing method |
CN105354505A (en) * | 2015-09-28 | 2016-02-24 | 武汉钢铁(集团)公司 | Image adaption method and electronic device |
-
2016
- 2016-06-27 CN CN201610483673.6A patent/CN106156285A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040047423A1 (en) * | 2002-07-02 | 2004-03-11 | Conexant Systems, Inc. | Hypothetical reference decoder with low start-up delays for compressed image and video |
CN102905045A (en) * | 2012-10-26 | 2013-01-30 | 北京奇虎科技有限公司 | Method and server for providing picture data to computing terminal |
CN102946419A (en) * | 2012-10-26 | 2013-02-27 | 北京奇虎科技有限公司 | Picture server and picture data providing method |
CN105354505A (en) * | 2015-09-28 | 2016-02-24 | 武汉钢铁(集团)公司 | Image adaption method and electronic device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108347451A (en) * | 2017-01-23 | 2018-07-31 | 北京京东尚科信息技术有限公司 | Picture processing system, method and apparatus |
CN108347451B (en) * | 2017-01-23 | 2021-09-03 | 北京京东尚科信息技术有限公司 | Picture processing system, method and device |
CN106874485A (en) * | 2017-02-20 | 2017-06-20 | 郑州云海信息技术有限公司 | The method and picture that a kind of picture is presented are presented device |
CN109510816A (en) * | 2018-10-23 | 2019-03-22 | 武汉极意网络科技有限公司 | Service request validation verification method, client and server |
CN109510816B (en) * | 2018-10-23 | 2021-05-14 | 武汉极意网络科技有限公司 | Service request validity verification method, client and server |
CN110297811A (en) * | 2019-06-28 | 2019-10-01 | 联想(北京)有限公司 | Data processing method and device, computer system and computer readable storage medium storing program for executing |
CN110297811B (en) * | 2019-06-28 | 2022-04-19 | 联想(北京)有限公司 | Data processing method and device, computer system and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108021305B (en) | Application association starting method and device and mobile terminal | |
CN104038536B (en) | Plug-in unit communication means and device | |
CN106095999A (en) | Obtain the method and device of content of pages | |
CN106528617B (en) | A kind of method and device that Web page picture is shown | |
CN104853325A (en) | Method and device for sending cloud business card | |
CN108803963A (en) | A kind of screenshotss method and mobile terminal | |
CN106331761A (en) | Live broadcast list display method and apparatuses | |
CN105491048A (en) | Account management method and apparatus | |
CN105100355A (en) | Method and device for identifying calling user | |
CN105208176B (en) | Contact person record processing method and processing device | |
CN106156285A (en) | Image display method and device | |
CN108320263A (en) | A kind of method, device and mobile terminal of image procossing | |
CN106060257A (en) | Method and device for viewing relevant information of contact | |
CN107948093A (en) | Adjust the method and device that network speed is applied in terminal device | |
CN105578401A (en) | Locating information collection method, locating information collection device and mobile terminal | |
CN104539812A (en) | Recommendation information acquisition method, terminal and server | |
CN105808667A (en) | Image acquisition method, apparatus and system | |
CN104158854B (en) | Resource share method and device | |
CN110020145A (en) | A kind of information recommendation method and device | |
WO2019120190A1 (en) | Dialing method and mobile terminal | |
CN104883385B (en) | Rich media file transmission method and device | |
CN104935613A (en) | Scene synchronization method, terminal, server and system | |
CN104168356B (en) | The method of process communications identification and device | |
CN108984143A (en) | A kind of display control method and terminal device | |
CN104683496A (en) | Address filtering method and device |
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 |
Application publication date: 20161123 |
|
RJ01 | Rejection of invention patent application after publication |