CN108156248A - A kind of method and device that adaptation image is obtained based on client - Google Patents

A kind of method and device that adaptation image is obtained based on client Download PDF

Info

Publication number
CN108156248A
CN108156248A CN201711473192.8A CN201711473192A CN108156248A CN 108156248 A CN108156248 A CN 108156248A CN 201711473192 A CN201711473192 A CN 201711473192A CN 108156248 A CN108156248 A CN 108156248A
Authority
CN
China
Prior art keywords
information
image data
image
data information
client
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
CN201711473192.8A
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.)
Guiyang Longmaster Information and Technology Co ltd
Original Assignee
Guiyang Longmaster Information and Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guiyang Longmaster Information and Technology Co ltd filed Critical Guiyang Longmaster Information and Technology Co ltd
Priority to CN201711473192.8A priority Critical patent/CN108156248A/en
Publication of CN108156248A publication Critical patent/CN108156248A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data

Abstract

The invention belongs to technical field of image processing, and in particular to a kind of method and device that adaptation image is obtained based on client.This method includes the following steps:Receive the solicited message that client is sent;According to the image information of the request, the first image data information corresponding with the image information of the request is obtained;According to the screen resolution information of the client, the screen size information of client and the first image data information, the corresponding scalability information of described first image data information is calculated;Processing zooms in and out first image data information according to the scalability information and the first image data information, obtains the second image data information.This method can be used for zooming in and out image processing in server end.This method can waste, while can also shorten the request duration for obtaining image to avoid there is image data in the relatively low equipment of resolution ratio.

Description

