CN101707748A - Picture adapting method and server - Google Patents
Picture adapting method and server Download PDFInfo
- Publication number
- CN101707748A CN101707748A CN200910223683A CN200910223683A CN101707748A CN 101707748 A CN101707748 A CN 101707748A CN 200910223683 A CN200910223683 A CN 200910223683A CN 200910223683 A CN200910223683 A CN 200910223683A CN 101707748 A CN101707748 A CN 101707748A
- Authority
- CN
- China
- Prior art keywords
- picture
- mobile terminal
- server
- information
- mobile
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/303—Terminal profiles
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (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 invention discloses a picture adapting method and a server. The method comprises the step of using the server to choose a picture duplicate corresponding to a mobile terminal in a plurality of pictures pre-stored in the server according to the mobile terminal information, after receiving picture request information and mobile terminal information from a mobile terminal, wherein a plurality of picture duplicates are a plurality of picture duplicates with different sizes after converting the sizes of original pictures required by the picture request information. The invention can rapidly adapt and respond to the pictures for different mobile terminals, improving the experience for mobile terminal user browsing the mobile pictures.
Description
Technical Field
The invention relates to the field of communication, in particular to a picture adaptation method and a server.
Background
With the development of communication technology and the coming of the 3G era, more and more mobile terminals have the function of accessing the internet, and correspondingly, more and more WAP websites are provided, and the mobile internet has started to be formed. Because the screen area of the mobile terminal is small, and the sizes of the screens of the mobile terminals of different manufacturers and models are different, the WAP website presents the picture to the user, and the experience of the user is influenced when the size of the picture is larger than or smaller than that of the screen of the mobile terminal.
In the prior art, the above problems are solved by: the server stores a large amount of model and screen size data of the mobile terminal, the mobile terminal carries terminal model information when sending a request to the server, and after obtaining the screen size of the mobile terminal according to the terminal model information, the server adjusts the size of the picture to be consistent with the size of the terminal screen, and sends the adjusted picture to the mobile terminal for display.
According to the method, the pictures are required to be generated in real time when the pictures are sent each time, a special picture conversion server is required, a large amount of system resources are consumed, meanwhile, network delay is increased in the processes of generating the pictures in real time and calling the interfaces between the portal server and the picture conversion server, the system response is slow, in addition, when the quantity of concurrent users is large, downtime is easily caused, and the user experience is reduced.
Aiming at the problems that in the process of responding to a picture request message of a terminal, a mobile portal needs to perform picture size conversion every time, so that system resources are consumed, network delay is increased, and system stability is reduced, an effective solution is not provided at present.
Disclosure of Invention
The invention provides a picture adaptation method and a server, aiming at the problems that the picture size conversion is required each time in the process of responding a picture request message of a terminal by a mobile portal, so that the system resource is consumed, the network delay is increased and the system stability is reduced.
In order to achieve the above object, according to one aspect of the present invention, there is provided a picture adaptation method, after receiving a picture request message from a mobile terminal and information of the mobile terminal, the picture adaptation method according to the present invention comprising: and the server selects a picture copy corresponding to the mobile terminal from a plurality of picture copies pre-stored by the server for the mobile terminal according to the information of the mobile terminal, wherein the plurality of picture copies are a plurality of picture copies with different sizes after the size conversion of the original picture requested by the picture request message.
Preferably, before the server selects, for the mobile terminal, a picture copy corresponding to the mobile terminal from among a plurality of picture copies pre-stored by the server according to the information of the mobile terminal, the method further includes: the server determines the screen sizes of the plurality of mobile terminals according to the information of all the mobile terminals stored by the server; and the server performs size conversion on the original pictures stored in the server according to the screen sizes of the plurality of mobile terminals and stores converted picture copies.
Preferably, the server determining a plurality of mobile terminal screen sizes according to the information of all the mobile terminals stored by the server comprises: the server calculates the percentage of different screen sizes according to the information of all the mobile terminals, and determines the screen sizes of the mobile terminals according to the percentage; or the server calculates the percentage of different screen sizes according to the information of all the mobile terminals, and determines the screen sizes of the plurality of mobile terminals according to the percentage and the market share of all the terminals.
Preferably, the server selecting, for the mobile terminal, a picture copy corresponding to the mobile terminal among a plurality of picture copies pre-stored by the server according to the information of the mobile terminal includes: and judging whether the size of the original picture in the server is larger than the screen size of the mobile terminal, if so, selecting the picture copy corresponding to the mobile terminal from a plurality of picture copies prestored by the server for the mobile terminal by the server according to the information of the mobile terminal.
Preferably, in a case where it is judged that the size of the original picture in the server is equal to or smaller than the screen size of the mobile terminal, the server selects the original picture as the picture corresponding to the mobile terminal.
Preferably, the server performs size conversion on the original picture stored in the server according to a plurality of commonly used mobile terminal screen sizes, wherein the size conversion maintains the high-width ratio of the original picture.
Preferably, the picture copy corresponding to the mobile terminal among the plurality of picture copies satisfies: the height of the picture copy is less than or equal to the height of a screen of the mobile terminal, the width of the picture copy is less than or equal to the width of the screen of the mobile terminal, and a predetermined difference value is less than or equal to a predetermined difference value of other picture copies in the plurality of picture copies, wherein the predetermined difference value is a | H-H | + b | W-W |, H is the height of the picture copy, H is the height of the screen, W is the width of the picture copy, W is the width of the screen, and a and b are preset weights.
Preferably, after the server selects, for the mobile terminal, a picture copy corresponding to the mobile terminal from among a plurality of picture copies pre-stored by the server according to the information of the mobile terminal, the method further includes: the server caches a correspondence between information of the mobile terminal and a picture copy corresponding to the mobile terminal.
Preferably, the server selecting, for the mobile terminal, a picture copy corresponding to the mobile terminal among a plurality of picture copies pre-stored by the server according to the information of the mobile terminal includes: the server matches the information of the mobile terminal with the corresponding relation, and if the picture copy corresponding to the information of the mobile terminal is matched, the picture copy selected for the mobile terminal is determined to be the matched picture copy; otherwise, the server selects a picture copy corresponding to the screen size of the mobile terminal from the plurality of picture copies for the mobile terminal according to the information of the mobile terminal.
Preferably, the information of the mobile terminal includes at least one of: the model of the mobile terminal, and the screen size of the mobile terminal.
To achieve the above object, according to another aspect of the present invention, there is provided a server.
The server according to the present invention includes: the mobile portal is used for receiving the picture request message from the mobile terminal and the information of the mobile terminal; and the adaptation module is used for selecting a plurality of picture copies corresponding to the mobile terminal from a plurality of prestored picture copies for the mobile terminal according to the information of the mobile terminal received by the mobile portal, wherein the plurality of picture copies are a plurality of picture copies with different sizes after the size of the original picture requested by the picture request message is converted.
Preferably, the server further includes: the terminal information database is used for storing the information of all the mobile terminals; the terminal data analysis module is used for determining the screen sizes of the plurality of mobile terminals according to the information of all the mobile terminals stored in the terminal information database; the picture conversion module is used for carrying out size conversion on the original pictures stored in the server according to the screen sizes of the mobile terminals determined by the terminal data analysis module; and the picture storage module is used for storing the picture copy converted by the conversion module.
Preferably, the server further includes: the caching module is used for caching the corresponding relation between the information of the mobile terminal and the picture copy corresponding to the mobile terminal; the adaptation module is further used for selecting a picture copy corresponding to the mobile terminal from a plurality of picture copies stored in advance for the mobile terminal according to the information of the mobile terminal and the corresponding relation stored by the cache module.
Preferably, the adaptation module is further configured to send a picture copy corresponding to the mobile terminal to the mobile portal; the mobile portal is also used for sending the received picture copy corresponding to the mobile terminal from the adaptation module to the mobile terminal.
According to the invention, the plurality of picture copies are pre-stored in the server, and the most appropriate picture copy is selected from the plurality of picture copies for the terminal after the request message is received, so that the problems that the picture size conversion is required each time in the process of responding the picture request message of the terminal by the mobile portal, the system resource is consumed, the network delay is increased, and the system stability is reduced are solved, the fast adaptation and response of the picture can be realized for different mobile terminals, and the experience of the mobile terminal user for browsing the picture on the mobile portal is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flow chart of a picture adaptation method according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart of a picture adaptation method according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart of a picture adaptation method according to example 1 of the present invention;
FIG. 4 is a block diagram of a server according to an embodiment of the present invention;
FIG. 5 is a detailed block diagram of a server according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a server application environment and a detailed structure of a server according to example 2 of the present invention.
Detailed Description
Function already described
In view of the problems in the prior art, an embodiment of the present invention provides a picture adaptation scheme, where a processing principle of the scheme is as follows: and the server selects a picture copy corresponding to the mobile terminal from a plurality of picture copies pre-stored by the server for the mobile terminal according to the information of the mobile terminal, wherein the plurality of picture copies are a plurality of picture copies with different sizes after the size conversion of the original picture requested by the picture request message. By the scheme, rapid adaptation and response of pictures can be realized for different mobile terminals, and the experience of a mobile terminal user in browsing the pictures on the mobile portal is improved.
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Method embodiment
According to an embodiment of the present invention, there is provided a picture adaptation method, and fig. 1 is a flowchart of the picture adaptation method according to the embodiment of the present invention, as shown in fig. 1, the method includes the following processing from step S102 to step S104:
step S102, the server receives the picture request message from the mobile terminal and the information of the mobile terminal. Preferably, the information of the mobile terminal can also be carried in the picture request message;
and step S104, the server selects a plurality of picture copies corresponding to the mobile terminal from a plurality of picture copies pre-stored by the server for the mobile terminal according to the information of the mobile terminal, wherein the plurality of picture copies are a plurality of picture copies with different sizes after the size conversion of the original picture requested by the picture request message.
Fig. 2 is a detailed flowchart of a picture adaptation method according to an embodiment of the present invention, and as shown in fig. 2, the method may include the following processing from step S202 to step S210:
in step S202, the server determines a plurality of mobile terminal screen sizes according to the information of all mobile terminals stored by the server, and preferably, the process may include: the server calculates the percentage of different screen sizes according to the information of all the mobile terminals, and determines the screen sizes of the mobile terminals according to the percentage; or the server calculates the percentage of different screen sizes according to the information of all the mobile terminals, and determines the screen sizes of the plurality of mobile terminals according to the percentage and the market share of all the terminals.
And step S204, the server performs size conversion on the original pictures stored in the server according to the screen sizes of the plurality of mobile terminals, and stores converted picture copies. Preferably, the server can perform size conversion on the original picture stored in the server according to a plurality of commonly used mobile terminal screen sizes, wherein the size conversion maintains the high-width ratio of the original picture.
In step S206, the server receives the picture request message from the mobile terminal and the information of the mobile terminal, and preferably, the information of the mobile terminal may also be carried in the picture request message. The information of the mobile terminal may include at least one of: the model of the mobile terminal, and the screen size of the mobile terminal.
In step S208, the server selects, for the mobile terminal, a picture copy corresponding to the mobile terminal from among a plurality of picture copies pre-stored by the server according to the information of the mobile terminal, where the plurality of picture copies are a plurality of picture copies of different sizes after size conversion of the original picture requested by the picture request message. Preferably, the server selecting, for the mobile terminal, a picture copy corresponding to the mobile terminal among a plurality of picture copies pre-stored by the server according to the information of the mobile terminal includes: and judging whether the size of the original picture in the server is larger than the screen size of the mobile terminal, if so, selecting the picture copy corresponding to the mobile terminal from a plurality of picture copies prestored by the server for the mobile terminal by the server according to the information of the mobile terminal. Preferably, in a case where it is judged that the size of the original picture in the server is equal to or smaller than the screen size of the mobile terminal, the server selects the original picture as the picture corresponding to the mobile terminal. Preferably, the picture copy corresponding to the mobile terminal among the plurality of picture copies satisfies: the height of the picture copy is less than or equal to the height of a screen of the mobile terminal, the width of the picture copy is less than or equal to the width of the screen of the mobile terminal, and a predetermined difference value is less than or equal to a predetermined difference value of other picture copies in the plurality of picture copies, wherein the predetermined difference value is a | H-H | + b | W-W |, H is the height of the picture copy, H is the height of the screen, W is the width of the picture copy, W is the width of the screen, and a and b are preset weights.
Preferably, in step S208, the selecting, by the server, a picture copy corresponding to the mobile terminal from among the plurality of picture copies pre-stored by the server for the mobile terminal according to the information of the mobile terminal may include: the server matches the information of the mobile terminal with the corresponding relation (namely the corresponding relation between the information of the mobile terminal cached before and the picture copy corresponding to the mobile terminal), and if the picture copy corresponding to the information of the mobile terminal is matched, the picture copy selected for the mobile terminal is determined to be the matched picture copy; otherwise, the server selects a picture copy corresponding to the screen size of the mobile terminal from the plurality of picture copies for the mobile terminal according to the information of the mobile terminal.
In step S210, the server caches a correspondence between information of the mobile terminal and a picture copy corresponding to the mobile terminal.
Preferably, the server may be a server of a mobile portal.
The following describes in detail the implementation of the embodiments of the present invention with reference to examples.
Example 1
This example describes a detailed processing flow of the above-mentioned picture adaptation method, and fig. 3 is a detailed flow chart of the picture adaptation method according to example 1 of the present invention, as shown in fig. 3, the method mainly includes the following steps:
in step 301, the server stores terminal model information and/or screen size information of the mobile terminal (the screen size of the terminal can be identified by screen resolution). The larger the amount of information in the database, the better, at least all mainstream products of mainstream mobile terminal manufacturers should be covered, and the screen size is the information of major concern, but if possible, the market share can also be used as an important data in the analysis. The complete terminal information data can reach 2 ten thousand terminal data, and a general field database can have about 3000 data.
The server analyzes the terminal data to obtain the most common N resolutions as an analysis result, where the N value may be configured according to actual conditions, and a simple analysis process is to count only the percentage of each screen resolution among all screen resolution data, and take the N resolution with the highest percentage as an analysis result.
In the server, a function may also be provided to manually add data to the analysis results, some special resolution data may be added, e.g. 200 x 800. However, in general, no special resolution needs to be added manually, since the analysis result covers more than 90% of the terminals, most users can be satisfied, and for the screen size of the terminal with a special size, even if the screen size is not exactly the same as the screen size, the selected picture is not larger than the screen size, and the display effect is not too poor. Such as: for a mobile terminal with a screen size (width x height) of 128 x 320 for which a picture copy of the 128 x 160 specification is selected, the picture does not exceed the screen size.
In step 303, the server converts the original picture on the mobile portal into an ith picture copy suitable for the ith resolution according to the ith resolution in the analysis result, and stores the ith picture copy on the server, wherein i is a positive integer and i < ═ N.
Specifically, the server converts the original picture on the mobile portal into the ith copy (height H, width W) according to the height (H1) and width (W1) of the ith resolution in the analysis result, and the size of the copy conforms to H ≦ H1 and W ≦ W1. Preferably, the aspect ratio of the copy may be consistent with the original image to ensure that the picture viewed by the user is not distorted. Considering that a User Agent (User Agent) border of the mobile terminal may occupy a certain screen edge, H may be slightly smaller than H. Preferably, in the case that the original picture is smaller than or equal to the screen sizes of all terminals, the size conversion of the picture may not be performed, and at this time, the picture copy is the original picture itself.
The generated picture copies can be organized according to a certain directory (for example, the ith resolution is put in the same directory), and are uniformly stored on the server, if a cluster is used, a special picture server can be used, a static page server technology is used, and the performance is greatly improved. For the requirement of storage space, the common terminal sizes are: 128 x 128, 128 x 160, 176 x 220, 240 x 320, with an original image (602 x 1010) with a size of 55.9K, four picture copies with a resolution of 286 x 480, 190 x 320, 131 x 220, 95 x 160 are generated, the size is 16.3K, 8.9K, 5.35K, 3.4K, the occupied storage space is about 34K, and is not more than one time of the original image.
For a picture, only a plurality of copies with different sizes need to be generated in advance during uploading, and the picture copies can be reused. If ten thousand users access the picture, ten thousand times need to be generated in real time by using the real-time generation method, and only a plurality of times (4 times in the example) need to be generated in advance by using the method provided by the embodiment of the invention.
In step 304, the mobile terminal sends a picture request message and information of the mobile terminal to a server (e.g., a mobile portal), wherein the picture request message specifies a target picture, and the information of the mobile terminal specifies the mobile terminal used by a user, and the information of the mobile terminal may include at least one of the following: the model of the mobile terminal, and the screen size of the mobile terminal.
In step 305, after receiving the picture request message of the mobile terminal and the information of the mobile terminal (or the information of the mobile terminal may also be included in the picture request message), the server (e.g., the mobile portal) selects the jth copy with the optimal target picture according to the information of the mobile terminal and returns the jth copy to the mobile portal. Specifically, the above process may include the following processes of step 1 to step 3:
step 1, under the condition that the information of the mobile terminal comprises the model of the mobile terminal, the server searches the screen size (which can be represented by resolution) of the terminal from the information of all the mobile terminals stored in the server according to the model of the mobile terminal (or the model of the mobile terminal in the picture request message); in the case where the information of the mobile terminal includes the screen size of the mobile terminal or both the model and the screen size of the mobile terminal, the server may directly obtain the screen size (which may be expressed in terms of resolution) of the mobile terminal.
And 2, the server calculates the optimal picture resolution of the mobile terminal (namely, selects a picture copy corresponding to the mobile terminal) as the jth resolution in the analysis result according to the resolution of the mobile terminal, wherein the picture copy of the jth resolution is a picture to be fed back to the mobile terminal, and establishes the optimal adaptation relationship (namely, the corresponding relationship) between the terminal model and the jth resolution. Preferably, in the case that the screen size of the mobile terminal is larger than that of the original picture, the best picture resolution of the mobile terminal is the resolution of the original picture.
As a specific example, in step 2, the optimal picture resolution satisfies: the height of the picture copy is less than or equal to the height of a screen of the mobile terminal, the width of the picture copy is less than or equal to the width of the screen of the mobile terminal, and the predetermined difference value is less than or equal to the predetermined difference value of other picture copies in the plurality of picture copies, wherein the predetermined difference value is a | H-H | + b | W-W |, H is the height of the picture copy, H is the height of the screen, W is the width of the picture copy, W is the width of the screen, a and b are preset weights, and the values of a and b can be preset according to actual conditions.
For example, a picture copy satisfying that the height of the picture copy is equal to or less than the height of the screen of the mobile terminal and the width of the picture copy is equal to or less than the width of the screen of the mobile terminal is selected, then the difference between the height (or width) of the screen and the height (or width) of the picture copy is calculated, and the resolution of the picture copy with the smallest difference is selected as the best picture resolution.
And 3, the server puts the adaptive relation into a cache block, and directly reads the adaptive relation from the cache without repeatedly calculating and selecting the adaptive relation when reading the adaptive relation of the same terminal model or the same terminal screen size next time. The process may include: after receiving the picture request message and the information of the mobile terminal (or the information of the mobile terminal is carried in the picture request message), the server first performs matching in a cached adaptation relationship, determines whether a resolution of a picture copy corresponding to the information of the mobile terminal exists, if so, the resolution found in the adaptation relationship is the best picture resolution of the mobile terminal, otherwise, the best picture resolution of the mobile terminal is determined through the steps 1 and 2, and preferably, the step 3 is executed after the best picture resolution is determined. The LRU algorithm may be used for caching, that is, data that is used least recently is flushed out of the cache, so as to avoid occupying too much memory of the system, and other algorithms may also be used.
And step 306, the server reads the corresponding picture copy according to the adaptation result and returns the picture copy to the mobile terminal.
In the above processing flow, step 302 is an optional step, and in the case that step 302 is not included, step 303 may reduce the original picture by different multiples to obtain multiple picture copies, or perform conversion according to a preset size, or the like.
It should be noted that the size is expressed by resolution in the above example, and in practical applications, the size may also be expressed by other parameters (for example, the height and width value cm). Moreover, in the above example, the correspondence between the information of the mobile terminal cached by the server and the picture copy corresponding to the mobile terminal is represented by the adaptation between the information of the mobile terminal and the optimal picture resolution, and preferably, the number or index of the picture copy may also be applied instead of the optimal picture resolution, which may further save the cache space.
Device embodiment
According to an embodiment of the present invention, there is provided a server, and fig. 4 is a block diagram of a server according to an embodiment of the present invention, as shown in fig. 4, the server includes: a mobile portal 42 for receiving a picture request message from the mobile terminal and information of the mobile terminal; and an adaptation module 44, connected to the mobile portal 42, configured to select, according to the information of the mobile terminal received by the mobile portal 42, a picture copy corresponding to the mobile terminal from among a plurality of picture copies stored in advance for the mobile terminal, where the plurality of picture copies are a plurality of size-converted picture copies of the original picture requested by the picture request message.
Fig. 5 is a detailed block diagram of a server according to an embodiment of the present invention, and as shown in fig. 5, on the basis of fig. 4, the server further includes: a terminal information database 52 for storing information of all mobile terminals; a terminal data analysis module 54 connected to the terminal information database 52 and configured to determine screen sizes of a plurality of mobile terminals according to information of all mobile terminals stored in the terminal information database 52; the picture conversion module 56 is connected to the terminal data analysis module 54, and is used for performing size conversion on the original pictures stored in the server according to the screen sizes of the plurality of mobile terminals determined by the terminal data analysis module 54; the image storage module 58 is connected to the image conversion module 56 and the adaptation module 44 and is used for storing the image copy converted by the conversion module 56, and the cache module 59 is connected to the adaptation module 44 and is used for caching the corresponding relation between the information of the mobile terminal and the image copy corresponding to the mobile terminal; the adapting module 44 is further configured to select a picture copy corresponding to the mobile terminal from a plurality of picture copies stored in advance for the mobile terminal according to the information of the mobile terminal and the correspondence stored by the caching module 59.
Preferably, the adaptation module 44 is further configured to send a copy of the picture corresponding to the mobile terminal to the mobile portal 42; the mobile portal 42 is also configured to send the received copy of the picture corresponding to the mobile terminal from the adaptation module 44 to the mobile terminal.
It should be noted that, the server described in the apparatus embodiment is used to implement the method embodiment, and a specific implementation method of the server is already described in detail in the method embodiment, and is not described herein again.
Example 2
Fig. 6 is a schematic diagram of a server application environment and a detailed structure of a server according to example 2 of the present invention, and as shown in fig. 6, an object interacting with the server may include a mobile terminal 61, and the server may include the following parts: the system comprises a mobile portal 62, a terminal information database 63, a terminal data analysis module 64, an adaptation module 65, a cache module 66, a picture conversion module 67 and a picture storage module 68. The functions of the above-mentioned parts are described below:
the mobile terminal 61: for sending the picture request message and the information of the terminal to the mobile portal 62 (the information of the terminal may also be carried in the picture request message, and the information of the terminal may include the model of the terminal and/or the screen size of the terminal).
The mobile portal 62: on the one hand, is used for receiving the picture request message of the mobile terminal 61 and transferring it to the picture adaptation module 65 for processing, and on the other hand, is used for returning the adapted target picture to the mobile terminal 61.
The adaptation module 65: for processing the picture request message forwarded by the mobile portal 62, calculating the adaptation relationship, and returning the adapted picture copy to the mobile portal 62.
The cache module 66: and the method is used for caching the optimal picture resolution adaptation relation corresponding to each terminal model.
Terminal information database 63: the method is used for saving parameter information of the mobile terminal commonly used in the market, including the model of the terminal and the screen resolution (used for representing the screen size).
The terminal data analysis module 64: for periodically analyzing the resolutions in the terminal information database 63 to obtain the most commonly used resolutions.
The picture conversion module 67: for converting the pictures on the mobile portal into copies that fit several resolution displays according to the analysis result of the terminal data analysis module 64.
The picture storage module 68: for storing the converted copy of the picture.
The working process of each part comprises the following steps:
step 401, establishing a terminal information database 63, wherein the database should include terminal model information and/or screen resolution information of the mobile terminal;
step 402, the terminal data analysis module 64 analyzes the terminal data to obtain the most commonly used N resolution as an analysis result;
in step 403, the picture conversion module 67 converts the original picture on the mobile portal into an nth copy suitable for the nth resolution according to the nth resolution in the analysis result, and stores the nth copy on the picture storage module 68.
In step 404, the mobile terminal 61 sends a picture request message and terminal model information to the mobile portal 62.
In step 405, the mobile portal 62 receives the request message of the mobile terminal 61, sends the request message to the adaptation module 65 for processing, and reads a corresponding picture copy from the picture storage module 68 according to the adaptation result and returns the picture copy to the mobile terminal 61.
In step 406, the adaptation module 65 receives the request information forwarded by the mobile portal 62, adapts the optimal nth copy of the target picture according to the request information, and returns the optimal nth copy to the mobile portal 62.
In step 407, the cache module 66 stores the result of the calculated adaptation relationship of the adaptation module 65 in a high-speed memory for query during adaptation again.
In summary, in the scheme provided by the embodiment of the present invention, the terminal data is analyzed in advance and the picture copies with different sizes are generated in advance, so that the usage amount of system resources during the picture adaptation operation is reduced, and the picture adaptation speed is increased.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (14)
1. A picture adaptation method, after receiving a picture request message from a mobile terminal and information of the mobile terminal, the method comprising:
and the server selects a plurality of picture copies which correspond to the mobile terminal from a plurality of picture copies pre-stored by the server for the mobile terminal according to the information of the mobile terminal, wherein the plurality of picture copies are a plurality of picture copies with different sizes after size conversion of the original picture requested by the picture request message.
2. The method according to claim 1, wherein before the server selects, for the mobile terminal, the picture copy corresponding to the mobile terminal among the plurality of picture copies pre-stored by the server according to the information of the mobile terminal, the method further comprises:
the server determines the screen sizes of a plurality of mobile terminals according to the information of all the mobile terminals stored by the server;
and the server performs size conversion on the original pictures stored in the server according to the sizes of the screens of the mobile terminals and stores converted picture copies.
3. The method of claim 2, wherein the server determining the screen sizes of the plurality of mobile terminals according to the information of all mobile terminals stored by the server comprises:
the server calculates the percentage of different screen sizes according to the information of all the mobile terminals, and determines the screen sizes of the mobile terminals according to the percentage; or,
and the server calculates the percentage of different screen sizes according to the information of all the mobile terminals, and determines the screen sizes of the mobile terminals according to the percentage and the market share of all the terminals.
4. The method of claim 1, wherein the server selecting, for the mobile terminal, a picture copy corresponding to the mobile terminal from among a plurality of picture copies pre-stored by the server according to the information of the mobile terminal comprises:
and judging whether the size of the original picture in the server is larger than the screen size of the mobile terminal, if so, selecting a picture copy corresponding to the mobile terminal from a plurality of picture copies prestored by the server for the mobile terminal by the server according to the information of the mobile terminal.
5. The method according to claim 4, wherein in case that the size of the original picture in the server is judged to be smaller than or equal to the screen size of the mobile terminal, the server selects the original picture as the picture corresponding to the mobile terminal.
6. The method according to claim 2, wherein the server performs size conversion on the original picture stored in the server according to the plurality of commonly used mobile terminal screen sizes, wherein the size conversion maintains the aspect ratio of the original picture.
7. The method of claim 1, wherein the picture copy of the plurality of picture copies corresponding to the mobile terminal satisfies: the height of the picture copy is less than or equal to the height of a screen of the mobile terminal, the width of the picture copy is less than or equal to the width of the screen of the mobile terminal, and a predetermined difference value is less than or equal to a predetermined difference value of other picture copies in the plurality of picture copies, wherein the predetermined difference value is a | H-H | + b | W-W |, H is the height of the picture copy, H is the height of the screen, W is the width of the picture copy, W is the width of the screen, and a and b are preset weights.
8. The method according to claim 1, wherein after the server selects a picture copy corresponding to the mobile terminal from a plurality of picture copies pre-stored by the server for the mobile terminal according to the information of the mobile terminal, the method further comprises:
the server caches the corresponding relation between the information of the mobile terminal and the picture copy corresponding to the mobile terminal.
9. The method of claim 8, wherein the server selecting, for the mobile terminal, a picture copy corresponding to the mobile terminal from among a plurality of picture copies pre-stored by the server according to the information of the mobile terminal comprises:
the server matches the information of the mobile terminal with the corresponding relation, and if the picture copy corresponding to the information of the mobile terminal is matched, the picture copy selected for the mobile terminal is determined to be the matched picture copy; otherwise, the server selects a picture copy corresponding to the screen size of the mobile terminal from the plurality of picture copies for the mobile terminal according to the information of the mobile terminal.
10. The method according to any of claims 1 to 9, wherein the information of the mobile terminal comprises at least one of: the model of the mobile terminal and the screen size of the mobile terminal.
11. A server, comprising:
the mobile portal is used for receiving the picture request message from the mobile terminal and the information of the mobile terminal;
an adaptation module, configured to select, for the mobile terminal according to the information of the mobile terminal received by the mobile portal, a picture copy corresponding to the mobile terminal from among multiple pre-stored picture copies, where the multiple picture copies are multiple picture copies of different sizes after size conversion of an original picture requested by the picture request message.
12. The server according to claim 11, further comprising:
the terminal information database is used for storing the information of all the mobile terminals;
the terminal data analysis module is used for determining the screen sizes of a plurality of mobile terminals according to the information of all the mobile terminals stored in the terminal information database;
the picture conversion module is used for carrying out size conversion on the original pictures stored in the server according to the screen sizes of the mobile terminals determined by the terminal data analysis module;
and the picture storage module is used for storing the picture copy converted by the conversion module.
13. The server according to claim 11, further comprising:
the caching module is used for caching the corresponding relation between the information of the mobile terminal and the picture copy corresponding to the mobile terminal;
the adaptation module is further configured to select, for the mobile terminal, a picture copy corresponding to the mobile terminal from among a plurality of picture copies stored in advance according to the information of the mobile terminal and the correspondence stored by the cache module.
14. The server according to any one of claims 11 to 13,
the adaptation module is further configured to send a picture copy corresponding to the mobile terminal to the mobile portal;
the mobile portal is further used for sending the received picture copy corresponding to the mobile terminal from the adaptation module to the mobile terminal.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910223683A CN101707748A (en) | 2009-11-24 | 2009-11-24 | Picture adapting method and server |
PCT/CN2010/072627 WO2010148799A1 (en) | 2009-11-24 | 2010-05-11 | Image adapting method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910223683A CN101707748A (en) | 2009-11-24 | 2009-11-24 | Picture adapting method and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101707748A true CN101707748A (en) | 2010-05-12 |
Family
ID=42377913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910223683A Pending CN101707748A (en) | 2009-11-24 | 2009-11-24 | Picture adapting method and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101707748A (en) |
WO (1) | WO2010148799A1 (en) |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102307228A (en) * | 2011-07-08 | 2012-01-04 | 宇龙计算机通信科技(深圳)有限公司 | Adapting method and system for mobile terminal resource as well as mobile terminal and server |
CN102546793A (en) * | 2011-12-31 | 2012-07-04 | 广州杰赛科技股份有限公司 | Self-adaption method and system of mobile terminal based on cloud computing |
CN102572204A (en) * | 2010-12-20 | 2012-07-11 | 中国移动通信集团浙江有限公司 | Method and device for obtaining comics adaptive to terminal screen resolution |
CN102684986A (en) * | 2011-04-14 | 2012-09-19 | 天脉聚源(北京)传媒科技有限公司 | A method and system for displaying pictures on a terminal |
WO2013060144A1 (en) * | 2011-10-27 | 2013-05-02 | 腾讯科技(深圳)有限公司 | Method for browsing webpage picture and client device |
CN103136208A (en) * | 2011-11-23 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method for displaying images and device for displaying images |
CN103593820A (en) * | 2013-11-27 | 2014-02-19 | 深圳市金立通信设备有限公司 | Method for picture processing and terminal |
CN103634343A (en) * | 2012-08-22 | 2014-03-12 | 腾讯科技(上海)有限公司 | Wallpaper arranging method and terminal |
CN104461417A (en) * | 2013-09-23 | 2015-03-25 | 北大方正集团有限公司 | Server and display method |
CN105282255A (en) * | 2015-11-03 | 2016-01-27 | 广州视源电子科技股份有限公司 | picture transmission method and system |
CN105450837A (en) * | 2014-08-29 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Method and apparatus for displaying CDN image adaptively on terminal device |
CN105761205A (en) * | 2016-03-17 | 2016-07-13 | 网易有道信息技术(北京)有限公司 | Picture delivery method and device |
CN106603634A (en) * | 2016-11-29 | 2017-04-26 | 北海高创电子信息孵化器有限公司 | Multi-screen response type website set-up system |
CN106843876A (en) * | 2017-01-19 | 2017-06-13 | 惠州Tcl移动通信有限公司 | A kind of application program uploading pictures method and system based on mobile terminal |
CN107748688A (en) * | 2017-09-30 | 2018-03-02 | 微梦创科网络科技(中国)有限公司 | A kind of information displaying method and device |
CN108377401A (en) * | 2018-02-26 | 2018-08-07 | 上海康斐信息技术有限公司 | A kind of page pictures display methods and system based on set-top box |
CN109254653A (en) * | 2018-08-15 | 2019-01-22 | 厦门美图之家科技有限公司 | A kind of material matching process calculates equipment and storage medium |
CN109936504A (en) * | 2019-02-21 | 2019-06-25 | Oppo广东移动通信有限公司 | Picture display method and device, server equipment and storage medium |
CN109981728A (en) * | 2019-02-02 | 2019-07-05 | 珠海天燕科技有限公司 | It is a kind of to be adapted to multimedia providing method and device |
CN110427581A (en) * | 2018-04-26 | 2019-11-08 | 北大方正集团有限公司 | Issue picture adapting method and device in contribution multiple terminals |
CN111259276A (en) * | 2020-01-10 | 2020-06-09 | 北京字节跳动网络技术有限公司 | Method and device for displaying title content, electronic equipment and storage medium |
CN111562895A (en) * | 2020-03-25 | 2020-08-21 | 北京字节跳动网络技术有限公司 | Multimedia information display method and device and electronic equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105262797B (en) * | 2015-09-17 | 2019-03-15 | 北京金山安全软件有限公司 | Music file loading method and related equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
SE9902462L (en) * | 1999-06-28 | 2000-11-06 | Ericsson Telefon Ab L M | Method and device in a telecommunication system |
CN1585516A (en) * | 2004-06-02 | 2005-02-23 | 卓望数码技术(深圳)有限公司 | Preadapting universal multimedia short-message telecommunicating method |
JP2009009334A (en) * | 2007-06-27 | 2009-01-15 | Ricoh Co Ltd | Image processing apparatus, image processing method, and image processing program |
-
2009
- 2009-11-24 CN CN200910223683A patent/CN101707748A/en active Pending
-
2010
- 2010-05-11 WO PCT/CN2010/072627 patent/WO2010148799A1/en active Application Filing
Cited By (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572204A (en) * | 2010-12-20 | 2012-07-11 | 中国移动通信集团浙江有限公司 | Method and device for obtaining comics adaptive to terminal screen resolution |
CN102684986B (en) * | 2011-04-14 | 2015-02-11 | 天脉聚源(北京)传媒科技有限公司 | Method and system for displaying picture by terminal |
CN102684986A (en) * | 2011-04-14 | 2012-09-19 | 天脉聚源(北京)传媒科技有限公司 | A method and system for displaying pictures on a terminal |
CN102307228A (en) * | 2011-07-08 | 2012-01-04 | 宇龙计算机通信科技(深圳)有限公司 | Adapting method and system for mobile terminal resource as well as mobile terminal and server |
WO2013060144A1 (en) * | 2011-10-27 | 2013-05-02 | 腾讯科技(深圳)有限公司 | Method for browsing webpage picture and client device |
US10015284B2 (en) | 2011-10-27 | 2018-07-03 | Tencent Technology (Shenzhen) Company Limited | Method for browsing webpage picture and client device therefor |
CN103136208B (en) * | 2011-11-23 | 2016-03-30 | 腾讯科技(深圳)有限公司 | A kind of method of Showing Picture and device |
CN103136208A (en) * | 2011-11-23 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method for displaying images and device for displaying images |
CN102546793B (en) * | 2011-12-31 | 2015-01-28 | 广州杰赛科技股份有限公司 | Self-adaption method and system of mobile terminal based on cloud computing |
CN102546793A (en) * | 2011-12-31 | 2012-07-04 | 广州杰赛科技股份有限公司 | Self-adaption method and system of mobile terminal based on cloud computing |
CN103634343A (en) * | 2012-08-22 | 2014-03-12 | 腾讯科技(上海)有限公司 | Wallpaper arranging method and terminal |
CN104461417A (en) * | 2013-09-23 | 2015-03-25 | 北大方正集团有限公司 | Server and display method |
CN104461417B (en) * | 2013-09-23 | 2018-03-23 | 北大方正集团有限公司 | Server and display methods |
CN103593820A (en) * | 2013-11-27 | 2014-02-19 | 深圳市金立通信设备有限公司 | Method for picture processing and terminal |
CN105450837A (en) * | 2014-08-29 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Method and apparatus for displaying CDN image adaptively on terminal device |
CN105282255A (en) * | 2015-11-03 | 2016-01-27 | 广州视源电子科技股份有限公司 | picture transmission method and system |
CN105761205A (en) * | 2016-03-17 | 2016-07-13 | 网易有道信息技术(北京)有限公司 | Picture delivery method and device |
CN105761205B (en) * | 2016-03-17 | 2018-12-11 | 网易有道信息技术(北京)有限公司 | A kind of picture put-on method and device |
CN106603634A (en) * | 2016-11-29 | 2017-04-26 | 北海高创电子信息孵化器有限公司 | Multi-screen response type website set-up system |
CN106843876A (en) * | 2017-01-19 | 2017-06-13 | 惠州Tcl移动通信有限公司 | A kind of application program uploading pictures method and system based on mobile terminal |
CN107748688A (en) * | 2017-09-30 | 2018-03-02 | 微梦创科网络科技(中国)有限公司 | A kind of information displaying method and device |
CN107748688B (en) * | 2017-09-30 | 2021-05-11 | 微梦创科网络科技(中国)有限公司 | Information display method and device |
CN108377401A (en) * | 2018-02-26 | 2018-08-07 | 上海康斐信息技术有限公司 | A kind of page pictures display methods and system based on set-top box |
CN110427581A (en) * | 2018-04-26 | 2019-11-08 | 北大方正集团有限公司 | Issue picture adapting method and device in contribution multiple terminals |
CN109254653A (en) * | 2018-08-15 | 2019-01-22 | 厦门美图之家科技有限公司 | A kind of material matching process calculates equipment and storage medium |
CN109254653B (en) * | 2018-08-15 | 2021-09-07 | 厦门美图之家科技有限公司 | Material matching method, computing device and storage medium |
CN109981728A (en) * | 2019-02-02 | 2019-07-05 | 珠海天燕科技有限公司 | It is a kind of to be adapted to multimedia providing method and device |
CN109936504A (en) * | 2019-02-21 | 2019-06-25 | Oppo广东移动通信有限公司 | Picture display method and device, server equipment and storage medium |
CN109936504B (en) * | 2019-02-21 | 2021-10-26 | Oppo广东移动通信有限公司 | Picture display method and device, server equipment and storage medium |
CN111259276A (en) * | 2020-01-10 | 2020-06-09 | 北京字节跳动网络技术有限公司 | Method and device for displaying title content, electronic equipment and storage medium |
CN111562895A (en) * | 2020-03-25 | 2020-08-21 | 北京字节跳动网络技术有限公司 | Multimedia information display method and device and electronic equipment |
CN111562895B (en) * | 2020-03-25 | 2023-09-22 | 抖音视界有限公司 | Multimedia information display method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2010148799A1 (en) | 2010-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101707748A (en) | Picture adapting method and server | |
WO2017167050A1 (en) | Configuration information generation and transmission method, and resource loading method, apparatus and system | |
RU2615057C2 (en) | Method and device for access to web-page and router | |
CN108055302B (en) | Picture caching processing method and system and server | |
KR102292471B1 (en) | Dynamic cache allocation and network management | |
US8745180B2 (en) | Method for dynamically adjusting network parameters of a mobile terminal browser and mobile terminal | |
CN104754073A (en) | Resource access method and device | |
US9058402B2 (en) | Chronological-progression access prioritization | |
US20150082151A1 (en) | Page display method and device | |
EP2913767A1 (en) | Page processing method, apparatus and system | |
CN106599239A (en) | Webpage content data acquisition method and server | |
US8495171B1 (en) | Indiscriminate virtual containers for prioritized content-object distribution | |
CN109992406B (en) | Picture request method, picture request response method and client | |
CN101996206A (en) | Method, device and system for displaying web page | |
US10742763B2 (en) | Data limit aware content rendering | |
US20160055135A1 (en) | Method and apparatus for reducing page load time in communication system | |
US10467790B2 (en) | On-demand image spriting | |
CN104468807A (en) | Processing method, cloud end device, local devices and system for webpage cache | |
US20130103704A1 (en) | Javascript reductor | |
US20200320154A1 (en) | A webpage loading method, webpage loading system and server | |
US9633217B2 (en) | Indiscriminate virtual containers for prioritized content-object distribution | |
CN118820625A (en) | Image processing method and related equipment | |
Dutta et al. | Caching to reduce mobile app energy consumption | |
CA3150383A1 (en) | Web acceleration via learning | |
CN117376133A (en) | Flow fusion cloud acceleration method and platform based on machine learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20100512 |