CN106210135A - Picture resource download process method, terminal and Resource Server - Google Patents
Picture resource download process method, terminal and Resource Server Download PDFInfo
- Publication number
- CN106210135A CN106210135A CN201610729926.3A CN201610729926A CN106210135A CN 106210135 A CN106210135 A CN 106210135A CN 201610729926 A CN201610729926 A CN 201610729926A CN 106210135 A CN106210135 A CN 106210135A
- Authority
- CN
- China
- Prior art keywords
- picture
- resource
- transcoding
- server
- resource server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- 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/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- 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/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Abstract
Embodiments provide a kind of picture resource download process method, terminal and Resource Server.In the method, in terminal unit, browser is after obtaining the primary resource of Website server, the URL information of wherein picture resource is reported Resource Server, so that Resource Server obtains this picture and is compressed returning again to browser to this picture.The picture resource that now browser gets is the picture resource after Resource Server compression, and therefore, the method using the embodiment of the present invention to provide can be effectively improved browser and obtain the speed of picture resource, alleviates the burden of browser.And owing to the interaction time between browser and Resource Server is the shortest, therefore when user browses webpage, browser almost can show literal resource and picture resource, so that the viewing experience of user is effectively promoted simultaneously.
Description
Technical field
The present embodiments relate to Internet technical field, particularly relate to a kind of picture resource download process method, terminal
And Resource Server.
Background technology
Along with progress and the increase of the income of residents of information technology, the popularity rate of intelligent terminal is greatly improved.Current intelligence
Terminal can support increasing function so that people can use intelligent terminal to carry out operation miscellaneous.Wherein,
By the browser access webpage in intelligent terminal, it it is one of people's conventional means obtaining Various types of data.People only need to be clear
Looking at and input the network address of webpage to be visited in the search column of device, browser just can access this web page contents of issue by mobile network
Website server so that people can browse the content of this Homepage Publishing by browser.
In prior art, the browser in terminal unit is when obtaining the web page contents that Website server is issued, the most all
It is directly to obtain the resource on this webpage.Specifically, when obtaining picture resource, according to the URL (Uniform of picture
Resource Locator: URL) information directly obtains this picture resource.
But, during realizing the embodiment of the present invention, inventor finds, when picture resource to be obtained is excessive, adopts
The time obtained can be caused longer by the method for above-mentioned direct acquisition picture resource, so that browser is at display literal resource
Need can show through after a while picture resource afterwards so that the heavy load of browser.And when browser place
When intelligent terminal accesses Website server by mobile cellular network (such as 3G, 4G network), said method is used to also result in
Intelligent terminal consumes more flow.
Summary of the invention
The embodiment of the present invention provides a kind of picture resource download process method, terminal, Resource Server, existing in order to solve
In technology, browser obtains picture resource time longer defect.
First aspect, the embodiment of the present invention provides a kind of picture resource download process method, including:
Receiving the primary resource of webpage to be visited, described primary resource includes the URL information of the picture that described webpage includes;
The URL information of described picture is sent to Resource Server, for described Resource Server according to described URL information
Obtain described picture, and be compressed described picture processing, it is thus achieved that the picture after process;
Receive the picture after the described process that described Resource Server sends, and show in described webpage to be visited.
Alternatively, described be compressed described picture processes, it is thus achieved that the picture after process includes: carry out described picture
Transcoding processes, it is thus achieved that the picture after transcoding;
Picture after the described process that the described Resource Server of described reception sends, and show in described webpage to be visited
Including: receive and decode the picture after the described transcoding that described Resource Server sends, and show in described webpage to be visited.
Alternatively, the form of the picture after described transcoding is WebP form.
Alternatively, while the described URL information by described picture is sent to Resource Server, described method also includes:
Current network connection state information is reported to described Resource Server;
Correspondingly, described be compressed described picture processes, it is thus achieved that the picture after process includes:
According to described network connection state information, the compression that described picture carries out correspondence processes, it is thus achieved that the figure after process
Sheet.
Second aspect, the embodiment of the present invention also provides for another kind of picture resource download process method, including:
Receiving the URL information of the picture that terminal sends, the URL information of described picture is that described terminal is sent out at Website server
The primary resource of the webpage to be visited sent gets;
Obtain described picture according to described URL information, and be compressed described picture processing, it is thus achieved that the figure after process
Sheet;
Picture after described terminal returns described process.
Alternatively, described be compressed described picture processes, it is thus achieved that the picture after process includes: carry out described picture
Transcoding processes, it is thus achieved that the picture after transcoding.
Alternatively, the form of the picture after described transcoding is WebP form.
Alternatively, described method also includes:
Receive the current network connection state information of described terminal to report;
Correspondingly, described be compressed described picture processes, it is thus achieved that the picture after process includes:
According to described network connection state information, the compression that described picture carries out correspondence processes, it is thus achieved that the figure after process
Sheet.
The third aspect, the embodiment of the present invention also provides for a kind of terminal, including:
First receives unit, and for receiving the primary resource of webpage to be visited, described primary resource includes that described webpage includes
The URL information of picture;
First transmitting element, for being sent to Resource Server by the URL information of described picture, for described resource service
Device obtains described picture according to described URL information, and is compressed described picture processing, it is thus achieved that the picture after process;
Described first receives unit, is additionally operable to the picture after receiving the described process that described Resource Server sends;
Processing unit, for showing the picture after described process in described webpage to be visited.
Alternatively, described first receives unit, after being additionally operable to receive and decode the transcoding that described Resource Server sends
Picture, the picture after wherein said transcoding is the figure that described picture is carried out obtaining after transcoding process by described Resource Server
Sheet;
Described processing unit, is additionally operable to be decoded the picture after described transcoding, and shows at described webpage to be visited
In.
Alternatively, the form of the picture after described transcoding is WebP form.
Alternatively, described first transmitting element, while the URL information of picture is sent to Resource Server, also use
In reporting current network connection state information to described Resource Server, so that described Resource Server is according to described network even
Connecing status information, the compression that described picture carries out correspondence processes, it is thus achieved that the picture after process.
Fourth aspect, the embodiment of the present invention also provides for a kind of Resource Server, including:
Receiving unit, for receiving the URL information of the picture that terminal sends, the URL information of described picture is described terminal
The primary resource of the webpage to be visited of Website server transmission gets;
Compression unit, for obtaining described picture according to described URL information, and is compressed described picture processing, obtains
Picture after must processing;
Transmitting element, the picture after returning described process to described terminal.
Alternatively, described compression unit, it is additionally operable to described picture is carried out transcoding process, it is thus achieved that the picture after transcoding.
Alternatively, the form of the picture after described transcoding is WebP form.
Alternatively, described reception unit, it is additionally operable to receive the current network connection state information of described terminal to report;
Described compression unit, is additionally operable to, according to described network connection state information, described picture carry out the compression of correspondence
Process, it is thus achieved that the picture after process.
In the picture resource download process method that the embodiment of the present invention provides, in terminal unit, browser is obtaining website clothes
After the primary resource of business device, the URL information of wherein picture resource is reported Resource Server, be somebody's turn to do so that Resource Server obtains
This picture also is compressed returning again to browser by picture.The picture resource that now browser gets is Resource Server pressure
Picture resource after contracting, therefore, the method using the embodiment of the present invention to provide can be effectively improved browser and obtain picture money
The speed in source, alleviates the burden of browser.And owing to the interaction time between browser and Resource Server is the shortest, therefore exist
When user browses webpage, browser almost can show literal resource and picture resource simultaneously, so that user's browses body
Test and effectively promoted.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is this
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to root
Other accompanying drawing is obtained according to these accompanying drawings.
A kind of picture resource download process embodiment of the method flow chart that Fig. 1 provides for the present invention;
Fig. 2 is a kind of concrete picture resource download process embodiment of the method flow chart of the method shown in Fig. 1;
Another picture resource download process embodiment of the method flow chart that Fig. 3 provides for the present invention;
Fig. 4 is a kind of concrete picture resource download process embodiment of the method flow chart of the method shown in Fig. 3;
Another concrete picture resource download process embodiment of the method flow chart of method shown in Fig. 5 Fig. 1;
The terminal example structure block diagram that Fig. 6 provides for the present invention;
The Resource Server example structure block diagram that Fig. 7 provides for the present invention;
A kind of picture resource downloading processing system example structure block diagram that Fig. 8 provides for the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
First aspect, embodiments provides a kind of picture resource download process method, as it is shown in figure 1, include:
S101, receiving the primary resource of webpage to be visited, this primary resource includes the URL information of the picture that webpage includes;
Specifically, when user trigger browser carry out web page access operation time, browser client in terminal is (following
It is called for short browser) can be according to the network address of webpage to be visited by network and the corresponding Website server issuing this web page contents
Set up and connect, now, the primary resource of the webpage to be visited that this Website server can send to browser.Wherein, this primary resource
Can include the pictorial information comprised in webpage, the URL information being specifically as follows picture (can be understood as the chain of picture resource
Connect).Can also include other resources, such as literal resource, animation resource etc., this is the most specifically limited by the embodiment of the present invention
Fixed.
S102, the URL information of picture is sent to Resource Server, obtains figure for Resource Server according to URL information
Sheet, and be compressed picture processing, it is thus achieved that the picture after process;
Specifically, after the picture URL information comprised in browser obtains primary resource, will not be directly according to this URL
Acquisition of information image content, but by the URL information of this picture by terminal to report to Resource Server, so that Resource Server
After obtaining this information, according to this picture resource of this acquisition of information.So that browser can get less figure
Sheet resource, now the picture resource got can be compressed by Resource Server, reduces the size of picture resource for clear
Device of looking at obtains.
It should be noted that Resource Server here is own server, also it is for providing under picture resource
Load processes the internal proprietary server of function.This Resource Server obtains the process of web page resources at browser from Website server
In serve as the role of third-party server, it is possible to the burden obtaining picture resource is transferred to self, and picture resource is carried out
Compression.Owing to its picture returning to browser takes up room less, therefore so that browser obtains with speed faster
Picture resource.
Picture after the process that S103, reception Resource Server send, and show in webpage to be visited.
Specifically, after picture is compressed processing by Resource Server, can the picture after processing be sent to clear
Looking at device, this picture, after receiving picture resource, can be decompressed and be shown the correspondence at webpage to be visited by browser
Position browses for user.
In the picture resource download process method that the embodiment of the present invention provides, in terminal unit, browser is obtaining website clothes
After the primary resource of business device, the URL information of wherein picture resource is reported Resource Server, be somebody's turn to do so that Resource Server obtains
This picture also is compressed returning again to browser by picture.The picture resource that now browser gets is Resource Server pressure
Picture resource after contracting, therefore, the method using the embodiment of the present invention to provide can be effectively improved browser and obtain picture money
The speed in source, alleviates the burden of browser.And owing to the interaction time between browser and Resource Server is the shortest, therefore exist
When user browses webpage, browser almost can show literal resource and picture resource simultaneously, so that user's browses body
Test and effectively promoted.
On the basis of above-described embodiment, the embodiment of the present invention provides again a kind of preferably picture resource download process side
Method, as shown in Figure 2.Specifically include:
The primary resource of the webpage to be visited that S101, reception Website server send, this primary resource includes what webpage included
The URL information of picture;
The content of step S201 is consistent with the processing method of step S101 in above-described embodiment, and here is omitted.
S102a, the URL information of picture is sent to Resource Server, obtains figure for Resource Server according to URL information
Sheet, and picture is carried out transcoding process, it is thus achieved that the picture after transcoding;
Specifically, after the picture URL information comprised in browser obtains primary resource, by the URL information of this picture
By terminal to report to Resource Server.Resource Server, after obtaining this information, first obtains picture according to URL information
Resource, then picture resource is compressed.Wherein, compression here can be implemented in several ways, for example, it is possible to by picture
Resource is the less form that takes up room by the bigger format code transferring that takes up room, and obtains this picture resource for browser.
S102b, receive and decode the picture after the transcoding that Resource Server sends, and show in webpage to be visited.
Specifically, after browser picture after receiving transcoding, first identify the form that this picture is current, recall phase
The decoder answered is decoded, and is shown in the correspondence position of webpage to be visited by the picture after decoding.
In the method that the embodiment of the present invention provides, browser sends the URL information of picture to Resource Server, so that resource
Server obtains picture and also picture is carried out transcoding so that browser can obtain and take up room less and image content is undistorted
Picture resource so that browser can browse quality ensureing user on the premise of the quick figure in display web page contents
Sheet resource, promotes the reading experience of user.
In the specific implementation, the picture format before the transcoding in second embodiment of the method is more commonly used and is accounted for
With the bigger picture format in space, for example, it may be possible to be gif, JEPG, png etc..The form of the picture after transcoding can be WebP lattice
Formula, wherein, WebP form is a kind of picture format being intended to accelerate picture loading velocity of Google's exploitation, and picture compression volume is big
About only have the 2/3 of jpeg format picture size, and substantial amounts of server bandwidth resource and data space can be saved.Certainly, it is possible to
Think that other less forms, the present invention are not especially limited.
In the specific implementation, in above-mentioned two embodiment of the method, step S102 and step S102a are by the URL of picture
While information is sent to Resource Server, it is also possible to including:
Current network connection state information is reported, so that Resource Server is according to network connection state to Resource Server
Information, the compression that picture carries out correspondence processes, it is thus achieved that the picture after process.
Wherein, corresponding compression here process can according to different network connection state information (as connected 3G net
Network, 4G network or WIFI) compression that picture carries out different definition processes.Advantage of this is that, do not access user
During WIFI, Resource Server can be by picture compression to the least, and therefore, browser only need to consume less flow and just can obtain
Picture.Although additionally, the picture clarity after Ya Suo can decline, but such decline is for browsing the user of this picture
For with compression before picture do not have the biggest difference.Therefore, according to different network environments, picture is carried out difference clearly
The compression of degree does not the most affect the normal browsing of user, it is possible to meet the reading requirement of user.
Second aspect, the embodiment of the present invention additionally provides a kind of picture resource download process method, as it is shown on figure 3, include:
The URL information of the picture that S301, reception terminal send, the URL information of picture is that terminal sends at Website server
Webpage to be visited primary resource in get;
Specifically, when user triggers web page access operation, the browser in terminal can obtain Website server and send
The primary resource of webpage to be visited.Afterwards, Resource Server can receive the URL information of the picture sent by browser.Wherein,
The URL information of this picture is to obtain from the primary resource that browser obtains.It is understood that primary resource here is all right
Including other resources, such as literal resource or animation resource, this is not especially limited by the embodiment of the present invention.
S302, according to URL information obtain picture, and to state picture be compressed process, it is thus achieved that the picture after process;
Specifically, Resource Server is obtaining URL information, according to this picture resource of this acquisition of information.After acquisition,
The picture resource got can be compressed by Resource Server, and browser obtains the picture the taking up room less money after compression
Source.
S303, to terminal return process after picture.
Specifically, after Resource Server is by picture compression, will to the picture after browser quickly returns compression,
To enable the browser to show the picture got in time, improve the reading experience of user.
In the picture resource download process method that the embodiment of the present invention provides, Resource Server is own server, also
It is the internal proprietary server for providing picture resource download process function.This Resource Server takes from website at browser
Business device serves as the role of third-party server during obtaining web page resources.Resource Server is receiving what browser sent
After URL information, meeting is according to this acquisition of information picture and is compressed picture returning again to browser so that browser obtains figure
The speed of sheet resource is effectively improved.Additionally, the method using the present embodiment to provide can will obtain picture and compression
The task transfer of picture is completed to Resource Server end by browser so that browser becomes a lighter client, has
Effect alleviates the burden of browser, so that the performance boost of browser.
On the basis of said method embodiment, the embodiment of the present invention additionally provides a kind of picture resource download process side
Method, specifically includes as shown in Figure 4:
The URL information of the picture that S301, reception terminal send, the URL information of picture is that terminal sends at Website server
Webpage to be visited primary resource in get;
Owing to step S301 has been described in detail by a upper embodiment, do not repeat them here.
S302a, obtain picture according to URL information, and picture is carried out transcoding process, it is thus achieved that the picture after transcoding;
Specifically, Resource Server obtains picture according to URL information, and by this picture by the bigger coding that takes up room
Form is converted to the less coded format that takes up room.Further, the picture format before transcoding may be gif, JEPG, png
Deng bigger form, and the form of the picture after transcoding here can be WebP form.It is of course also possible to be the lattice that other are less
Formula, the present invention is not especially limited.
S303, to terminal return process after picture.
Owing to step S303 has been described in detail by a upper embodiment, also repeat no more at this.
It is understood that in the method for embodiment of the present invention offer, picture can be caused although picture is carried out transcoding
Certain loss, but these losses are not enough so that picture becomes distortion.For the user checking this picture, before checking transcoding
Picture with check transcoding after picture do not have what difference.Therefore, such transcoding can ensure that user is the most clear
On the premise of looking at, picture is effectively compressed, thus realizes quickly returning to browser the purpose of picture resource.
On the basis of said method embodiment, the embodiment of the present invention additionally provides a kind of picture resource download process side
Method, specifically includes as shown in Figure 5:
S301b, the URL information receiving the picture that terminal sends and the network connection state information that terminal is current, picture
The URL information webpage to be visited that to be terminal send at Website server primary resource in get;
Specifically, browser is while being sent to Resource Server by the URL information of picture, also to Resource Server
Send current network connection state information.The terminal at the specially browser place of network connection state information here currently connects
The information of the network connect.Such as, the network information that terminal currently connects can be 3G network, 4G network or WIFI etc..
S302b, according to URL information obtain picture and Soviet Union soho network connection state information, picture is carried out correspondence
Compression processes, thus obtains the picture after process;
Picture upon receiving such information, can be entered by Resource Server according to different network connection state information
The compression of the different definition of row.Such as, under current connection is 3G network state, after compression, the definition of picture can be
40% originally;Under current connection is 4G network state, after compression, the definition of picture can be original 60%;?
Current connection is under WIFI state, and after compression, the definition of picture can be original 100%.
S303, to terminal return process after picture.
Owing to step S303 has been described in detail by embodiment before, also repeat no more at this.
In the method that present example provides, when user does not access WIFI, Resource Server can be by picture compression
To the least, browser only need to consume less flow when obtaining picture and just can obtain.And the definition of this picture
Be fully able to meet user checks demand, does not affect browsing of user.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, as shown in Figure 6, including: first receive unit 401,
First transmitting element 402 and processing unit 403.
Wherein, first unit 401 is received for receiving the primary resource of the webpage to be visited that Website server sends, here
Primary resource includes the URL information of the picture comprised in webpage;First transmitting element 402 is for being sent to the URL information of picture
Resource Server, obtains picture for Resource Server according to URL information, and is compressed picture processing, it is thus achieved that after process
Picture;First receives unit 401 is additionally operable to the picture after receiving the process that Resource Server sends;Processing unit 403 is used for
Picture after processing shows in webpage to be visited.
Specifically, when user trigger browser carry out web page access operation time, first receive unit 401 obtains correspondence
The primary resource of the webpage to be visited that Website server sends.Wherein, primary resource here can include the picture comprised in webpage
Information, is specifically as follows the URL information of picture, it is also possible to include other resources, such as literal resource, animation resource etc..?
After first reception unit 401 obtains the picture URL information comprised in primary resource, the first transmitting element 402 is by the URL of this picture
Information passes through terminal to report to Resource Server.So that Resource Server is after obtaining this information, according to this acquisition of information
This picture resource.After picture is compressed processing by Resource Server, the picture after processing quickly can be returned, Jin Er
One receives unit 401 will receive the picture resource sent by Resource Server.Then, processing unit 403 is by this picture resource
Display browses for user in the correspondence position of webpage to be visited.
Wherein, Resource Server here is own server too, is also for providing picture resource to download
Process the internal proprietary server of function.The burden obtaining picture resource can be transferred to self by this Resource Server, and right
Picture resource is compressed.Therefore browser can be sentenced from Resource Server and take sky after speed faster obtains compression
Between less picture resource show this picture resource.
In the embodiment of the present invention, after first receives the primary resource that unit 401 obtains Website server, first sends list
The URL information of wherein picture resource is reported Resource Server, so that Resource Server obtains this picture and to this figure by unit 402
Sheet is compressed, and the first reception unit 401 receives the picture after the process that Resource Server sends again afterwards.Owing to compressing it
After picture take up room less, therefore obtain such picture resource compared to directly obtaining artwork sheet money according to URL information
The time that source is spent greatly reduces, thus is effectively improved browser and obtains the speed of picture resource, alleviates the burden of browser.
And owing to the interaction time between browser and Resource Server is the shortest, therefore when user browses webpage, browser is almost
Literal resource and picture resource can be shown, so that the viewing experience of user is effectively promoted simultaneously.
In the specific implementation, the Resource Server in a upper terminal embodiment picture is compressed process can be with many
The mode of kind realizes.Such as, Resource Server can be by carrying out transcoding process to picture, it is achieved the compression to picture resource,
Transcoding obtains the picture after transcoding after processing.So corresponding, first receives unit 401 may be used for receiving and decoding resource
Picture after the transcoding that server sends;Processing unit 403 may be used for being decoded the picture after transcoding, and show and treating
Access in webpage.
Specifically, after the first reception unit 401 obtains the picture URL information comprised in primary resource, first sends
Unit 402 by the URL information of this picture by terminal to report to Resource Server so that Resource Server obtain this information
Afterwards, first obtain picture resource according to URL information, then be less form fast by picture resource by bigger format code transferring
Speed passback.After first receives the unit 401 picture after receiving transcoding, first processing unit 403 identifies the lattice that this picture is current
Formula, recalls corresponding decoder and is decoded, and is shown in the correspondence position of webpage to be visited by the picture after decoding.
Advantage of this is that, browser can get the less and distortionless picture resource of image content that takes up room, it is thus possible to
Enough ensureing quickly to show on the premise of user browses quality the picture resource on webpage, effective reading experience promoting user.
Wherein, the picture format after Resource Server transcoding here can be WebP form.It is, of course, also possible to be
Other less forms that take up room, this is not especially limited by the embodiment of the present invention.
In the embodiment of above-mentioned terminal, the URL information of picture is being sent to Resource Server by the first transmitting element 402
While, it is also possible to report current network connection state information to Resource Server, so that Resource Server is according to network even
Connecing status information, the compression that picture carries out correspondence processes, it is thus achieved that the picture after process.Wherein, corresponding here compression processes
It is different clear that picture is carried out by network connection state information (as connected 3G network, 4G network or WIFI) different according to can
The process of clear degree.Advantage of this is that, when user does not access WIFI, Resource Server can be by picture compression to the greatest extent may be used
Can little so that first receive unit 401 obtain picture time only need to consume less flow.And the picture got
What definition was fully able to meet user checks demand, does not affect browsing of user.
Fourth aspect, the embodiment of the present invention additionally provides a kind of Resource Server, as it is shown in fig. 7, comprises: second receives list
Unit 501, compression unit 502 and the second transmitting element 503.
Wherein, second unit 501 is received for receiving the URL information of the picture that terminal sends;Wherein, the URL letter of picture
The primary resource of the webpage to be visited that breath is terminal to be sent at Website server gets;Compression unit 502 is for according to URL
Acquisition of information picture, and be compressed picture processing, it is thus achieved that the picture after process;Second transmitting element 503 is for terminal
Picture after return process.
Specifically, when user trigger browser obtain this Website server send webpage to be visited primary resource it
After, second receives unit 501 can receive the URL information of the picture sent by browser.Wherein, the URL information of this picture is
Obtain from the primary resource that browser obtains.It is understood that primary resource here can also include other resources, such as
Literal resource or animation resource.Second receives unit 501 according to this picture resource of this acquisition of information.After acquisition, compression is single
The picture resource got can be compressed by unit 502, quickly returns to browser finally by the second transmitting element 503, makes
The picture resource that gets of browser is the less and distortionless picture resource of content that takes up room, thus improve browser
Obtain and display speed, alleviate the burden of browser.
The Resource Server that the embodiment of the present invention provides is own server, is also for providing picture resource to download
Process the internal proprietary server of function.This Resource Server obtains during web page resources from Website server at browser
Serve as the role of third-party server.The second reception unit 501 in Resource Server receives the URL information that browser sends
After can according to this acquisition of information picture.Afterwards, picture can be compressed processing again by the second transmitting element by compression unit 502
503 return to browser so that browser can quick obtaining picture, be effectively improved the acquisition speed of browser.Additionally, use
The task of obtaining picture and compressed picture can be come to self by the Resource Server that the present embodiment provides by browser transitions
Complete so that browser can become a lighter client, effectively alleviates the burden of browser, so that browser
Performance has promoted.
In the specific implementation, in above-described embodiment, compression unit 502 can have multiple implementation for the compression of picture,
A kind of implementation therein specifically includes: compression unit 502 carries out transcoding process to picture, it is thus achieved that the picture after transcoding.
Specifically, second receives unit 501 obtains picture resource according to URL information, and afterwards, compression unit 502 should
Picture is converted to, by the bigger coded format that takes up room, the less coded format that takes up room.It is understood that to picture
Although carrying out transcoding picture can be caused certain loss, but these losses being not enough so that picture becomes distortion.For checking this figure
For the user of sheet, the picture before checking transcoding with check transcoding after picture do not have what difference.Therefore, such
Picture can be effectively compressed on the premise of ensureing user's normal browsing by transcoding, thus realizes quickly returning to browser
The purpose of picture resource.
Further, the picture format before transcoding may be the bigger form such as gif, JEPG, png, and after transcoding here
The form of picture can be WebP form.It is of course also possible to be the form that other are less, the present invention is not especially limited.
In the specific implementation, in the embodiment of above-mentioned Resource Server, second receives unit 501 is receiving terminal to report
Picture URL information while, it is also possible to receive the current network connection state information of terminal.Correspondingly, processing unit 502
The compression that picture according to the network connection state information received, can carry out correspondence processes, thus obtains the figure after process
Sheet.
Specifically, while the URL information of picture is sent to Resource Server by browser, it is also possible to resource service
Device sends current network connection state information.Wherein, network connection state information here is specially the end at browser place
The information of the current network connected of end.Such as, the network information that browser place terminal currently connects be 3G network, 5G network or
WIFI etc..After the second reception unit 501 receives this information, processing unit 502 can connect according to different networks
Status information carries out the compression of different definition to picture.Such as, under current connection is 3G network state, scheme after compression
The definition of sheet can be original 50%;Under current connection is 5G network state, after compression, the definition of picture can
Think original 60%;Under current connection is WIFI state, after compression, the definition of picture can be original
100%.Advantage of this is that, it is possible to when user does not access WIFI, Resource Server can be by picture compression to the greatest extent may be used
Can little so that browser obtain picture time only need to consume less flow.And the definition of the picture of browser acquisition is complete
Entirely disclosure satisfy that the demand of checking of user, thus promote Consumer's Experience on the premise of not affecting the browsing of user.
5th aspect, the embodiment of the present invention additionally provides a kind of picture resource downloading processing system, as shown in Figure 8, including
Terminal 601, Resource Server 602 and Website server 603.
Wherein, the terminal described in the embodiment that terminal 601 is the third aspect here, Resource Server 602 here
Resource Server described in embodiment for fourth aspect.
Specifically, when user triggers a certain webpage of access, terminal 601 sends to Website server 603 accordingly please
Asking, the primary resource of webpage can be returned to terminal 601 by Website server 603 after the requests have been received.Terminal 601 is obtaining this
After one primary resource, the URL information of the picture resource in primary resource is reported Resource Server 602.Resource Server 602
According to this picture resource of this acquisition of information and it is compressed so that terminal 601 can get from Resource Server 602
Take up room the less and distortionless picture resource of image content.Terminal 601 is after obtaining this picture resource, with literal resource
And other resources the most quickly show and browse for user in the correspondence position of webpage.
It should be noted that the terminal mentioned in the above-mentioned all embodiments of the present invention can be wearable smart machine, hands
Machine, panel computer, palm PC PDA or notebook etc., this is also not especially limited by the embodiment of the present invention.
Understandable, the illustration in above-described embodiment is only to facilitate be more fully understood that the embodiment of the present invention
The method or apparatus provided, can not constitute the concrete restriction to the present invention.And between each above-mentioned preferred implementation not
Can influence each other, the scheme obtained by combination in any between each preferred implementation all should fall into the protection model of the present invention
Enclose.
Device embodiment described above is only schematically, and the wherein said unit illustrated as separating component can
To be or to may not be physically separate, the parts shown as unit can be or may not be physics list
Unit, i.e. may be located at a place, or can also be distributed on multiple NE.Can be selected it according to the actual needs
In some or all of module realize the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, be i.e. appreciated that and implement.
Through the above description of the embodiments, those skilled in the art it can be understood that to each embodiment can
The mode adding required general hardware platform by software realizes, naturally it is also possible to pass through hardware.Based on such understanding, on
State the part that prior art contributes by technical scheme the most in other words to embody with the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers
Make with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs each and implements
The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although
With reference to previous embodiment, the present invention is described in detail, it will be understood by those within the art that: it still may be used
So that the technical scheme described in foregoing embodiments to be modified, or wherein portion of techniques feature is carried out equivalent;
And these amendment or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (16)
1. a picture resource download process method, it is characterised in that including:
Receiving the primary resource of webpage to be visited, described primary resource includes the URL information of the picture that described webpage includes;
The URL information of described picture is sent to Resource Server, obtains according to described URL information for described Resource Server
Described picture, and be compressed described picture processing, it is thus achieved that the picture after process;
Receive the picture after the described process that described Resource Server sends, and show in described webpage to be visited.
Method the most according to claim 1, it is characterised in that described be compressed described picture processes, it is thus achieved that process
After picture include: described picture is carried out transcoding process, it is thus achieved that the picture after transcoding;
Picture after the described process that the described Resource Server of described reception sends, and show bag in described webpage to be visited
Include: receive and decode the picture after the described transcoding that described Resource Server sends, and show in described webpage to be visited.
Method the most according to claim 2, it is characterised in that the form of the picture after described transcoding is WebP form.
4. according to the method according to any one of claim 1-3, it is characterised in that the described URL information by described picture is sent out
While giving Resource Server, described method also includes:
Current network connection state information is reported to described Resource Server;
Correspondingly, described be compressed described picture processes, it is thus achieved that the picture after process includes:
According to described network connection state information, the compression that described picture carries out correspondence processes, it is thus achieved that the picture after process.
5. a picture resource download process method, it is characterised in that including:
Receiving the URL information of the picture that terminal sends, the URL information of described picture is that described terminal is receiving webpage to be visited
Primary resource gets;
Obtain described picture according to described URL information, and be compressed described picture processing, it is thus achieved that the picture after process;
Picture after described terminal returns described process.
Method the most according to claim 5, it is characterised in that described be compressed described picture processes, it is thus achieved that process
After picture include:
Described picture is carried out transcoding process, it is thus achieved that the picture after transcoding.
Method the most according to claim 6, it is characterised in that the form of the picture after described transcoding is WebP form.
8. according to the method according to any one of claim 5-7, it is characterised in that described method also includes:
Receive the current network connection state information of described terminal to report;
Correspondingly, described be compressed described picture processes, it is thus achieved that the picture after process includes:
According to described network connection state information, the compression that described picture carries out correspondence processes, it is thus achieved that the picture after process.
9. a terminal, it is characterised in that including:
First receives unit, and for receiving the primary resource of the webpage to be visited that Website server sends, described primary resource includes institute
State the URL information of the picture that webpage includes;
First transmitting element, for being sent to Resource Server by the URL information of described picture, for described Resource Server root
Obtain described picture according to described URL information, and be compressed described picture processing, it is thus achieved that the picture after process;
Described first receives unit, is additionally operable to the picture after receiving the described process that described Resource Server sends;
Processing unit, for showing the picture after described process in described webpage to be visited.
Terminal the most according to claim 9, it is characterised in that
Described first receives unit, is additionally operable to the picture after receiving and decode the transcoding that described Resource Server sends, Qi Zhongsuo
Stating the picture after transcoding is the picture that described picture is carried out obtaining after transcoding process by described Resource Server;
Described processing unit, is additionally operable to be decoded the picture after described transcoding, and shows in described webpage to be visited.
11. terminals according to claim 10, it is characterised in that the form of the picture after described transcoding is WebP form.
12. according to the terminal according to any one of claim 9-11, it is characterised in that
Described first transmitting element, while the URL information of picture is sent to Resource Server, is additionally operable to described resource
Server reports current network connection state information, so that described Resource Server is according to described network connection state information,
The compression that described picture carries out correspondence processes, it is thus achieved that the picture after process.
13. 1 kinds of Resource Servers, it is characterised in that including:
Second receives unit, and for receiving the URL information of the picture that terminal sends, the URL information of described picture is described terminal
The primary resource of the webpage to be visited of Website server transmission gets;
Compression unit, for obtaining described picture according to described URL information, and is compressed described picture processing, it is thus achieved that place
Picture after reason;
Second transmitting element, the picture after returning described process to described terminal.
14. servers according to claim 13, it is characterised in that
Described compression unit, is additionally operable to described picture is carried out transcoding process, it is thus achieved that the picture after transcoding.
15. servers according to claim 14, it is characterised in that the form of the picture after described transcoding is WebP lattice
Formula.
16. according to the server according to any one of claim 13-15, it is characterised in that
Described second receives unit, is additionally operable to receive the current network connection state information of described terminal to report;
Described second compression unit, is additionally operable to, according to described network connection state information, described picture carry out the compression of correspondence
Process, it is thus achieved that the picture after process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610729926.3A CN106210135A (en) | 2016-08-25 | 2016-08-25 | Picture resource download process method, terminal and Resource Server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610729926.3A CN106210135A (en) | 2016-08-25 | 2016-08-25 | Picture resource download process method, terminal and Resource Server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106210135A true CN106210135A (en) | 2016-12-07 |
Family
ID=57525010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610729926.3A Pending CN106210135A (en) | 2016-08-25 | 2016-08-25 | Picture resource download process method, terminal and Resource Server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106210135A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791713A (en) * | 2017-02-20 | 2017-05-31 | 深圳实现创新科技有限公司 | The data transmission method and device of safety monitoring |
CN107194975A (en) * | 2017-02-09 | 2017-09-22 | 北京诸葛找房信息技术有限公司 | The method for improving the speed of mobile phone app download pictures |
CN107911456A (en) * | 2017-11-17 | 2018-04-13 | 深圳泉眼体育运营管理有限公司 | Flow optimization method, device, terminal device and the storage medium of picture loading |
CN109360149A (en) * | 2018-09-25 | 2019-02-19 | 平安普惠企业管理有限公司 | A kind of picture upload method, system and terminal device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402603A (en) * | 2011-11-18 | 2012-04-04 | 百度在线网络技术(北京)有限公司 | Method and device for providing image abstract information corresponding to thumbnail |
CN102650990A (en) * | 2011-02-24 | 2012-08-29 | 中兴通讯股份有限公司 | Terminal webpage display method and system |
CN103577447A (en) * | 2012-07-30 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Method and equipment used for determining page type information of target pages |
-
2016
- 2016-08-25 CN CN201610729926.3A patent/CN106210135A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102650990A (en) * | 2011-02-24 | 2012-08-29 | 中兴通讯股份有限公司 | Terminal webpage display method and system |
CN102402603A (en) * | 2011-11-18 | 2012-04-04 | 百度在线网络技术(北京)有限公司 | Method and device for providing image abstract information corresponding to thumbnail |
CN103577447A (en) * | 2012-07-30 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Method and equipment used for determining page type information of target pages |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107194975A (en) * | 2017-02-09 | 2017-09-22 | 北京诸葛找房信息技术有限公司 | The method for improving the speed of mobile phone app download pictures |
CN106791713A (en) * | 2017-02-20 | 2017-05-31 | 深圳实现创新科技有限公司 | The data transmission method and device of safety monitoring |
CN107911456A (en) * | 2017-11-17 | 2018-04-13 | 深圳泉眼体育运营管理有限公司 | Flow optimization method, device, terminal device and the storage medium of picture loading |
CN109360149A (en) * | 2018-09-25 | 2019-02-19 | 平安普惠企业管理有限公司 | A kind of picture upload method, system and terminal device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101741986B (en) | Page cache method for mobile communication equipment terminal | |
CN106210135A (en) | Picture resource download process method, terminal and Resource Server | |
CN102905045A (en) | Method and server for providing picture data to computing terminal | |
CN102457565B (en) | The method of mobile terminal network visiting and proxy server | |
US20140143647A1 (en) | Method for improving browser cache by reducing duplicate stored content | |
CN103618787B (en) | A kind of webpage represents system and method | |
CN102946419A (en) | Picture server and picture data providing method | |
CN104077310A (en) | Method, equipment and system for loading resource file | |
CN106817391A (en) | Document breakpoint transmission method and apparatus | |
US9727643B2 (en) | Managing loading of web pages | |
CN105487640A (en) | Image pre-loading and caching method of Android watch | |
CN103731492B (en) | A kind of page transmission processing method, device and system | |
CN104615771A (en) | Webpage data acquiring method and device | |
CN108280228A (en) | A kind of processing method and relevant device of webpage | |
CN103138871B (en) | The server data processing system of application program and method in mobile communcations system | |
CN104572964A (en) | Zip file unzipping method and device | |
CN102156697A (en) | Method and terminal equipment for realizing webpage application through widget | |
CN105205151A (en) | Method and system for saving browser page flow at mobile terminal | |
CN106126756A (en) | Webpage subframe resource downloading processing method, terminal and Resource Server | |
CN103686852B (en) | A kind of method, equipment and Wireless acceleration system that interaction data is processed | |
CN107592553A (en) | A kind of compression of images agency balance processing method and processing device | |
CN106227890A (en) | Web animation resource downloading processing method and system, terminal, Resource Server | |
CN103001924A (en) | Method, network server and system for accessing pages | |
CN102164178B (en) | Content acquiring method and client | |
CN105656921A (en) | Data transmission method, apparatus and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161207 |