A kind of method and device that adaptation image is obtained based on client
Technical field
The invention belongs to technical field of image processing, and in particular to it is a kind of based on client obtain adaptation image method and Device.
Background technology
Since in the related system of current internet hospital, the most auxiliary examination data of patient is picture money Material (such as:Checklist, X-ray, CT images etc.).In the mode for obtaining image in current user end to server, substantially all It is the image data that direct notice server needs obtain, then server carries out the return of corresponding data.
In general, requirement to image resolution ratio is different in the different equipment of resolution ratio, the equipment requirement of high resolution compared with Height, and requirement of the low equipment of resolution ratio to image resolution ratio be not high.When directly the higher image of resolution ratio is directly transmitted During in the relatively low equipment of resolution ratio, it can cause the presence of image data waste in the relatively low equipment of resolution ratio, together When can also occupy more request durations.In addition, when network state is poor, if client obtains in the same way Picture, then the time that may result in acquisition image data is longer, even leads to the connection duration of client and server Overtime and End-Customer end does not get the situation of correct images data.
Invention content
In order to solve the above technical problem, the present invention provides a kind of methods and dress that adaptation image is obtained based on client It puts, can be used for zooming in and out image processing in server end.This method can be to avoid in the relatively low equipment of resolution ratio There is a situation where image data waste, while can also shorten the request duration for obtaining image.
The present invention provides following technical solution:
On the one hand, a kind of method that adaptation image is obtained based on client is provided in the embodiment of the present invention, applied to service Device end, includes the following steps:
The solicited message that client is sent is received, the solicited message includes the screen of the image information of request, the client The screen size information of curtain resolution information and the client;
According to the image information of the request, the first image data information corresponding with the image information of the request is obtained, Each pixel of size information of the described first image data information including the first image, the resolution ratio of the first image and the first image Gray value;
According to the screen resolution information of the client, the screen size information of client and the first picture number it is believed that Breath, is calculated the corresponding scalability information of described first image data information;
Processing is zoomed in and out to first image data information according to the scalability information and the first image data information, is obtained The second image data information is obtained, second image data information includes the resolution of the size information, the second image of the second image The gray value of rate and each pixel of the second image.
On the other hand, a kind of device that adaptation image is obtained based on client in the embodiment of the present invention is also provided, is applied to Server end, including:
Receiving module, for receive client transmission solicited message, the solicited message include request image information, The screen resolution information of the client and the screen size information of the client;
First acquisition module for the image information according to the request, obtains corresponding with the image information of the request First image data information, described first image data information include size information, the resolution ratio of the first image of the first image With the gray value of each pixel of the first image;
Computing module, for screen resolution information, the screen size information of client and according to the client The corresponding scalability information of described first image data information is calculated in one image data information;
First Zoom module, for according to the scalability information and the first image data information to first picture number it is believed that Breath zooms in and out processing, obtains the second image data information, and the size that second image data information includes the second image is believed The gray value of each pixel of breath, the resolution ratio of the second image and the second image.
The embodiment of the present invention based on client obtain adaptation image method, can be used for server end to image into The processing of row scaling.It specifically, can be in the client-based screen resolution information of server end and screen ruler by this method Very little information scales the image of client request acquisition, and then can be to avoid there are images in the relatively low equipment of resolution ratio The situation of data waste, while can also shorten the request duration for obtaining image.
Description of the drawings
It, below will be to the present invention or the prior art in order to illustrate more clearly of the present invention or technical solution of the prior art Attached drawing is briefly described needed in description, it should be apparent that, the accompanying drawings in the following description is only the present invention's Some embodiments, for those of ordinary skill in the art, without having to pay creative labor, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is the flow chart of the method that adaptation image is obtained based on client in one embodiment of the present invention.
Fig. 2 is the part of another preferred embodiment based on the method shown in FIG. 1 that adaptation image is obtained based on client Flow chart.
Fig. 3 is the flow chart of the method that adaptation image is obtained based on client in another preferred embodiment of the present invention.
Fig. 4 is the structure chart of the device that adaptation image is obtained based on client in one embodiment of the present invention.
Fig. 5 is the structure chart of the device that adaptation image is obtained based on client in another preferred embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the present invention, technical scheme of the present invention is clearly and completely described, it is clear that Described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, originally Field those of ordinary skill all other embodiments obtained without making creative work, belong to the present invention The range of protection.
" first ", " second " in the embodiment of the present invention, only discriminatively call certain features, this be in order to Facilitate and understand what is set, have no otherwise restriction.
The method that adaptation image is obtained based on client as shown in Figure 1, applied to server end, including following step Suddenly:
S101:The solicited message that client is sent is received, the solicited message includes the image information of request, the client Screen resolution information and the client screen size information.
When client needs to obtain image, the screen resolution information of the client and the screen of the client can be first obtained Curtain dimension information;Then the screen resolution information of the image information and client obtained, the screen of the client will be needed Dimension information is sent to server end.
The image information of the request generally includes the identification information of the image or URL (Uniform Resource Locator, uniform resource locator) etc..In order to which server end is according to the image information acquisition of the request to corresponding figure As data information.
S102:According to the image information of the request, the first image data corresponding with the image information of the request is obtained Information, the size information of described first image data information including the first image, the resolution ratio of the first image and the first image The gray value of each pixel.
Described first image is typically some the relevant numbers of " original " image for not being scaled or handling in server end It is believed that breath.The second image subsequently mentioned, typically by zooming in and out what processing obtained to the first image;Third image, can With to the first image or the second image zoom in and out processing after obtain.
The size information of described first image refers to the size of the first image committed memory.
S103:According to the screen resolution information of the client, the screen size information of client and the first picture number It is believed that breath, is calculated the corresponding scalability information of described first image data information.
The scalability information generally includes the information being changed to the size of the first image and the resolution to the first image The information that rate is changed.The information that the size to the first image is changed can be specifically to the big of the first image The diminution ratio or exaggerated scale of small progress;The information that the resolution ratio to the first image is changed can be specifically The diminution ratio or exaggerated scale carried out to the resolution ratio of the first image.
Usually, the diminution ratio or exaggerated scale carried out to the size of the first image, is the screen according to client What the size information of dimension information and the first image carried out.Such as:The width of the screen size information of client including screen is 16cm, height are 10cm, and it is 20cm that the width that the size information of the first image includes image, which is 32cm, height, then be calculated to this It is (20-10)/10=0.5 that the diminution ratio that the size of one image carries out, which for width is (32-16)/32=0.5, height,;Client Screen resolution information is 1440*900, and the resolution ratio of the first image that the first image data information includes is 300 (per inch Number of pixels), 16cm=6.3 inches of the screen width (1 inch=2.54cm) of client is calculated, the screen of per inch length is wide The pixel number of degree is approximately equal to 229 (number of pixels of per inch) for 1440/6.3, the diminution carried out to the resolution ratio of the first image Ratio is (300-229)/300, and result of calculation is approximately equal to 0.237.
S104:Place is zoomed in and out to first image data information according to the scalability information and the first image data information Reason, obtains the second image data information, the size information of second image data information including the second image, the second image The gray value of resolution ratio and each pixel of the second image.
After processing being zoomed in and out according to the scalability information and the first image data information to first image data information, It can be obtained by the second image data information being adapted with the screen size of the screen resolution of client and the client.
The embodiment of the present invention based on client obtain adaptation image method, can be used for server end to image into The processing of row scaling.
Specifically, can be believed by this method in the client-based screen resolution information of server end and screen size Breath scales the image of client request acquisition, and then can be to avoid there are image datas in the relatively low equipment of resolution ratio The situation of waste, while can also shorten the request duration for obtaining image.
Based on the method shown in FIG. 1 that adaptation image is obtained based on client, as shown in Fig. 2, in the solicited message also Network connection state information including the current client with the server end, the network connection state information include currently should Network speed between client and the server;And the method further includes:
S105:According to the network connection state information, transmit corresponding with the network connection state information is obtained The magnitude range of file.
In general, according to the network connection state information, pass corresponding with the network connection state information is obtained Before the magnitude range of defeated file, it can also include:
S1051:Collect and counting user to obtain different size file reasonable waiting time.Reasonable waiting time, it is According to multiple users to acceptable time span in file or picture downloading process, more than the duration, most users It is not intended to wait for again.Therefore, which can be by reasonably counting to obtain.Such as:For the file in the range of 0-10M or The reasonable waiting time of picture can be 0-3min, for the reasonable waiting time of the file in the range of 10-100M or picture It can be 0-6min, can be 0-12min etc. for the reasonable waiting time of the file in the range of 100-1000M or picture Deng.Certainly, for different geographical, different crowd, different demands, these numbers can also change, specifically can be as needed It is for statistical analysis.
S1052:According to the reasonable waiting time of described pair of acquisition different size file, calculate to obtaining different size text The reasonable network speed of part.In size divided by corresponding range that specifically can be by calculating the maximum file in a certain range most Big reasonable waiting time, you can obtain minimum reasonable network speed.
Such as:Can be 0-3min for the reasonable waiting time of the file in the range of 0-10M or picture, then it is corresponding Reasonable network speed cannot be below 56.89k/s (10M/3min=10240k/180s=56.89k/s);For 10-100M ranges Interior file or the reasonable waiting time of picture can be 0-6min, then corresponding reasonable network speed cannot be below (284.44k/s 100M/6min=102400k/360s=284.44k/s);For the file or figure in the range of 100-1000M The reasonable waiting time of piece can be 0-12min, then corresponding reasonable network speed cannot be below 1422.22k/s (1000M/ 12min=1024000k/720s=1422.22k/s)
S1053:The reasonable network speed of different size file and the file maps mutually of corresponding size will be obtained, and be stored in In server.
It, can be according to pre-stored acquisition after server receives the network connection state information of client transmission Reasonable network speed and the file of corresponding size of different size file, acquisition is corresponding with the network connection state information can Transmit the magnitude range of file.Such as:If currently the network speed between the client and the server is 200k/s, due to It is more than 56.89k/s and less than 284.44k/s, and therefore, the corresponding magnitude range for transmitting file is 0-10M;If work as Network speed between the preceding client and the server is 500/s, since it is more than 56.89k/s and 284.44k/s and is less than 1422.22k/s, therefore, the corresponding magnitude range for transmitting file (can transmit the big of file for 0-10M and 10-100M Small range is 0-100M).
S106:Judge second image data information whether within the magnitude range for transmitting file.
Judge that second image data information whether within the magnitude range for transmitting file, specifically judges Whether the size of the second image in the second image data information is within the magnitude range for transmitting file.
S107:If second image data information is within the magnitude range for transmitting file, by described in Second image data information is sent to the client.
If second image data information within the magnitude range for transmitting file, illustrates according to current Second image data information can be sent to the client by the network speed between the client and the server, And it is in the range of reasonable waiting time that client, which has received time of second image data information,.Such as:It is if current Network speed between the client and the server is 200k/s and the size information of second image is 8M, then first leads to Network speed is crossed as 200k/s, finds the corresponding magnitude range for transmitting file as 0-10M, therefore second image data Information is within the magnitude range for transmitting file.Therefore, the embodiment of the present invention can be according to the current client with being somebody's turn to do Network speed between server, reasonable arrangement are sent to the file of client.
Further, the method that adaptation image is obtained based on client as shown in Figure 2, is further included:
S108:If second image data information is more than the magnitude range that can transmit file, according to The magnitude range and the first image data information of file can be transmitted, inquiry whether there is and the magnitude range for transmitting file Third image data information corresponding with the first image data information, the third image data information include the big of third image The gray value of each pixel of small information, the resolution ratio of third image and third image.
The step is that inquiry whether there is the third image data information formed by the compression of the first image data information, should The size of third image is within the magnitude range for transmitting file.If it does, it is usually directly by the third image Data information is sent to client.
S109:If there is no the third image data information, then the magnitude range that file can be transmitted according to will Second image data information zooms in and out processing, obtains third image data information.
Second image data information is zoomed in and out processing according to the magnitude range for transmitting file to wrap It includes:
S1091:Determine the numerical value that can be transmitted in the magnitude range of file;It usually can be maximum value;
S1092:The size information of the second image in second image data information and the numerical value having had determined that, Calculate the diminution ratio for needing to reduce;
S1093:According to the diminution ratio, second image data information is compressed, obtains third image data information.
Such as:If currently the network speed between the client and the server is 200k/s and second image Size information for 20M, then first pass through network speed as 200k/s, find the corresponding magnitude range for transmitting file as 0- 10M, it can be seen that at this point, second image data information is more than the magnitude range that can transmit file.If there is no correspondence Third image data, then can be with:It is 10M to determine the numerical value that can be transmitted in the magnitude range of file;According to the second figure As the 20M in data information and the numerical value 10M having had determined that, the diminution ratio that calculating needs to reduce is (20-10)/20= 0.5;According to the diminution ratio 0.5, the second image data information is compressed, obtains third image data information.
S110:The third image data information is sent to the client.
Therefore, the embodiment of the present invention not only can be in the client-based screen resolution information of server end and screen ruler Very little information scales the image of client request acquisition, can also be further according to current between the client and the server Network speed, processing obtain more suitably image data.And then it can scheme to avoid existing in the relatively low equipment of resolution ratio As the situation that data waste, while it can also shorten the request duration for obtaining image.
Based on it is shown in FIG. 1 based on client obtain adaptation image method, wherein, it is described acquisition the second picture number it is believed that It is further included after breath:Store second image data information, and by second image data information and described first image The screen size information maps mutually of data information, the screen resolution information of the client and the client.
The embodiment of the present invention can be subsequently encountered and the screen resolution information of the client and screen size information phase With other client requests identical image when, directly will be processed good without carrying out compression processing to the image again Second image data information is sent to other clients, therefore, can save the time, improves efficiency.
Specific steps can include:
The solicited message of other clients transmission is received, the solicited message includes the image information of request, other visitors The screen resolution information at family end and the screen size information of other clients;
According to the screen of the image information of the request, the screen resolution information of other clients and other clients Curtain dimension information, inquiry whether there is and the image information of the request, the screen resolution information of other clients and this its The corresponding image data information of screen size information of his client;
If it is present directly acquiring corresponding image data information, and send it to other clients.
Client-based dynamic image adaptation method as described above, wherein, the acquisition third image data information It further includes later:Store the third image data information, and by the third image data information and described first image number It is believed that the screen resolution information of breath, the current network speed between the client and the server, the client and should The screen size information maps mutually of client.
The embodiment of the present invention, can in the request image data identical with this request for being subsequently encountered other clients, And network speed, screen resolution, screen size it is all identical when, without carrying out compression processing to image again, will directly locate The third image data information managed is sent to other clients, therefore, can save the time, improves efficiency.
The method that adaptation image is obtained based on client as shown in Figure 3, including:
S301:Client acquires the screen resolution information and screen size information and the client and server of itself The network connection state information at end and the image information of request, and solicited message is generated, it is sent to the server end;
S302:Server receives the solicited message that client is sent;
S303:According to the image information of the request, the first image data corresponding with the image information of the request is obtained Information, the size information of described first image data information including the first image, the resolution ratio of the first image and the first image The gray value of each pixel;
S304:According to the screen resolution information of the client, the screen size information of client and the first picture number It is believed that breath, is calculated the information being changed including the size to the first image and the resolution ratio of the first image is changed Information scalability information;
S305:Place is zoomed in and out to first image data information according to the scalability information and the first image data information Reason, obtains the second image data information, the size information of second image data information including the second image, the second image The gray value of resolution ratio and each pixel of the second image;
S306:According to the network connection state information, transmit corresponding with the network connection state information is obtained The magnitude range of file;
S307:Judge second image data information whether within the magnitude range for transmitting file;
S308:If second image data information is within the magnitude range for transmitting file, by described in Second image data information is sent to the client;
S309:If second image data information is more than the magnitude range that can transmit file, according to The magnitude range and the first image data information of file can be transmitted, inquiry whether there is and the magnitude range for transmitting file Third image data information corresponding with the first image data information, the third image data information include the big of third image The gray value of each pixel of small information, the resolution ratio of third image and third image;
S310:If there is no the third image data information, then the magnitude range that file can be transmitted according to will Second image data information zooms in and out processing, obtains third image data information;
S311:The third image data information is sent to the client.
S312:Store the third image data information, and by the third image data information and described first image Data information, the current network speed between the client and the server, the client screen resolution information and The screen size information maps mutually of the client.
The device that adaptation image is obtained based on client as shown in Figure 4, applied to server end, including:
Receiving module, for receive client transmission solicited message, the solicited message include request image information, The screen resolution information of the client and the screen size information of the client;
First acquisition module for the image information according to the request, obtains corresponding with the image information of the request First image data information, described first image data information include size information, the resolution ratio of the first image of the first image With the gray value of each pixel of the first image;
Computing module, for screen resolution information, the screen size information of client and according to the client The corresponding scalability information of described first image data information is calculated in one image data information;
First Zoom module, for according to the scalability information and the first image data information to first picture number it is believed that Breath zooms in and out processing, obtains the second image data information, and the size that second image data information includes the second image is believed The gray value of each pixel of breath, the resolution ratio of the second image and the second image.
The device that adaptation image is obtained based on client of the embodiment of the present invention.Available for realizing method shown in FIG. 1, Available for zooming in and out processing to image in server end.Specifically, client can be based in server end by this method Screen resolution information and screen size information, scale the image of client request acquisition, and then can be to avoid differentiating There is a situation where image data waste in the relatively low equipment of rate, while can also shorten the request duration for obtaining image.
The device that adaptation image is obtained based on client based on shown in Fig. 4, as shown in figure 5, wherein, the solicited message In further include the current client and the network connection state information of the server end, the network connection state information includes working as Network speed between the preceding client and the server;And described device further includes:
Second acquisition module, for according to the network connection state information, obtaining and the network connection state information The corresponding magnitude range for transmitting file;
Judgment module, for judge second image data information whether the magnitude range for transmitting file it It is interior;
Sending module, if for second image data information within the magnitude range for transmitting file, Second image data information is then sent to the client.
Second acquisition module includes:
Acquiring unit, for collect and counting user to obtain different size file reasonable waiting time;
First computing unit for the reasonable waiting time according to described pair of acquisition different size file, is calculated to obtaining Take the reasonable network speed of different size file;
Storage unit, for the reasonable network speed of different size file and the file maps mutually of corresponding size will to be obtained, And it preserves in the server.
The device that adaptation image is obtained based on client based on shown in Fig. 4, as shown in figure 5, it is further included:
Enquiry module, if being more than the magnitude range that can transmit file for second image data information, According to the magnitude range for transmitting file and the first image data information, inquiry whether there is and the file that transmits Magnitude range and the corresponding third image data information of the first image data information, the third image data information include third The gray value of each pixel of the size information of image, the resolution ratio of third image and third image;
Second Zoom module, for if there is no the third image data information, then file can be transmitted according to Magnitude range second image data information is zoomed in and out into processing, obtain third image data information;
Sending module is additionally operable to the third image data information being sent to the client.
Second Zoom module can include:
Determination unit, for determining the numerical value that can be transmitted in the magnitude range of file;
Second computing unit, for the size information and really of the second image in second image data information The numerical value set calculates the diminution ratio for needing to reduce;
Compression unit, for according to the diminution ratio, compressing second image data information, obtaining third image data Information.
The device based on client acquisition adaptation image based on shown in Fig. 4, as shown in figure 5, further including memory module, is used After the second image data information of the acquisition, second image data information is stored, and by second image data Information and the screen size of described first image data information, the screen resolution information of the client and the client are believed Manner of breathing maps.
The memory module is additionally operable to after obtaining third image data information, stores the third image data information, And by the third image data information and described first image data information, described current between the client and the server Network speed, the screen resolution information of the client and the screen size information maps mutually of the client.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme of the present invention substantially in other words contributed to the prior art Part can be embodied in the form of software product, which is stored in a storage medium, if including Dry instruction is used so that terminal device (can be mobile phone, personal computer, server or the network equipment etc.) perform the present invention Method described in each embodiment.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment It is distributed in the device of embodiment, respective change can also be carried out and be located in one or more devices different from the present embodiment.On Stating the module of embodiment can be integrated in one, and can also be deployed separately;A module is can be merged into, can also further be torn open It is divided into multiple submodule.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should Depending on protection scope of the present invention.

