CN105959502A - Network picture compression method and device - Google Patents
Network picture compression method and device Download PDFInfo
- Publication number
- CN105959502A CN105959502A CN201610270494.4A CN201610270494A CN105959502A CN 105959502 A CN105959502 A CN 105959502A CN 201610270494 A CN201610270494 A CN 201610270494A CN 105959502 A CN105959502 A CN 105959502A
- Authority
- CN
- China
- Prior art keywords
- picture
- resolution
- target photo
- address
- target
- 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
- 230000006835 compression Effects 0.000 title claims abstract description 172
- 238000007906 compression Methods 0.000 title claims abstract description 172
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000009286 beneficial effect Effects 0.000 claims description 16
- 230000000903 blocking effect Effects 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 230000005611 electricity Effects 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000010420 art technique Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00127—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
- H04N1/00204—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server
- H04N1/00209—Transmitting or receiving image data, e.g. facsimile data, via a computer, e.g. using e-mail, a computer network, the internet, I-fax
- H04N1/00214—Transmitting or receiving image data, e.g. facsimile data, via a computer, e.g. using e-mail, a computer network, the internet, I-fax details of transmission
- H04N1/00217—Transmitting or receiving image data, e.g. facsimile data, via a computer, e.g. using e-mail, a computer network, the internet, I-fax details of transmission only involving computer data transmission protocols, e.g. SMTP, WAP or HTTP
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00127—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
- H04N1/00204—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server
- H04N1/00244—Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a digital computer or a digital computer system, e.g. an internet server with a server, e.g. an internet server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N1/32101—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
- H04N1/32144—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
- H04N1/32149—Methods relating to embedding, encoding, decoding, detection or retrieval operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N1/32101—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
- H04N1/32144—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
- H04N1/32149—Methods relating to embedding, encoding, decoding, detection or retrieval operations
- H04N1/32267—Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
- H04N1/32277—Compression
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a network picture compression method and a device, and the method comprises the steps: when a first picture request sent from an application program to a server is detected, the first picture request is intercepted, and the first picture request comprises a first picture address which is user for acquiring a target picture; according to a preset correspondence between network speed level and picture compression ratio, a target compression ratio corresponding to the present network speed level of the application program is determined; the first picture address is modified according to the target compression ratio, and a second picture address containing the target compression ratio is obtained; a second picture request containing the second picture address is sent to the server, and the second picture request is used for making the server to acquire the target picture according to the second picture address and compress the target picture according to the target compression ratio contained by the second picture address. According to the invention, the compression ratio of the picture can be dynamically adjusted according to the variation of the network environment, and the intelligent degree of image loading can be improved.
Description
Technical field
It relates to Internet technical field, particularly relate to a kind of network picture compression method and device.
Background technology
In correlation technique, application program obtains the quality of network picture and generally depends on this application program launching
Time detection network environment, if be detected that network environment is poor, then can drop according to fixing compression ratio
Low picture quality is loaded into speed faster to exchange for.
Summary of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of network picture compression method and dress
Put.
First aspect according to disclosure embodiment, it is provided that a kind of network picture compression method, described method
Including:
When application program being detected to the first picture request that server sends, intercept described first picture
Request, described first picture request includes the first picture address for obtaining Target Photo;
It is beneficial to the corresponding relation of network speed rank and the picture compression ratio pre-set, determines described application
The target compression ratio that the current network speed step of program is corresponding;
Revise described first picture address according to described target compression ratio, obtain comprising described target compression ratio
Second picture address;
The second picture request comprising described second picture address, described second figure is sent to described server
Sheet request is used for making described server according to Target Photo basis described in described second picture address acquisition
Target Photo described in the described targeted compression comparison that described second picture address comprises is compressed.
Optionally, described method also includes: obtain the resolution of the screen of terminal.
Optionally, described according to described target compression ratio described first picture address of amendment, obtain comprising institute
The second picture address stating target compression ratio includes:
Revise described first picture address according to described target compression ratio and described resolution, obtain comprising institute
State the second picture address of the resolution of target compression ratio and described screen.
Optionally, the described second picture comprising described second picture address that sends to described server is asked
Asking, the request of described second picture is used for making described server according to mesh described in described second picture address acquisition
Target Photo described in sheet the described targeted compression comparison that comprises according to described second picture address of marking on a map enters
Row compression includes:
The second picture request comprising described second picture address, described second figure is sent to described server
Sheet request be used for making described server according to Target Photo described in described second picture address acquisition, according to institute
State the resolution of described target compression ratio that second picture address comprises and described screen to described target figure
Sheet is compressed.
Optionally, in the described network speed rank being beneficial to pre-set pass corresponding with picture compression ratio
System, before determining the target compression ratio that current network speed step is corresponding, also includes:
Obtain the network speed that described application program is current;
Described current network speed step is determined according to the network speed that described application program is current.
Optionally, described method also includes:
When described application program launching, or detect when handover network connects, according to current network
Connection type determines the default network speed step corresponding with described current network connection type, and by institute
State default network speed step as described current network speed step.
Second aspect according to disclosure embodiment, it is provided that another kind of network picture compression method, described side
Method includes:
Receive the second picture the comprising second picture address request that terminal sends, described second picture address
It is described terminal after the first picture request intercepting application program, according to the current net of described application program
Described in the targeted compression comparison that network speed step is corresponding first picture request include for obtaining target
The address that first picture address of picture obtains after modifying;
According to Target Photo described in described second picture address acquisition;
It is compressed according to Target Photo described in described targeted compression comparison.
Optionally, described second picture address also includes the resolution of the screen of described terminal.
Optionally, described it is compressed including according to Target Photo described in described targeted compression comparison:
Described Target Photo is carried out by resolution and the resolution of described Target Photo according to described screen
Size adjusting.
After described Target Photo is carried out size adjusting, enter according to Target Photo described in targeted compression comparison
Row compression.
Optionally, the resolution of the described resolution according to described screen and described Target Photo is to described mesh
Sheet of marking on a map carries out size adjusting and includes:
The resolution of described screen and the resolution of described Target Photo are contrasted;
When the resolution of described Target Photo is less than or equal to the resolution of described screen, keep described mesh
The resolution of sheet of marking on a map is constant;
When the resolution of described Target Photo is more than the resolution of described screen, by described Target Photo
The resolution of resolution adjustment extremely described screen.
The third aspect according to disclosure embodiment, it is provided that a kind of network picture compressor, described device
Including:
Blocking module, is configured in the first picture request detecting that application program sends to server
Time, intercepting described first picture request, described first picture request includes for obtaining Target Photo
First picture address;
First determines module, is configured to network speed rank and the picture compression ratio being beneficial to pre-set
Corresponding relation, determines the target compression ratio that the current network speed step of described application program is corresponding;
Address modified module, is configured to revise described first picture address according to described target compression ratio,
Obtain comprising the second picture address of described target compression ratio;
Sending module, is configured to send, to described server, the second figure comprising described second picture address
Sheet is asked, and the request of described second picture is used for making described server according to described second picture address acquisition institute
State target figure described in Target Photo the described targeted compression comparison that comprises according to described second picture address
Sheet is compressed.
Optionally, described device also includes: acquisition module, is configured to obtain the resolution of the screen of terminal
Rate.
Optionally, described address modified module is configured to: according to described target compression ratio and described resolution
Rate revises described first picture address, the resolution obtaining comprising described target compression ratio and described screen
Second picture address.
Optionally, described sending module is configured to: sends to described server and comprises described second picture
The second picture request of address, the request of described second picture is used for making described server according to described second figure
Target Photo described in sheet address acquisition, the described target compression ratio comprised according to described second picture address and
Described Target Photo is compressed by the resolution of described screen.
Optionally, described device also includes:
Network speed monitoring module, is configured in the described network speed rank being beneficial to pre-set and picture pressure
The corresponding relation of contracting ratio, before determining the target compression ratio that current network speed step is corresponding, obtains described
The network speed that application program is current;
Second determines module, is configured to determine described working as according to the network speed that described application program is current
Front network speed rank.
Optionally, described device also includes: the 3rd determines module, is configured to:
When described application program launching, or detect when handover network connects, according to current network
Connection type determines the default network speed step corresponding with described current network connection type, and by institute
State default network speed step as described current network speed step.
Fourth aspect according to disclosure embodiment, it is provided that a kind of network picture compressor, described device
Including:
Receiver module, the second picture comprising second picture address being configured to receive terminal transmission please
Asking, described second picture address is described terminal after the first picture request intercepting application program, according to
First picture request described in the targeted compression comparison that the current network speed step of described application program is corresponding
Include for obtaining the address obtained after the first picture address of Target Photo is modified;
Acquisition module, is configured to according to Target Photo described in described second picture address acquisition;
Compression module, is configured to be compressed according to Target Photo described in described targeted compression comparison.
Optionally, described second picture address also includes the resolution of the screen of described terminal.
Optionally, described compression module includes:
Size adjusting submodule, be configured to the resolution according to described screen and described Target Photo point
Resolution carries out size adjusting to described Target Photo.
Compression submodule, is configured to after described Target Photo is carried out size adjusting, according to target pressure
Target Photo described in contracting comparison is compressed.
Optionally, described size adjusting submodule is configured to:
The resolution of described screen and the resolution of described Target Photo are contrasted;
When the resolution of described Target Photo is less than or equal to the resolution of described screen, keep described mesh
The resolution of sheet of marking on a map is constant;
When the resolution of described Target Photo is more than the resolution of described screen, by described Target Photo
The resolution of resolution adjustment extremely described screen.
The 5th aspect according to disclosure embodiment, it is provided that a kind of network picture compressor, described device
Including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to: at the first figure detecting that application program sends to server
During sheet request, intercepting described first picture request, described first picture request includes for obtaining target
First picture address of picture;
It is beneficial to the corresponding relation of network speed rank and the picture compression ratio pre-set, determines described application
The target compression ratio that the current network speed step of program is corresponding;
Revise described first picture address according to described target compression ratio, obtain comprising described target compression ratio
Second picture address;
The second picture request comprising described second picture address, described second figure is sent to described server
Sheet request is used for making described server according to Target Photo basis described in described second picture address acquisition
Target Photo described in the described targeted compression comparison that described second picture address comprises is compressed.
The 6th aspect according to disclosure embodiment, it is provided that a kind of network picture compressor, described device
Including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receive the second picture the comprising second picture address request that terminal sends, described second picture address
It is described terminal after the first picture request intercepting application program, according to the current net of described application program
Described in the targeted compression comparison that network speed step is corresponding first picture request include for obtaining target
The address that first picture address of picture obtains after modifying;
According to Target Photo described in described second picture address acquisition;
It is compressed according to Target Photo described in described targeted compression comparison.
The 7th aspect according to disclosure embodiment, it is provided that a kind of non-transitory computer-readable storage medium
Matter, when the instruction in described storage medium is performed by the processor of mobile terminal so that mobile terminal energy
A kind of network picture compression method of enough execution, described method includes: detecting that application program is to server
During the first picture request sent, intercepting described first picture request, described first picture request includes
For obtaining the first picture address of Target Photo;It is beneficial to network speed rank and the picture pressure pre-set
The corresponding relation of contracting ratio, determines the targeted compression that the current network speed step of described application program is corresponding
Ratio;Revise described first picture address according to described target compression ratio, obtain comprising described target compression ratio
Second picture address;Sending, to described server, the second picture comprising described second picture address please
Asking, the request of described second picture is used for making described server according to mesh described in described second picture address acquisition
Target Photo described in sheet the described targeted compression comparison that comprises according to described second picture address of marking on a map enters
Row compression.
Eighth aspect according to disclosure embodiment, it is provided that another kind of non-transitory computer-readable storage medium
Matter, when the instruction in described storage medium is performed by the processor of mobile terminal so that mobile terminal energy
The another kind of network picture compression method of enough execution, described method includes: receive terminal transmission comprises second
The second picture request of picture address, described second picture address is that described terminal is intercepting application program
After first picture request, according to the target compression ratio that the current network speed step of described application program is corresponding
Modify for obtaining the first picture address of Target Photo to what described first picture request included
After the address that obtains;According to Target Photo described in described second picture address acquisition;According to described target pressure
Target Photo described in contracting comparison is compressed.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: applied by interception
Program is asked to first picture comprising the first picture address for obtaining Target Photo of server, and
The described first picture ground of target compression ratio amendment that current network speed step according to application program is corresponding
Location obtains comprising the second picture address of described target compression ratio, then by containing described second picture address
Two picture requests send to server so that server can be according to described in described second picture address acquisition
Target Photo described in Target Photo the described targeted compression comparison that comprises according to described second picture address
It is compressed, such that it is able to use different compression ratios according to the heterogeneous networks speed step of application program
Target Photo is compressed, it is possible to solve correlation technique does not considers the problem of change of network environment, energy
Enough dynamic compression ratios adjusting picture of the change according to network environment, improve the degree of intelligence that picture is loaded into.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe
, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet these public affairs
The embodiment opened, and for explaining the principle of the disclosure together with description.
Fig. 1 is the structural representation of a kind of implementation environment involved by each embodiment of the disclosure;
Fig. 2 is the flow chart according to a kind of network picture compression method shown in an exemplary embodiment;
Fig. 3 is the flow chart according to the another kind of network picture compression method shown in an exemplary embodiment;
Fig. 4 is the flow chart according to the another kind of network picture compression method shown in an exemplary embodiment;
Fig. 5 is the block diagram according to a kind of network picture compressor shown in an exemplary embodiment;
Fig. 6 is the block diagram according to the another kind of network picture compressor shown in an exemplary embodiment;
Fig. 7 is the block diagram according to the another kind of network picture compressor shown in an exemplary embodiment;
Fig. 8 is the block diagram according to the another kind of network picture compressor shown in an exemplary embodiment;
Fig. 9 is the block diagram according to a kind of network picture compressor shown in an exemplary embodiment;
Figure 10 is the block diagram of a kind of compression module shown in embodiment illustrated in fig. 9;
Figure 11 is the block diagram according to a kind of network picture compressor shown in another exemplary embodiment;
Figure 12 is the block diagram according to a kind of network picture compressor shown in another exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following
When description relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous
Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the disclosure
There is embodiment.On the contrary, they only with as appended claims describes in detail, the one of the disclosure
The example of the apparatus and method that a little aspects are consistent.
Before introducing the network picture compression method that the disclosure provides, first apply involved by the disclosure
Scene is introduced, and Fig. 1 is the structural representation of a kind of implementation environment involved by each embodiment of the disclosure
Figure.Seeing Fig. 1, this implementation environment may include that terminal 100, and server 200, terminal 100
On the application program that can access network is installed.Wherein, terminal 100 can be such as smart mobile phone,
Function panel computer, intelligent television, intelligent watch, PDA (Personal Digital Assistant, individual
Personal digital assistant), the mobile terminal such as pocket computer, it is also possible to be the fixed terminals such as desk computer.
Server 200 can be a station server, or the server cluster being made up of some station servers, or
Person can be a cloud computing service center.
Fig. 2 is the flow chart according to a kind of network picture compression method shown in an exemplary embodiment, should
Method is in terminal, and this terminal can be the terminal 100 in implementation environment shown in Fig. 1, such as Fig. 2 institute
Show, comprise the following steps.
Step 101, when application program being detected to the first picture request that server sends, intercepts the
One picture request, the first picture request includes the first picture address for obtaining Target Photo.
Step 102, is beneficial to the corresponding relation of network speed rank and the picture compression ratio pre-set, really
Determine the target compression ratio that the current network speed step of this application program is corresponding.
Step 103, revises the first picture address according to target compression ratio, obtains comprising target compression ratio
Second picture address.
Step 104, sends the second picture request comprising second picture address, second picture to server
Request is used for making server according to second picture address acquisition Target Photo and according to second picture address bag
The targeted compression comparison Target Photo contained is compressed.
Wherein, it is also possible to obtain the resolution of the screen of terminal, such that it is able to revising the first picture address
Time, revise the first picture address according to the resolution of target compression ratio and screen, obtain comprising targeted compression
Resolution second picture address than the screen of sum.Accordingly, server can be first according to the resolution of screen
The size of Target Photo is adjusted by rate, is compressed further according to targeted compression comparison Target Photo.?
After server completes picture compression, terminal Target Photo after server receives compression.
Fig. 3 is the flow chart according to the another kind of network picture compression method shown in an exemplary embodiment,
The method is in server, and this terminal can be the server 200 in implementation environment shown in Fig. 1, as
Shown in Fig. 3, comprise the following steps.
Step 201, receives the second picture the comprising second picture address request that terminal sends, the second figure
Sheet address is terminal after the first picture request intercepting application program, according to the current net of this application program
Network speed step corresponding targeted compression comparison the first picture request include for obtaining Target Photo
The first picture address modify after the address that obtains.
Step 202, according to second picture address acquisition Target Photo.
Step 203, is compressed according to targeted compression comparison Target Photo.
Wherein, second picture address can also include the resolution of the screen of this terminal, this resolution
Act on identical with the effect of the resolution of the screen described in step 104, repeat no more.Complete at server
After becoming picture compression, the Target Photo after compression is sent to terminal by server.
Fig. 4 is the flow chart according to the another kind of network picture compression method shown in an exemplary embodiment,
As shown in Figure 4, the method, in the implementation environment shown in Fig. 1, comprises the following steps.
Step 301, terminal, when application program being detected to the first picture request that server sends, is blocked
Cutting the first picture request, the first picture request includes the first picture address for obtaining Target Photo.
Example, this application program can be the application program with network access functions, such as browser,
Electricity business's class application etc..As a example by electricity business's class application, owing to electricity business's class application needs commodity are carried out each side
The displaying in face, therefore this type of application is bigger to the display demand of picture, such as, at commodity details page, beat
Opening this page and need to download multiple picture, the download of the most each picture is construed as this application program
To server picture request, the request of this first picture can be arbitrary in the request of these pictures
Individual request, illustrates below as a example by this first picture is asked.Under normal circumstances, the first picture request
In include first picture address of Target Photo of acquisition request, this address can be URL (Uniform
Resource Locator, URL) address, such as: http://a.com/xxxxx.jpg.
Step 302, terminal obtains the network speed that this application program is current.
Step 303, terminal determines current network speed step according to the network speed that this application program is current.
Example, can pre-set multiple network speed rank, such as " good ", " relatively good ",
" typically " and " poor " four ranks, and network speed scope corresponding to grade classification being different,
Such as network speed is more than 5MB/s (megabyte/second) corresponding level " good ", and network speed is at 5MB/s~2MB/s
Between corresponding level " preferably ", network speed is respective stages between 2MB/s~512KB/s (kilobytes/second)
Not " typically ", network speed is less than 512KB/s then corresponding level " poor ".Certainly, the progression of above-mentioned rank
And the representation of rank is exemplary, include but not limited to this.For example, it is also possible to pre-set
Five network speed ranks the most multiple, this progression can be arranged according to actual needs.The table of rank
Show except above-mentioned mode, it is also possible to be expressed as " level1 ", " level2 ", " level3 ", " level4 ",
In addition other representation can also be used, numerous to list herein.
It is noted that step 301~step 303 are in addition to above-mentioned execution sequence, it is also possible to no
Limiting the execution sequence between step 301 and step 302~303, such as, above-mentioned terminal can be periodically
The network speed of this application program is monitored by ground, when the network speed finding this application program becomes
During change, perform step 302~303 and determine current network speed step.Under this embodiment, work as step
Rapid 301 when being triggered, can according to it has been determined that current network speed step perform step 304.
It addition, when this application program launching, or detect when handover network connects, now may be by
Connect in just and connect to the Net, not yet obtain current network speed, then can connect class according to current network
Type determines the default network speed step corresponding with current network connection type, and by default network speed
Rank is as current network speed step.Such as, network connection type can include, WiFi, 4G net
Network, 3G network and 2G network, the most accordingly, network connection type is right with default network speed step
Should be related to and could be arranged to: WiFi corresponding level " good ", 4G network corresponding level " preferably ", 3G
Network corresponding level " typically ", 2G network corresponding level " poor ".
Step 304, terminal is beneficial to the corresponding relation of network speed rank and the picture compression ratio pre-set,
Determine the target compression ratio that the current network speed step of application program is corresponding.
Wherein, involved in the present embodiment compression ratio refers to that the compression ratio of picture quality is (after picture compression
The ratio of original map quality before quality and compression), example, the network speed rank pre-set and picture
The corresponding relation of compression ratio may include that the compression ratio that network-level " good " is corresponding is 80% (can to manage
Solve for compression after picture quality be the 80% of original map quality, after by that analogy), network-level " preferably "
Corresponding compression ratio is 60%, and the compression ratio that network-level " typically " is corresponding is 40%, network-level " poor "
Corresponding compression ratio is 20%.It is assumed that the current network speed step of this application program is " preferably ",
Then target compression ratio is 60%.
Step 305, terminal obtains the resolution of the screen of terminal.
Wherein, the resolution of screen here refers to the display resolution of screen, is the precision of screen picture
Degree, i.e. refers to the pixel that screen can show has how many, such as 600*800,640*1136,1242*2208
Etc., as a example by 600*800,600 represent is the width of resolution, and 800 represent is resolution
Height.Alternatively, it is also possible to first carry out step 305 to perform step 304 again, it is also possible to perform simultaneously,
The most do not limit the execution sequence between step 304 and step 305.
Step 306, terminal is revised the first picture address according to target compression ratio and resolution, is comprised
The second picture address of the resolution of target compression ratio and screen.
As a example by the first picture address " http://a.com/xxxxx.jpg " in step 301, it is assumed that step
The target compression ratio obtained in 305 is 60%, and the resolution of screen is 600*800, then based on the first figure
The second picture address obtained after the amendment of sheet address " http://a.com/xxxxx.jpg " can be:
“http://a.com/xxxxx.jpg?Width=600&height=800&rate=60 ".Wherein, width table
Show is the width of resolution, and what height represented is the height of resolution, and what rate represented is compression ratio.
Step 307, terminal to server sends the second picture request comprising second picture address.
Step 308, server receives the second picture the comprising second picture address request that terminal sends.
Step 309, server is according to second picture address acquisition Target Photo.
Wherein, with " http://a.com/xxxxx.jpg?Width=600&height=800&rate=60 " as a example by,
Server, can be according to address information http://a.com/xxxxx.jpg therein after receiving this address
Obtain Target Photo.
Step 310, Target Photo is entered by server according to the resolution of screen and the resolution of Target Photo
Row size adjusting.Wherein, Target Photo is carried out size adjusting may include that
The resolution of screen and the resolution of Target Photo are contrasted;
When the resolution of Target Photo is less than or equal to the resolution of screen, keep the resolution of Target Photo
Rate is constant;
When the resolution of Target Photo is more than the resolution of screen, by the resolution adjustment of Target Photo extremely
The resolution of screen.
Such as, " http://a.com/xxxxx.jpg is received?Width=600&height=800&rate=60 "
Afterwards, it may be determined that the resolution of the screen of terminal is 600*800, then can dividing this Target Photo
Resolution is adjusted to 600*800, thus reduces the size of picture to adapt to screen.Wherein, by Target Photo
Resolution adjustment to the resolution of screen equal proportion can be used to scale, or the resolution according to screen
Target Photo is cut out.
Step 311, server is after carrying out size adjusting to Target Photo, according to targeted compression comparison mesh
Sheet of marking on a map is compressed.
Such as, " http://a.com/xxxxx.jpg is received?Width=600&height=800&rate=60 "
Afterwards, it may be determined that target compression ratio is 60%.Such that it is able to step 310 is processed according to this compression ratio
After Target Photo be compressed.
Step 312, the Target Photo after compression is sent to terminal by server.
To sum up, by said method, can use not according to the heterogeneous networks speed step of application program
Target Photo is compressed by same compression ratio, it is possible to solve not consider change of network environment in correlation technique
Problem, it is possible to according to the dynamic compression ratio adjusting picture of the change of network environment, improve picture and be loaded into
Degree of intelligence.
Fig. 5 is the block diagram according to a kind of network picture compressor shown in an exemplary embodiment, this dress
Putting 500 and can apply to terminal, may be used for the method shown in Fig. 2 or Fig. 4 that performs, this terminal is permissible
It it is the terminal 100 in implementation environment shown in Fig. 1.With reference to Fig. 5, this device includes: blocking module 510,
First determines module 520, address modified module 530 and sending module 540, wherein:
Blocking module 510, is configured to detecting that application program please to the first picture that server sends
When asking, intercepting the first picture request, the first picture request includes the first figure for obtaining Target Photo
Sheet address;
First determines module 520, is configured to network speed rank and the picture compression being beneficial to pre-set
The corresponding relation of ratio, determines the target compression ratio that the current network speed step of application program is corresponding;
Address modified module 530, is configured to revise the first picture address according to target compression ratio, obtains
Comprise the second picture address of target compression ratio;
Sending module 540, being configured to send, to server, the second picture comprising second picture address please
Asking, second picture request is used for making server according to second picture address acquisition Target Photo and according to second
The targeted compression comparison Target Photo that picture address comprises is compressed.
Optionally, Fig. 6 is according to the another kind of network picture compressor shown in an exemplary embodiment
Block diagram, as shown in Figure 6, device 500 also includes: acquisition module 550, is configured to obtain terminal
The resolution of screen.
Optionally, address modified module 530 is configured to: revise the according to target compression ratio and resolution
One picture address, obtains comprising the second picture address of the resolution of target compression ratio and screen.
Optionally, sending module 540 is configured to: sends to server and comprises the of second picture address
Two pictures requests, second picture request be used for making server according to second picture address acquisition Target Photo,
Target Photo is compressed by the target compression ratio comprised according to second picture address and the resolution of screen.
Optionally, Fig. 7 is according to the another kind of network picture compressor shown in an exemplary embodiment
Block diagram, as it is shown in fig. 7, device 500 also includes:
Network speed monitoring module 560, is configured to be beneficial to the network speed rank that pre-sets and picture pressure
The corresponding relation of contracting ratio, before determining the target compression ratio that current network speed step is corresponding, obtains application
The network speed that program is current;
Second determines module 570, is configured to determine current net according to the network speed that application program is current
Network speed step.
Optionally, Fig. 8 is according to the another kind of network picture compressor shown in an exemplary embodiment
Block diagram, as shown in Figure 8, device 500 also includes: the 3rd determines module 580, is configured to:
When application program launching, or detect when handover network connects, connect according to current network
Type determines the default network speed step corresponding with current network connection type, and by default network speed
Degree rank is as current network speed step.
Fig. 9 is the block diagram according to a kind of network picture compressor shown in an exemplary embodiment, this dress
Putting 900 and can apply to server, may be used for the method shown in Fig. 3 or Fig. 4 that performs, this terminal can
To be the server 200 in implementation environment shown in Fig. 1.With reference to Fig. 9, this device includes: receiver module
910, acquisition module 920 and compression module 930, wherein:
Receiver module 910, is configured to receive the second picture comprising second picture address that terminal sends
Request, second picture address is terminal after the first picture request intercepting application program, according to application journey
Targeted compression comparison the first picture request corresponding to the current network speed step of sequence include for obtaining
Take the address obtained after the first picture address of Target Photo is modified;
Acquisition module 920, is configured to according to second picture address acquisition Target Photo;
Compression module 930, is configured to be compressed according to targeted compression comparison Target Photo.
Optionally, second picture address also includes the resolution of the screen of terminal.
Figure 10 is the block diagram of a kind of compression module shown in embodiment illustrated in fig. 9, as shown in Figure 10, and pressure
Contracting module 930 includes:
Size adjusting submodule 931, is configured to the resolution of the resolution according to screen and Target Photo
Target Photo is carried out size adjusting.
Compression submodule 932, is configured to after Target Photo is carried out size adjusting, according to target pressure
Contracting comparison Target Photo is compressed.
Optionally, size adjusting submodule 931 is configured to:
The resolution of screen and the resolution of Target Photo are contrasted;
When the resolution of Target Photo is less than or equal to the resolution of screen, keep the resolution of Target Photo
Rate is constant;
When the resolution of Target Photo is more than the resolution of screen, by the resolution adjustment of Target Photo extremely
The resolution of screen.
About the device in above-described embodiment, the concrete mode that wherein modules performs to operate is having
Close in the embodiment of the method and be described in detail, explanation will be not set forth in detail herein.
Figure 11 is the frame according to a kind of network picture compressor 1100 shown in another exemplary embodiment
Figure.Such as, device 1100 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting
Equipment, game console, tablet device, armarium, body-building equipment, personal digital assistant etc..
With reference to Figure 11, device 1100 can include following one or more assembly: processes assembly 1102,
Memorizer 1104, electric power assembly 1106, multimedia groupware 1108, audio-frequency assembly 1110, input/output
(I/O) interface 1112, sensor cluster 1114, and communications component 1116.
Process assembly 1102 and generally control the integrated operation of device 1100, such as with display, call,
The operation that data communication, camera operation and record operation are associated.Process assembly 1102 and can include one
Individual or multiple processors 1120 perform instruction, to complete the network shown in above-mentioned Fig. 2 or Fig. 4
All or part of step of sheet compression method.Can include one or more additionally, process assembly 1102
Module, it is simple to process between assembly 1102 and other assemblies is mutual.Such as, processing assembly 1102 can
To include multi-media module, with facilitate multimedia groupware 1108 and process between assembly 1102 mutual.
Memorizer 1104 is configured to store various types of data to support the operation at device 1100.
The example of these data includes any application program for operation on device 1100 or the instruction of method,
Contact data, telephone book data, message, picture, video etc..Memorizer 1104 can be by any
The volatibility of type or non-volatile memory device or combinations thereof realize, as static random-access is deposited
Reservoir (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable
Read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM),
Magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1106 is device 1100 provide electric power.Electric power assembly 1106 is permissible
Including power-supply management system, one or more power supplys, and other with generate for device 1100, manage and
The assembly that distribution electric power is associated.
One output interface of offer that multimedia groupware 1108 is included between described device 1100 and user
Screen.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).
If screen includes that touch panel, screen may be implemented as touch screen, to receive the input from user
Signal.Touch panel includes that one or more touch sensor touches with sensing, slides and on touch panel
Gesture.Described touch sensor can not only sense touch or the border of sliding action, but also detects
The persistent period relevant to described touch or slide and pressure.In certain embodiments, multimedia group
Part 1108 includes a front-facing camera and/or post-positioned pick-up head.When device 1100 is in operator scheme,
During such as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive many matchmakers of outside
Volume data.Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or tool
There are focal length and optical zoom ability.
Audio-frequency assembly 1110 is configured to output and/or input audio signal.Such as, audio-frequency assembly 1110
Including a mike (MIC), when device 1100 is in operator scheme, such as call model, record
When pattern and speech recognition mode, mike is configured to receive external audio signal.The audio frequency received
Signal can be further stored at memorizer 1104 or send via communications component 1116.Real at some
Executing in example, audio-frequency assembly 1110 also includes a speaker, is used for exporting audio signal.
I/O interface 1112 is to process to provide interface between assembly 1102 and peripheral interface module, above-mentioned outside
Enclosing interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: homepage
Button, volume button, start button and locking press button.
Sensor cluster 1114 includes one or more sensor, for providing each side for device 1100
The state estimation in face.Such as, what sensor cluster 1114 can detect device 1100 beats opening/closing shape
State, the relative localization of assembly, the most described assembly is display and the keypad of device 1100, sensing
Device assembly 1114 can also detect device 1100 or the position change of 1,100 1 assemblies of device, user
The presence or absence contacted with device 1100, device 1100 orientation or acceleration/deceleration and device 1100
Variations in temperature.Sensor cluster 1114 can include proximity transducer, is configured to do not appointing
The existence of object near detection during what physical contact.Sensor cluster 1114 can also include that light senses
Device, such as CMOS or ccd image sensor, is used for using in imaging applications.In some embodiments
In, this sensor cluster 1114 can also include acceleration transducer, gyro sensor, and magnetic senses
Device, pressure transducer or temperature sensor.
Communications component 1116 is configured to facilitate wired or wireless mode between device 1100 and other equipment
Communication.Device 1100 can access wireless network based on communication standard, such as WiFi, 2G or 3G,
Or combinations thereof.In one exemplary embodiment, communications component 1116 receives via broadcast channel
Broadcast singal or broadcast related information from external broadcasting management system.An exemplary embodiment
In, described communications component 1116 also includes near-field communication (NFC) module, to promote junction service.
Such as, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA)
Technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1100 can be by one or more application specific integrated circuits
(ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), can compile
Journey logical device (PLD), field programmable gate array (FPGA), controller, microcontroller,
Microprocessor or other electronic components realize, for performing the network picture shown in above-mentioned Fig. 2 or Fig. 4
Compression method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage including instruction is additionally provided
Medium, such as, include the memorizer 1104 of instruction, and above-mentioned instruction can be by the processor 1120 of device 1100
Perform to complete the network picture compression method shown in above-mentioned Fig. 2 or Fig. 4.Such as, described non-provisional
Property computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM,
Tape, floppy disk and optical data storage devices etc..
Figure 12 is the frame according to a kind of network picture compressor 1200 shown in another exemplary embodiment
Figure.Such as, device 1200 may be provided in a server.With reference to Figure 12, device 1200 includes place
Managing assembly 1222, it farther includes one or more processor, and by representated by memorizer 1232
Memory resource, can be by processing the instruction of execution of assembly 1222 for storage, such as application program.
In memorizer 1232 application program of storage can include one or more each corresponding to one
The module of group instruction.It is configured to perform instruction, to perform above-mentioned Fig. 3 additionally, process assembly 1222
Or the network picture compression method shown in Fig. 4.
Device 1200 can also include that a power supply module 1226 is configured to perform the electricity of device 1200
Source control, a wired or wireless network interface 1250 is configured to device 1200 is connected to network,
With input and output (I/O) interface 1258.Device 1200 can operate based on being stored in memorizer
The operating system of 1232, such as Windows ServerTM, Mac OS XTM, UnixTM,
LinuxTM, FreeBSDTM or similar.
Those skilled in the art, after considering description and putting into practice the disclosure, will readily occur to its of the disclosure
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, this
A little modification, purposes or adaptations are followed the general principle of the disclosure and include that the disclosure is not disclosed
Common knowledge in the art or conventional techniques means.Description and embodiments is considered only as example
Property, the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure be not limited to described above and illustrated in the accompanying drawings accurately
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by institute
Attached claim limits.
Claims (22)
1. a network picture compression method, it is characterised in that described method includes:
When application program being detected to the first picture request that server sends, intercept described first picture
Request, described first picture request includes the first picture address for obtaining Target Photo;
It is beneficial to the corresponding relation of network speed rank and the picture compression ratio pre-set, determines described application
The target compression ratio that the current network speed step of program is corresponding;
Revise described first picture address according to described target compression ratio, obtain comprising described target compression ratio
Second picture address;
The second picture request comprising described second picture address, described second figure is sent to described server
Sheet request is used for making described server according to Target Photo described in described second picture address acquisition and according to institute
State Target Photo described in the described targeted compression comparison that second picture address comprises to be compressed.
Method the most according to claim 1, it is characterised in that described method also includes: obtain
The resolution of the screen of terminal.
Method the most according to claim 2, it is characterised in that described according to described targeted compression
Than revising described first picture address, the second picture address obtaining comprising described target compression ratio includes:
Revise described first picture address according to described target compression ratio and described resolution, obtain comprising institute
State the second picture address of the resolution of target compression ratio and described screen.
Method the most according to claim 3, it is characterised in that described send to described server
Comprising the second picture request of described second picture address, the request of described second picture is used for making described service
Device according to Target Photo described in described second picture address acquisition and comprises according to described second picture address
Target Photo described in described targeted compression comparison is compressed including:
The second picture request comprising described second picture address, described second figure is sent to described server
Sheet request be used for making described server according to Target Photo described in described second picture address acquisition, according to institute
State the resolution of described target compression ratio that second picture address comprises and described screen to described Target Photo
It is compressed.
5. according to the method described in any one of claim 1-4, it is characterised in that be beneficial in advance described
The network speed rank arranged and the corresponding relation of picture compression ratio, determine that current network speed step is corresponding
Target compression ratio before, also include:
Obtain the network speed that described application program is current;
Described current network speed step is determined according to the network speed that described application program is current.
6. according to the method described in any one of claim 1-4, it is characterised in that described method also includes:
When described application program launching, or detect when handover network connects, according to current network
Connection type determines the default network speed step corresponding with described current network connection type, and by institute
State default network speed step as described current network speed step.
7. a network picture compression method, it is characterised in that described method includes:
Receive the second picture the comprising second picture address request that terminal sends, described second picture address
It is described terminal after the first picture request intercepting application program, according to the current net of described application program
Described in the targeted compression comparison that network speed step is corresponding first picture request include for obtaining target figure
The address that first picture address of sheet obtains after modifying;
According to Target Photo described in described second picture address acquisition;
It is compressed according to Target Photo described in described targeted compression comparison.
Method the most according to claim 7, it is characterised in that in described second picture address also
Resolution including the screen of described terminal.
Method the most according to claim 8, it is characterised in that described according to described targeted compression
Target Photo described in comparison is compressed including:
Described Target Photo is carried out by resolution and the resolution of described Target Photo according to described screen
Size adjusting.
After described Target Photo is carried out size adjusting, enter according to Target Photo described in targeted compression comparison
Row compression.
Method the most according to claim 9, it is characterised in that described dividing according to described screen
The resolution of resolution and described Target Photo carries out size adjusting to described Target Photo and includes:
The resolution of described screen and the resolution of described Target Photo are contrasted;
When the resolution of described Target Photo is less than or equal to the resolution of described screen, keep described mesh
The resolution of sheet of marking on a map is constant;
When the resolution of described Target Photo is more than the resolution of described screen, by described Target Photo
The resolution of resolution adjustment extremely described screen.
11. 1 kinds of network picture compressor, it is characterised in that described device includes:
Blocking module, is configured in the first picture request detecting that application program sends to server
Time, intercepting described first picture request, described first picture request includes for obtaining Target Photo
First picture address;
First determines module, is configured to network speed rank and the picture compression ratio being beneficial to pre-set
Corresponding relation, determines the target compression ratio that the current network speed step of described application program is corresponding;
Address modified module, is configured to revise described first picture address according to described target compression ratio,
Obtain comprising the second picture address of described target compression ratio;
Sending module, is configured to send, to described server, the second figure comprising described second picture address
Sheet is asked, and the request of described second picture is used for making described server according to described second picture address acquisition institute
State Target Photo described in Target Photo the described targeted compression comparison that comprises according to described second picture address
It is compressed.
12. devices according to claim 11, it is characterised in that described device also includes: obtain
Module, is configured to obtain the resolution of the screen of terminal.
13. devices according to claim 12, it is characterised in that described address modified module quilt
It is configured that and revises described first picture address according to described target compression ratio and described resolution, wrapped
Second picture address containing described target compression ratio and the resolution of described screen.
14. devices according to claim 13, it is characterised in that described sending module is configured
For: the second picture request comprising described second picture address, described second figure is sent to described server
Sheet request be used for making described server according to Target Photo described in described second picture address acquisition, according to institute
State the resolution of described target compression ratio that second picture address comprises and described screen to described Target Photo
It is compressed.
15. according to the device described in any one of claim 11-14, it is characterised in that described device is also
Including:
Network speed monitoring module, is configured in the described network speed rank being beneficial to pre-set and picture pressure
The corresponding relation of contracting ratio, before determining the target compression ratio that current network speed step is corresponding, obtains described
The network speed that application program is current;
Second determines module, is configured to determine described working as according to the network speed that described application program is current
Front network speed rank.
16. according to the device described in any one of claim 11-14, it is characterised in that described device is also
Including: the 3rd determines module, is configured to:
When described application program launching, or detect when handover network connects, according to current network
Connection type determines the default network speed step corresponding with described current network connection type, and by institute
State default network speed step as described current network speed step.
17. 1 kinds of network picture compressor, it is characterised in that described device includes:
Receiver module, the second picture comprising second picture address being configured to receive terminal transmission please
Asking, described second picture address is described terminal after the first picture request intercepting application program, according to
In first picture request described in the targeted compression comparison that the current network speed step of described application program is corresponding
Including for obtaining the address obtained after the first picture address of Target Photo is modified;
Acquisition module, is configured to according to Target Photo described in described second picture address acquisition;
Compression module, is configured to be compressed according to Target Photo described in described targeted compression comparison.
18. devices according to claim 17, it is characterised in that in described second picture address
Also include the resolution of the screen of described terminal.
19. devices according to claim 18, it is characterised in that described compression module includes:
Size adjusting submodule, be configured to the resolution according to described screen and described Target Photo point
Resolution carries out size adjusting to described Target Photo;
Compression submodule, is configured to after described Target Photo is carried out size adjusting, according to target pressure
Target Photo described in contracting comparison is compressed.
20. devices according to claim 19, it is characterised in that described size adjusting submodule
It is configured to:
The resolution of described screen and the resolution of described Target Photo are contrasted;
When the resolution of described Target Photo is less than or equal to the resolution of described screen, keep described mesh
The resolution of sheet of marking on a map is constant;
When the resolution of described Target Photo is more than the resolution of described screen, by described Target Photo
The resolution of resolution adjustment extremely described screen.
21. 1 kinds of network picture compressor, it is characterised in that described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When application program being detected to the first picture request that server sends, intercept described first picture
Request, described first picture request includes the first picture address for obtaining Target Photo;
It is beneficial to the corresponding relation of network speed rank and the picture compression ratio pre-set, determines described application
The target compression ratio that the current network speed step of program is corresponding;
Revise described first picture address according to described target compression ratio, obtain comprising described target compression ratio
Second picture address;
The second picture request comprising described second picture address, described second figure is sent to described server
Sheet request is used for making described server according to Target Photo described in described second picture address acquisition and according to institute
State Target Photo described in the described targeted compression comparison that second picture address comprises to be compressed.
22. 1 kinds of network picture compressor, it is characterised in that described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receive the second picture the comprising second picture address request that terminal sends, described second picture address
It is described terminal after the first picture request intercepting application program, according to the current net of described application program
Described in the targeted compression comparison that network speed step is corresponding first picture request include for obtaining target figure
The address that first picture address of sheet obtains after modifying;
According to Target Photo described in described second picture address acquisition;
It is compressed according to Target Photo described in described targeted compression comparison.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610270494.4A CN105959502A (en) | 2016-04-27 | 2016-04-27 | Network picture compression method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610270494.4A CN105959502A (en) | 2016-04-27 | 2016-04-27 | Network picture compression method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105959502A true CN105959502A (en) | 2016-09-21 |
Family
ID=56916749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610270494.4A Pending CN105959502A (en) | 2016-04-27 | 2016-04-27 | Network picture compression method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105959502A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229749A (en) * | 2017-06-27 | 2017-10-03 | 上海地阳实业有限公司 | A kind of wechat H5 webpage making method and system |
CN109582889A (en) * | 2018-10-17 | 2019-04-05 | 平安普惠企业管理有限公司 | Picture loading method, device, computer equipment and storage medium |
CN111198732A (en) * | 2018-11-19 | 2020-05-26 | 顺丰科技有限公司 | Theme transformation method and device for electronic equipment |
CN111381749A (en) * | 2018-12-28 | 2020-07-07 | 广州市百果园信息技术有限公司 | Image display and processing method, device, equipment and storage medium |
CN112099873A (en) * | 2020-09-15 | 2020-12-18 | 广州华多网络科技有限公司 | Application program home page loading method, device, equipment and storage medium |
CN113286006A (en) * | 2021-06-09 | 2021-08-20 | 维沃移动通信有限公司 | File loading method and device |
CN114090927A (en) * | 2021-11-29 | 2022-02-25 | 中国平安财产保险股份有限公司 | Page loading method and device, computer equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702743A (en) * | 2009-11-04 | 2010-05-05 | 中兴通讯股份有限公司 | Self-adaption adjustment method of mobile terminal browser and device thereof |
CN101799738A (en) * | 2010-01-27 | 2010-08-11 | 华为终端有限公司 | Method and device for dynamically adjusting compression rate of browser |
CN102428656A (en) * | 2009-03-23 | 2012-04-25 | 生命力有限公司 | System and method for encoding video using a selected tile and tile rotation pattern |
CN102946418A (en) * | 2012-10-26 | 2013-02-27 | 北京奇虎科技有限公司 | Terminal equipment, picture providing system and picture transmission method |
CN103139292A (en) * | 2013-01-22 | 2013-06-05 | 深圳市深信服电子科技有限公司 | Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system |
CN103747077A (en) * | 2013-12-31 | 2014-04-23 | 华为技术有限公司 | Transmission mechanism adjusting method, server side and client |
CN104426985A (en) * | 2013-09-06 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method, device and system for displaying webpage |
CN105099602A (en) * | 2014-04-25 | 2015-11-25 | 阿里巴巴集团控股有限公司 | File transmission method based on network speed and system |
-
2016
- 2016-04-27 CN CN201610270494.4A patent/CN105959502A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102428656A (en) * | 2009-03-23 | 2012-04-25 | 生命力有限公司 | System and method for encoding video using a selected tile and tile rotation pattern |
CN101702743A (en) * | 2009-11-04 | 2010-05-05 | 中兴通讯股份有限公司 | Self-adaption adjustment method of mobile terminal browser and device thereof |
CN101799738A (en) * | 2010-01-27 | 2010-08-11 | 华为终端有限公司 | Method and device for dynamically adjusting compression rate of browser |
CN102946418A (en) * | 2012-10-26 | 2013-02-27 | 北京奇虎科技有限公司 | Terminal equipment, picture providing system and picture transmission method |
CN103139292A (en) * | 2013-01-22 | 2013-06-05 | 深圳市深信服电子科技有限公司 | Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system |
CN104426985A (en) * | 2013-09-06 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method, device and system for displaying webpage |
CN103747077A (en) * | 2013-12-31 | 2014-04-23 | 华为技术有限公司 | Transmission mechanism adjusting method, server side and client |
CN105099602A (en) * | 2014-04-25 | 2015-11-25 | 阿里巴巴集团控股有限公司 | File transmission method based on network speed and system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229749A (en) * | 2017-06-27 | 2017-10-03 | 上海地阳实业有限公司 | A kind of wechat H5 webpage making method and system |
CN107229749B (en) * | 2017-06-27 | 2020-05-22 | 上海地阳实业有限公司 | WeChat H5 webpage making method and system |
CN109582889A (en) * | 2018-10-17 | 2019-04-05 | 平安普惠企业管理有限公司 | Picture loading method, device, computer equipment and storage medium |
CN111198732A (en) * | 2018-11-19 | 2020-05-26 | 顺丰科技有限公司 | Theme transformation method and device for electronic equipment |
CN111381749A (en) * | 2018-12-28 | 2020-07-07 | 广州市百果园信息技术有限公司 | Image display and processing method, device, equipment and storage medium |
CN112099873A (en) * | 2020-09-15 | 2020-12-18 | 广州华多网络科技有限公司 | Application program home page loading method, device, equipment and storage medium |
CN112099873B (en) * | 2020-09-15 | 2023-06-02 | 广州华多网络科技有限公司 | Application program home page loading method, device, equipment and storage medium |
CN113286006A (en) * | 2021-06-09 | 2021-08-20 | 维沃移动通信有限公司 | File loading method and device |
CN114090927A (en) * | 2021-11-29 | 2022-02-25 | 中国平安财产保险股份有限公司 | Page loading method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105959502A (en) | Network picture compression method and device | |
CN105898794B (en) | Data transmission device and method | |
CN108021305B (en) | Application association starting method and device and mobile terminal | |
CN106572303A (en) | Picture processing method and terminal | |
CN107241552B (en) | Image acquisition method, device, storage medium and terminal | |
CN106254467A (en) | Sharing files method and device | |
CN106331761A (en) | Live broadcast list display method and apparatuses | |
CN105095227B (en) | The method and device that webpage preloads | |
CN104834665A (en) | Target picture acquiring method and device | |
CN106095465B (en) | Method and device for setting identity image | |
CN108564915B (en) | Brightness adjustment method and related products | |
CN112052897B (en) | Multimedia data shooting method, device, terminal, server and storage medium | |
CN106210496A (en) | Method, photo taking and device | |
US20170249513A1 (en) | Picture acquiring method, apparatus, and storage medium | |
CN106131133B (en) | Browsing history record information viewing method, device and system | |
CN106231152A (en) | The method and device of transmission picture | |
CN107040591A (en) | A kind of method and device being controlled to client | |
CN105208176B (en) | Contact person record processing method and processing device | |
CN107450796B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN106446185A (en) | Product recommendation method and device and server | |
CN110086998B (en) | Shooting method and terminal | |
CN106101773A (en) | Content is with shielding method, device and display device | |
CN112131473B (en) | Information recommendation method, device, equipment and storage medium | |
CN110020145A (en) | A kind of information recommendation method and device | |
CN105160009B (en) | Resource downloading method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160921 |
|
RJ01 | Rejection of invention patent application after publication |