Invention content
In view of above-mentioned, the present invention provides a kind of Web page picture enhanced processing sides based on mobile terminal/server architecture
Method and Web page picture enhanced processing system, in the Web page picture enlargement processing method, mobile terminal (that is, mobile terminal) is in
Turn server and sends being asked with relevant device parameter and target webpage picture is shown for the mobile terminal, transfer server root
Target webpage picture is obtained from destination server, and according to the request of target webpage picture based on being received and shown relevant equipment
Parameter determines picture target size when target webpage picture is shown on mobile terminals.Then, mobile terminal is according to from transfer
The target webpage picture and picture target size that server receives draw amplified target webpage picture.Using this method,
May be implemented will not increase picture while increasing Web page picture size, improving page composition effect and user's operation experience passes
Defeated flow.Further, it is also possible to different Web page picture amplification factors be calculated according to different device parameters, so as to compatibility
In a variety of mobile devices.
According to an aspect of the invention, there is provided a kind of Web page picture enlargement processing method by mobile terminal execution,
Including:The mobile terminal is sent to transfer service with relevant device parameter information and the request of target webpage picture is shown
Device;The mesh that target webpage picture and the target webpage picture are shown on the mobile terminal is received from the transfer server
Dimensioning;And based on the target webpage picture received and target size, amplified mesh is drawn on the mobile terminal
Mark Web page picture, wherein the target webpage picture is the transfer server based on the target received from the mobile terminal
Web page picture request is obtained from the destination server and target size be the transfer server based on received with
Show that relevant device parameter information is calculated according to pre-defined algorithm.
In addition, in one or more embodiments of the present invention, it is described to be wrapped with relevant device parameter information is shown
Include resolution ratio, default font size, physical size and/or per inch pixel.
In addition, in one or more embodiments of the present invention, it can to the drafting of the amplified target webpage picture
To be drawn out using picture interpolation algorithm.
According to another aspect of the present invention, a kind of Web page picture enhanced processing side executed by transfer server is provided
Method, including:It, will be in the mobile terminal from destination server acquisition based on the target webpage picture request received from mobile terminal
The target webpage picture of upper display;Based on being received from the mobile terminal and showing relevant device parameter information, according to pre-
Determine algorithm and calculates the target size that the target webpage picture is shown on the mobile terminal;And by the target webpage figure
Piece and the target size are sent to the mobile terminal.
According to another aspect of the present invention, a kind of Web page picture enlargement processing method is provided, including:Mobile terminal is by institute
That states mobile terminal is sent to transfer server with relevant device parameter information and the request of target webpage picture is shown;Transfer takes
Business device will be in the mobile terminal from destination server acquisition based on the target webpage picture request received from the mobile terminal
The target webpage picture of upper display, and based on being received from the mobile terminal and showing relevant device parameter information, press
The target size that the target webpage picture is shown on the mobile terminal is calculated according to pre-defined algorithm;And the mobile terminal
Based on the target webpage picture and target size received from the transfer server, draw on the mobile terminal amplified
Target webpage picture.
According to another aspect of the present invention, a kind of mobile terminal is provided, including:First transmission unit, being used for will be described
Mobile terminal is sent to transfer server with relevant device parameter information and the request of target webpage picture is shown;First receives
Unit, for being shown on the mobile terminal from transfer server reception target webpage picture and the target webpage picture
The target size shown;And drawing unit, for based on the target webpage picture received and target size, it is described it is mobile eventually
Amplified target webpage picture is drawn on end, wherein the target webpage picture is that the transfer server is based on from described
The target size that the target webpage picture request that mobile terminal receives is obtained from destination server and described is the transfer clothes
Business device is based on being received and shown that relevant device parameter information is calculated according to pre-defined algorithm.
In addition, in one or more embodiments of the present invention, it is described to be wrapped with relevant device parameter information is shown
Include resolution ratio, default font size, physical size and/or per inch pixel.
In addition, in one or more embodiments of the present invention, it can to the drafting of the amplified target webpage picture
To be drawn out using picture interpolation algorithm.
According to another aspect of the present invention, a kind of transfer server is provided, including:Second receiving unit is used for from shifting
Dynamic terminal receive the request of target webpage picture and the mobile terminal with show relevant device parameter information;Target webpage
Picture acquiring unit, for based on the target webpage picture request received from mobile terminal, being obtained from destination server will be in institute
State the target webpage picture shown on mobile terminal;Computing unit, for based on is received from the mobile terminal and show phase
The device parameter information of pass calculates the target ruler that the target webpage picture is shown on the mobile terminal according to pre-defined algorithm
It is very little;And second transmission unit, for the target webpage picture and the target size to be sent to the mobile terminal.
According to another aspect of the present invention, a kind of picture enhanced processing system is provided, including:It is as described above mobile whole
End;And transfer server as described above.
To the accomplishment of the foregoing and related purposes, one or more aspects of the present invention include be particularly described below and
The feature particularly pointed out in claim.Certain illustrative aspects of the invention is described in detail in the following description and the annexed drawings.
However, these aspects indicate only usable some of the various ways in the principles of the present invention.In addition, of the invention
It is intended to include all such aspects and their equivalent.
Specific implementation mode
Various aspects of the disclosure is described below.It is to be understood that teaching herein can have in the form of varied
Body embodies, and any concrete structure disclosed herein, function or both are only representative.Religion based on this paper
Lead, those skilled in the art it is to be understood that one aspect disclosed herein can be realized independently of any other aspect,
And two or more aspects in these aspects can combine in various manners.It is, for example, possible to use described in this paper
Any number of aspect, realization device or puts into practice method.Further, it is possible to use other structures, function or in addition to described here
One or more aspects except or be not one or more aspects described herein structure and function, realize this device
Or put into practice this method.In addition, any aspect described herein may include at least one element of claim.
Each embodiment of the present invention is described below with reference to accompanying drawings.
Fig. 1 shows the stream of the Web page picture enlargement processing method according to the present invention based on user terminal/server framework
Cheng Tu.Client described here is also referred to as mobile terminal or mobile device.
When mobile terminal needs the Web page picture on browsing objective server, as shown in Figure 1, first, in step S110,
The mobile terminal is sent to transfer server with relevant device parameter information and the request of target webpage picture is shown.It is described
Destination server refers to the server for providing web page contents, the i.e. web content server of content supplier.It is described with
Show that relevant device parameter information for example may include the resolution ratio, the font size of acquiescence, object of the display screen of mobile terminal
Manage size and/or per inch pixel (DPI).
After receiving device parameter information and the request of target webpage picture, in step S120, transfer server will be connect
The target webpage picture request of receipts is forwarded to destination server to ask the target webpage picture to show on mobile terminals.?
After receiving the request of target webpage picture, in step S130, destination server is based on target webpage picture acquisition request institute
The target webpage picture of request, and requested target webpage picture is returned into transfer server.
Then, in step S140, transfer server from the mobile terminal based on receiving and show that relevant equipment is joined
Number information, the target size that the target webpage picture is shown on the mobile terminal is calculated according to pre-defined algorithm.Specifically,
The amplification factor of the target webpage picture is calculated first with the pre-defined algorithm, then according to the calculated times magnification
Number amplifies the size of the target webpage picture to calculate target size.The pre-defined algorithm can specifically be set as needed
Meter, for example, the pre-defined algorithm can be using the device parameter as the function of independent variable, the expression formula of the function can need
Specifically set.As an example, the form of the function can be f (device parameter)=device parameter value/16.
After calculating target size, in step S150, transfer server is by the target webpage picture and the meter
The target size of calculating returns to mobile terminal.Then, in step S160, mobile terminal is based on receiving from the transfer server
Target webpage picture and target size, draw amplified target webpage picture on the mobile terminal to be shown.
For example, as an example, the target webpage picture and target size can be based on mobile terminals, using picture interpolation
Algorithm is by the target webpage picture interpolation amplification to target size.Certainly, it in the other examples of the present invention, can also adopt
With other suitable methods, the target webpage picture is amplified to the target size.
As above it is the general stream of the Web page picture enlargement processing method according to the present invention based on user terminal/server framework
Journey illustrates Web page picture enlargement processing method according to the present invention below with reference to two specific examples.
Example 1
In example 1, user is accessed using the mobile phone of model Samsung i9000www.sina.com.cnOn webpage
Pictorial information.The mobile phone of the model with show that relevant device parameter information is as shown in table 1 below.
Table 1
In this case, used pre-defined algorithm is assumed amplification factor=acquiescence when calculating the target size
Font size/16.According to above-mentioned algorithm, the picture amplification factor on Samsung i9000 is 28/16=1.75.Work as client as a result,
When asking the picture of a 10*10 in www.sina.com.cn, transfer server will amplify the dimension of picture after 1.75 times
17.5*17.5 returning to client.Finally, client draws the picture using interpolation algorithm in the region of 17.5*17.5.
Example 2
In example 2, user is accessed using the mobile phone of model Nokia 5800www.sina.com.cnOn webpage
Picture.The mobile phone of the model with show that relevant device parameter information is as shown in table 2 below.
Table 2
In this case, when calculating the target size used pre-defined algorithm be equally assumed amplification factor=
Default font size/16.According to above-mentioned algorithm, the picture amplification factor on Nokia 5800 is 24/16=1.5.Work as visitor as a result,
When the picture of a 10*10 in www.sina.com.cn is asked at family end, transfer server will amplify the picture ruler after 1.5 times
Very little 15*15 returns to client.Finally, client draws the picture using interpolation algorithm in the region of 15*15.
As above what is illustrated is only two specific examples according to an embodiment of the invention.Those skilled in the art should
It is realized that other than the target size using default font size to determine Target Photo, resolution ratio, object can also be used
Size or DPI information are managed to carry out the determination of target size.It is exemplified below using resolution ratio, DPI information and physical size into
The example that row target size determines.
1, the situation of target size determination is carried out using resolution ratio:User is visiting using the mobile phone of model Samsung i9000
It asks3g.sina.com.cnOn Web page picture information.The mobile phone of the model with show relevant device parameter information such as following table
Shown in 1.
Table 1
In addition, in 3g.sina.com.cn source codes
<Meta name=" MobileOptimized " content=" 240 "/>It is for 240 width to specify the page
Screen design.In this case, server calculates picture times magnification according to the wide resolution ratio 480 of screen of i9000 mobile phones
Number=480/240=2 (again)
As a result, when the picture of a 10*10 in client request 3g.sina.com.cn, transfer server will amplify
Dimension of picture 20*20 after 2 times returns to client.Finally, client is drawn in the region of 20*20 using interpolation algorithm and is somebody's turn to do
Picture.
2, the situation of target size determination is carried out using DPI information:
Part mobile phone can get the dpi values of screen, such as following table by routine interface at present:
3.2 mobile phone screens are classified and the correspondence of pixel density is as shown in table 1:
It is assumed here that acquiescence dpi is 120;Equally illustrated by taking i9000 as an example.The relevant parameter of i9000 such as following table institute
Show.
In this case, server is according to the dpi 233 of i9000 mobile phones, can calculate picture amplification factor=
233/120 ≈ 2 (again)
3, the situation of target size determination is carried out using physical size:
For the mobile phone that physical size can not be directly acquired by routine interface, can be obtained by calculating:
Physical size=resolution ratio/dpi (inch)
Here, it can be assumed that an acquiescence physical size=240/120=2 (inch)
Equally illustrated by taking i9000 as an example.
In this case, i9000 physical sizes=480/120=4 (inch) is calculated.Server is according to i9000 hands
4 inches of the physical size of machine can calculate picture amplification factor=4/2=2 (again)
The Web page picture enhanced processing according to the present invention based on user terminal/server framework is described above with reference to Fig. 1
Method.The above-mentioned Web page picture enlargement processing method of the present invention, may be used software realization, can also use hardware realization, or
It is realized by the way of software and hardware combination.
Fig. 2 shows the block diagram of mobile terminal 100 according to the present invention, Fig. 3 show it is according to the present invention in
Turn the block diagram of server 200;And Fig. 4 shows the box of Web page picture enhanced processing system 10 according to the present invention
Schematic diagram.
As shown in Fig. 2, other than the common function of mobile terminal, mobile terminal 100 further includes the first transmission unit
110, the first receiving unit 120 and drawing unit 130.
First transmission unit 110 be used for by the mobile terminal 100 with show relevant device parameter information and
The request of target webpage picture is sent to transfer server 200.It is described for example to may include with relevant device parameter information is shown
The resolution ratio of the display screen of mobile terminal, the font size of acquiescence, physical size and/or per inch pixel (DPI).
First receiving unit 120 is used to receive target webpage picture and the target webpage from the transfer server 200
The target size that picture is shown on the mobile terminal.Here, the target webpage picture is 200 base of the transfer server
It is institute to ask the target size obtained from destination server and described in the target webpage picture received from the mobile terminal
Transfer server is stated based on being received and shown that relevant device parameter information is calculated according to pre-defined algorithm.
The drawing unit 130 is used for based on the target webpage picture received and target size, in the mobile terminal
It is upper to draw amplified target webpage picture.For example, as an example, the target webpage can be based on mobile terminals
Picture and target size, using picture interpolation algorithm by the target webpage picture interpolation amplification to target size.Certainly, exist
In the other examples of the present invention, other suitable methods can also be used, the target webpage picture is amplified to the target
Size.
Transfer server 200 shown in Fig. 3 include the second receiving unit 210, target webpage picture acquiring unit 220,
Computing unit 230 and the second transmission unit 240.
Second receiving unit 210 receives the request of target webpage picture and mobile terminal 100 from mobile terminal 100
With the relevant device parameter information of display.Then, target webpage picture acquiring unit 220 is based on receiving from mobile terminal 100
Target webpage picture is asked, and the target webpage picture to be shown on the mobile terminal 100 is obtained from destination server.
After obtaining device parameter information and target webpage picture, computing unit 230 is based on from the mobile terminal 100
Receive with show relevant device parameter information, calculate the target webpage picture in the mobile terminal according to pre-defined algorithm
The target size of upper display.Then, the target webpage picture and the target size are sent to by the second transmission unit 240
The mobile terminal 100.
Fig. 4 shows the block diagram of Web page picture enhanced processing system 10 according to the present invention.As shown in figure 4, institute
It includes transfer server shown in mobile terminal 100 shown in Figure 2 and Fig. 3 to state Web page picture enhanced processing system 10
200.It will be apparent that the mobile terminal 100 and transfer server 200 in Figure 10 are also included within without departing substantially from the scope of the present invention and essence
The various modifications made under god.
Using Web page picture enlargement processing method according to the present invention and Web page picture enhanced processing system, due to being based on
The device parameter of mobile terminal calculates the amplified target size of target webpage picture in transfer server, and to movement
Terminal only transmits the original object Web page picture obtained from destination server and needs to show on mobile terminals when transmitting
Target size, be then amplified on mobile terminals based on target size, it is amplified thus without that will have already passed through
Target webpage picture is transmitted to mobile terminal, so as to realize increase Web page picture size, improve page composition effect and
In the case that user's operation is experienced, picture transfer flow will not be increased, therefore save on the communication cost of user.Also, due to from
The data volume that transfer server is downloaded is small, so as to save stand-by period when user watches picture, thus promotes user's body
It tests.
In addition, using Web page picture enlargement processing method according to the present invention, it can also be according to different device parameter meters
Different Web page picture amplification factors is calculated, so as to be compatible with a variety of mobile devices.
In addition, typically, mobile terminal of the present invention can be various hand-held terminal devices, such as mobile phone, a number
Word assistant (PDA) etc., therefore protection scope of the present invention should not limit as certain certain types of mobile terminal.
In addition, being also implemented as the computer program executed by CPU according to the method for the present invention.In the computer journey
When sequence is executed by CPU, the above-mentioned function of being limited in the method for the present invention is executed.
In addition, above method step and system unit can also utilize controller (for example, processor) and for depositing
Storage is so that controller realizes that the computer readable storage devices of the computer program of above-mentioned steps or Elementary Function are realized.
In addition, it should be appreciated that computer readable storage devices (for example, memory) as described herein can be volatile
Property memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory.As example
And not restrictive, nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable to son
ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access
Memory (RAM), the RAM can serve as external cache.As an example and not restrictive, RAM can be with more
Kind form obtains, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM
(DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and directly Rambus RAM (DRRAM).
The storage device of disclosed aspect is intended to the memory of including but not limited to these and other suitable type.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein
Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.It is hard in order to clearly demonstrate
This interchangeability of part and software, with regard to various exemplary components, square, module, circuit and step function to its into
General description is gone.This function is implemented as software and is also implemented as hardware depending on concrete application and application
To the design constraint of whole system.Those skilled in the art can in various ways realize described for each concrete application
Function, but this realization decision should not be interpreted as causing a departure from the scope of the present.
Various illustrative logical blocks, module and circuit in conjunction with described in disclosure herein can be utilized and be designed to
The following component of function described here is executed to realize or execute:General processor, digital signal processor (DSP), special collection
At circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, divide
Any combinations of vertical hardware component or these components.General processor can be microprocessor, but alternatively, processing
Device can be any conventional processors, controller, microcontroller or state machine.Processor can also be implemented as computing device
Combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors combination DSP core or any
Other this configurations.
The step of method in conjunction with described in disclosure herein or algorithm, can be directly contained in hardware, be held by processor
In capable software module or in combination of the two.Software module may reside within RAM memory, flash memory, ROM storages
Device, eprom memory, eeprom memory, register, hard disk, removable disk, CD-ROM or known in the art it is any its
In the storage medium of its form.Illustrative storage medium is coupled to processor so that processor can be from the storage medium
Information is written to the storage medium in middle reading information.In an alternative, the storage medium can be with processor collection
At together.Pocessor and storage media may reside in ASIC.ASIC may reside in user terminal.It is replaced at one
In scheme, pocessor and storage media can be used as discrete assembly resident in the user terminal.
In one or more exemplary designs, the function can be real in hardware, software, firmware or its arbitrary combination
It is existing.If realized in software, can be stored in using the function as one or more instruction or code computer-readable
It is transmitted on medium or by computer-readable medium.Computer-readable medium includes computer storage media and communication media,
The communication media includes any medium for helping computer program being transmitted to another position from a position.Storage medium
It can be any usable medium that can be accessed by a general purpose or special purpose computer.As an example and not restrictive, the computer
Readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage equipment or other magnetic
Property storage device, or can be used for carry or storage form be instruct or data structure required program code and can
Any other medium accessed by general or specialized computer or general or specialized processor.In addition, any connection can
It is properly termed as computer-readable medium.For example, if using coaxial cable, optical fiber cable, twisted-pair feeder, digital subscriber line
(DSL) or such as wireless technology of infrared ray, radio and microwave to send software from website, server or other remote sources,
Then the wireless technology of above-mentioned coaxial cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared elder generations, radio and microwave is included in
The definition of medium.As used herein, disk and CD include compact disk (CD), laser disk, CD, digital versatile disc
(DVD), floppy disk, Blu-ray disc, wherein disk usually magnetically reproduce data, and CD using laser optics reproduce data.On
The combination for stating content should also be as being included in the range of computer-readable medium.
Although content disclosed above shows exemplary embodiment of the present invention, it should be noted that without departing substantially from power
Under the premise of profit requires the scope of the present invention limited, it may be many modifications and change.It is real according to invention described herein
The function, step and/or action for applying the claim to a method of example are not required to execute with any particular order.In addition, although the present invention
Element can describe or require in the form of individual, be unless explicitly limited odd number it is also contemplated that multiple.
Although describing each embodiment according to the present invention above with reference to figure to be described, people in the art
Member can also do it should be appreciated that each embodiment proposed to aforementioned present invention on the basis of not departing from the content of present invention
Go out various improvement.Therefore, protection scope of the present invention should be determined by the content of appended claims.