Claims (10)

1. a kind of method that adaptation image is obtained based on client, applied to server end, which is characterized in that including following step Suddenly:
The solicited message that client is sent is received, the solicited message includes the screen point of the image information of request, the client The screen size information of resolution information and the client;
According to the image information of the request, the first image data information corresponding with the image information of the request is obtained, it is described The ash of each pixel of size information of first image data information including the first image, the resolution ratio of the first image and the first image Angle value;
According to the screen resolution information of the client, the screen size information of client and the first image data information, meter Calculation obtains the corresponding scalability information of described first image data information;
Processing zooms in and out first image data information according to the scalability information and the first image data information, obtains the Two image data informations, the size information of second image data information including the second image, the resolution ratio of the second image and The gray value of each pixel of second image.
2. the method according to claim 1 that adaptation image is obtained based on client, which is characterized in that the solicited message In further include the current client and the network connection state information of the server end, the network connection state information includes working as Network speed between the preceding client and the server;And the method further includes:
According to the network connection state information, the size for transmitting file corresponding with the network connection state information is obtained Range;
Judge second image data information whether within the magnitude range for transmitting file;
If second image data information is within the magnitude range for transmitting file, by second picture number It is believed that breath is sent to the client.
3. the method according to claim 2 that adaptation image is obtained based on client, which is characterized in that further include:
If second image data information is more than the magnitude range that can transmit file, file can be transmitted according to Magnitude range and the first image data information, inquiry whether there is and the magnitude range for transmitting file and the first image The corresponding third image data information of data information, the size information of the third image data information including third image, the The gray value of the resolution ratio of three images and each pixel of third image;
If there is no the third image data information, then the magnitude range of file can be transmitted according to by second figure As data information zooms in and out processing, acquisition third image data information;
The third image data information is sent to the client.
4. the method according to claim 1 that adaptation image is obtained based on client, which is characterized in that described to obtain second It is further included after image data information:Store second image data information, and by second image data information and institute The screen size information for stating the first image data information, the screen resolution information of the client and the client sets each other off It penetrates.
5. client-based dynamic image adaptation method according to claim 3, which is characterized in that the acquisition third It is further included after image data information:Store the third image data information, and by the third image data information and institute State the screen point of the first image data information, the currently network speed between the client and the server, the client The screen size information maps mutually of resolution information and the client.
6. a kind of device that adaptation image is obtained based on client, applied to server end, which is characterized in that including:
Receiving module, for receiving the solicited message of client transmission, the solicited message includes the image information of request, the visitor The screen resolution information at family end and the screen size information of the client;
First acquisition module for the image information according to the request, obtains corresponding with the image information of the request first Image data information, the size information of described first image data information including the first image, the resolution ratio of the first image and the The gray value of each pixel of one image;
Computing module, for screen resolution information, the screen size information of client and the first figure according to the client As data information, the corresponding scalability information of described first image data information is calculated;
First Zoom module, for according to the scalability information and the first image data information to first image data information into The processing of row scaling, obtains the second image data information, the size information of second image data information including the second image, the The gray value of the resolution ratio of two images and each pixel of the second image.
7. the device according to claim 6 that adaptation image is obtained based on client, which is characterized in that the solicited message In further include the current client and the network connection state information of the server end, the network connection state information includes working as Network speed between the preceding client and the server;And described device further includes:
Second acquisition module, for according to the network connection state information, obtaining corresponding with the network connection state information The magnitude range for transmitting file;
Judgment module, for judging second image data information whether within the magnitude range for transmitting file;
Sending module, if for second image data information within the magnitude range for transmitting file, it will Second image data information is sent to the client.
8. the device according to claim 7 that adaptation image is obtained based on client, which is characterized in that further include:
Enquiry module, if being more than the magnitude range that can transmit file, basis for second image data information The magnitude range for transmitting file and the first image data information, inquiry whether there is and the size for transmitting file Range and the corresponding third image data information of the first image data information, the third image data information include third image Size information, each pixel of the resolution ratio of third image and third image gray value;
Second Zoom module, for if there is no the third image data information, then the big of file can be transmitted according to Second image data information is zoomed in and out processing by small range, obtains third image data information;
Sending module is additionally operable to the third image data information being sent to the client.
9. the device according to claim 6 that adaptation image is obtained based on client, which is characterized in that further include storage mould Block after the second image data information of the acquisition, stores second image data information, and by second image The screen ruler of data information and described first image data information, the screen resolution information of the client and the client Very little information maps mutually.
10. the device according to claim 8 that adaptation image is obtained based on client, which is characterized in that memory module, also After obtaining third image data information, store the third image data information, and by the third picture number it is believed that Breath and described first image data information, the current network speed between the client and the server, the client The screen size information maps mutually of screen resolution information and the client.
CN201711473192.8A 2017-12-29 2017-12-29 A kind of method and device that adaptation image is obtained based on client Pending CN108156248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711473192.8A CN108156248A (en) 2017-12-29 2017-12-29 A kind of method and device that adaptation image is obtained based on client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711473192.8A CN108156248A (en) 2017-12-29 2017-12-29 A kind of method and device that adaptation image is obtained based on client

Publications (1)

Publication Number Publication Date
CN108156248A true CN108156248A (en) 2018-06-12

Family

ID=62463671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711473192.8A Pending CN108156248A (en) 2017-12-29 2017-12-29 A kind of method and device that adaptation image is obtained based on client

Country Status (1)

Country Link
CN (1) CN108156248A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965897A (en) * 2021-10-22 2022-01-21 成都天翼空间科技有限公司 Strategy method for terminal self-adaptive display based on 5G message

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986696A (en) * 2014-04-24 2014-08-13 华为技术有限公司 Multimedia file transmission device and method
CN104572690A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 Webpage data acquisition method, webpage data acquisition device and webpage data acquisition system
CN105354505A (en) * 2015-09-28 2016-02-24 武汉钢铁(集团)公司 Image adaption method and electronic device
US20170085932A1 (en) * 2015-09-23 2017-03-23 Facebook, Inc. Systems and methods for adjusting image transmission based on device properties
US20170235357A1 (en) * 2014-12-16 2017-08-17 Teradici Corporation Method and apparatus for power management of a remote client device
CN107145355A (en) * 2017-05-08 2017-09-08 网易(杭州)网络有限公司 The method of adjustment and device of page layout, storage medium, processor and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572690A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 Webpage data acquisition method, webpage data acquisition device and webpage data acquisition system
CN103986696A (en) * 2014-04-24 2014-08-13 华为技术有限公司 Multimedia file transmission device and method
US20170235357A1 (en) * 2014-12-16 2017-08-17 Teradici Corporation Method and apparatus for power management of a remote client device
US20170085932A1 (en) * 2015-09-23 2017-03-23 Facebook, Inc. Systems and methods for adjusting image transmission based on device properties
CN105354505A (en) * 2015-09-28 2016-02-24 武汉钢铁(集团)公司 Image adaption method and electronic device
CN107145355A (en) * 2017-05-08 2017-09-08 网易(杭州)网络有限公司 The method of adjustment and device of page layout, storage medium, processor and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ADITYA MAVLANKAR, PIERPAOLO BACCICHET, DAVID VARODAYAN: ""OPTIMAL SLICE SIZE FOR STREAMING REGIONS OF HIGH RESOLUTION VIDEOWITH VIRTUAL PAN/TILT/ZOOM FUNCTIONALITY"", 《2007 15TH EUROPEAN SIGNAL PROCESSING CONFERENCE》 *
艾军: ""面向移动终端的Web内容适配研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965897A (en) * 2021-10-22 2022-01-21 成都天翼空间科技有限公司 Strategy method for terminal self-adaptive display based on 5G message

Similar Documents

Publication Publication Date Title
US10510176B2 (en) Efficient image transmission
CN106303565B (en) The image quality optimization method and apparatus of net cast
JPH10124430A (en) Data transmission system
CN107333087A (en) A kind of information sharing method and device based on video session
CN108268200A (en) Image processing method and device, electronic equipment, computer program and storage medium
CN106455056A (en) Positioning method and device
JP3950776B2 (en) Video distribution system and video conversion device used therefor
JP2021051781A (en) Event monitoring system, event monitoring method, and program
CN107071332A (en) Video image transmission processing method and transmission of video images processing unit
JP2007265290A (en) Queue information notification system
CN108156248A (en) A kind of method and device that adaptation image is obtained based on client
JP2005115642A (en) Stamp rally system and method utilizing two-dimensional code
JP3951654B2 (en) Server and terminal in image data acquisition system, image data acquisition method thereof, and image data acquisition program
US8379092B2 (en) System and method for providing application service using image data
CN113392676A (en) Multi-target tracking behavior identification method and device
CN112445394A (en) Screenshot method and device
US20190289357A1 (en) Camera system
CN103188629B (en) Flow bootstrap technique between a kind of networks with different systems and device
CN113709401A (en) Video call method, device, storage medium, and program product
CN107766815A (en) A kind of vision assistant service operation system and method for running
CN110414062B (en) Method and device for acquiring design drawing and computer readable storage medium
CN107507196A (en) A kind of client uploads and the method for processing picture
JP2011039574A (en) System and method for distributing congestion state
CN111047714A (en) Virtual tourism system
CN110213131A (en) Bandwidth determining method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180612