CN104281590A - Picture uploading method, device, application interactive platform, terminal and system - Google Patents

Picture uploading method, device, application interactive platform, terminal and system Download PDF

Info

Publication number
CN104281590A
CN104281590A CN201310277514.7A CN201310277514A CN104281590A CN 104281590 A CN104281590 A CN 104281590A CN 201310277514 A CN201310277514 A CN 201310277514A CN 104281590 A CN104281590 A CN 104281590A
Authority
CN
China
Prior art keywords
picture
client
queue
compression process
upload
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.)
Granted
Application number
CN201310277514.7A
Other languages
Chinese (zh)
Other versions
CN104281590B (en
Inventor
黄渊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310277514.7A priority Critical patent/CN104281590B/en
Priority to PCT/CN2014/081532 priority patent/WO2015000417A1/en
Publication of CN104281590A publication Critical patent/CN104281590A/en
Application granted granted Critical
Publication of CN104281590B publication Critical patent/CN104281590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection 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/00204Connection 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/00209Transmitting or receiving image data, e.g. facsimile data, via a computer, e.g. using e-mail, a computer network, the internet, I-fax
    • H04N1/00222Transmitting 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 image data generation or reproduction, e.g. scan-to-email or network printing
    • H04N1/00228Image push arrangements, e.g. from an image reading device to a specific network destination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection 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/00204Connection 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/00209Transmitting or receiving image data, e.g. facsimile data, via a computer, e.g. using e-mail, a computer network, the internet, I-fax
    • H04N1/00214Transmitting 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/00217Transmitting 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a picture uploading method, device, application interactive platform, terminal and system. The method comprises the steps of receiving a picture selection instruction sent by a client side; arranging the pictures selected by the client side into a pre-compression queue in sequence according to the picture selection instruction; selecting pictures from the pre-compression queue in sequence for compression; uploading the compressed pictures in sequence when the uploading instruction of the client side is received. According to the picture uploading method, device, application interactive platform, terminal and system, in the process that the client side selects the pictures to upload the pictures, the selected pictures are compressed, due to the fact that the process of picture compression is carried out in advance before the client side determines to upload the picture, it is guaranteed that the picture uploading process is faster and more continuous, and the utilization rate of broad band is increased.

Description

Picture upload method, device, application interaction platform, terminal and system
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of precompressed and to contract the method for uploading pictures, device, application interaction platform, terminal and system.
Background technology
Photo upload technology is now very ripe, as the photograph album in QQ space.Due to the restriction by bandwidth etc., during upload pictures, generally first can compress photo, to reduce the size of the photo files uploaded, shorten uplink time.
As shown in Figure 1a, for the very fast uploading control (version of the photo upload plug-in unit used in QQ space) in QQ space or other network album products, the flow process of its upload pictures is generally: select photo-> to click to determine-> to compress photo-> and upload-> and complete.If represent with timing diagram approach, this flow process as shown in Figure 1 b, comprises selection photo, compresses, uploads three threads.
For the situation of batch upload pictures, generally multithreading can be adopted, to enable upload procedure continuous, and can bandwidth be made full use of, to obtain uploading speed faster, its sequential represents flow process as illustrated in figure 1 c: comprise selection photo, compress, upload three threads, its thread 2 comprises multiple compression process, thread 3 comprises multiple upload procedure, and in compression 2 process, carries out the upload procedure of the photo after compressed 1 process compresses simultaneously.
Although above-mentioned photo upload Method compare is fast clear, no matter upload single photo, or batch upload pictures, above-mentioned three threads all do not obtain the most effectively utilizing, and its subject matter existed is as follows:
The time loss compressing 1 process is not utilized effectively; In addition, for in the good situation of network condition, there will be uploading speed very fast, and uplink time is less than the situation of compression time, make compression process become bottleneck thus, as shown in Figure 1 d, 2 processes of uploading, 2 processes to be compressed such as to have to complete, make upload procedure discontinuous thus, reduce the utilization factor of bandwidth.
Summary of the invention
The embodiment of the present invention provides a kind of method of picture uploading, device, application interaction platform, terminal and system, is intended to ensure that picture uploading process is faster more continuous, improves broadband utilization factor.
The embodiment of the present invention proposes a kind of picture upload method, comprising:
Receive the picture selection instruction that client sends;
According to described picture selection instruction, picture selected by client is put into precompression queue successively;
From described precompression queue, choose picture successively carry out compression process;
When receiving the uploading instructions of client, the picture after compression process is uploaded successively.
The embodiment of the present invention also proposes a kind of picture uploading device, comprising:
Receiver module, for receiving the picture selection instruction that client sends;
Add module, for according to described picture selection instruction, picture selected by client is put into precompression queue successively;
Compression processing module, carries out compression process for choosing picture from described precompression queue successively;
Upper transmission module, for when receiving the uploading instructions of client, uploads successively by the picture after compression process.
The embodiment of the present invention also proposes a kind of picture application interaction platform, comprises device as above.
The embodiment of the present invention also proposes a kind of terminal, comprises device as above.
The embodiment of the present invention also proposes a kind of system, the picture application interaction platform comprising client and be connected with this client communication, and described picture application interaction platform is picture application interaction platform as above; Described client is used for sending picture selection instruction and uploading instructions to described picture application interaction platform.
The embodiment of the present invention also proposes a kind of system, the terminal comprising client and be connected with this client communication, and this terminal is terminal as above; Described client is used for sending picture selection instruction and uploading instructions to described terminal.
A kind of method of picture uploading that the embodiment of the present invention proposes, device, application interaction platform, terminal and system, select picture with in the process of uploading pictures in client, compression process is carried out to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
Accompanying drawing explanation
Fig. 1 a is the interface schematic diagram that in prior art, client selects photo;
Fig. 1 b is a kind of flow process time diagram of client upload picture in prior art;
Fig. 1 c is the another kind of flow process time diagram of client upload picture in prior art;
Fig. 1 d is another flow process time diagram of client upload picture in prior art;
Fig. 2 is the schematic flow sheet of picture upload method first embodiment of the present invention;
Fig. 2 a is a kind of flow process time diagram of client upload picture in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of picture upload method second embodiment of the present invention;
Fig. 4 is the schematic flow sheet of picture upload method of the present invention 3rd embodiment;
Fig. 5 is the schematic flow sheet of picture upload method of the present invention 4th embodiment;
Fig. 6 is the schematic flow sheet of picture upload method of the present invention 5th embodiment;
Fig. 7 is the high-level schematic functional block diagram of picture uploading device of the present invention preferred embodiment.
In order to make technical scheme of the present invention clearly, understand, be described in further detail below in conjunction with accompanying drawing.
Embodiment
Solution for embodiment of the invention is mainly: select in the process of picture in client, compression process is carried out to selection picture, the process of compressed picture was carried out in advance before client is determined to upload, to ensure that picture uploading process is faster more continuous, improves broadband utilization factor.
As shown in Figure 2, first embodiment of the invention proposes a kind of picture upload method, comprising:
Step S101, receives the picture selection instruction that client sends;
Shown in composition graphs 1b, Fig. 1 c and Fig. 1 d, owing to being complete after picture is selected in client to compress and upload process picture again in prior art, making upload procedure discontinuous thus, reduce the utilization factor of bandwidth.
The present embodiment is considered: select in the process of picture prior art user, and thread 2(compresses) and thread 3(upload) be all in idle condition (with reference to Fig. 1 b, Fig. 1 c and Fig. 1 d).
In addition, shown in composition graphs 1a, when user selects photo, first browse the thumbnail of all photos, judge whether it is the photo needing to upload one by one.If so, then select it, continue to browse next.If mistake have selected photo, then user can cancel selection.Therefore, can think, before user clicks and determines to upload, which photo user can select be uncertain.
But select the time of the process meeting at substantial of photo, and compress during this period of time and upload thread and be all in idle condition, therefore, the scheme that the present embodiment proposes is: utilize user to select the time of picture to carry out compression process to selected picture in advance, that is, select in the process of picture user, have compressed part picture, when user click determine to upload time, then can start to upload first compressed process after picture, compress thread simultaneously and can also compress remaining picture.Its sequential chart as shown in Figure 2 a.
Particularly, first the picture selection instruction that user is sent by client is received, this client can be the user operation platform of the terminals such as mobile phone, panel computer and PC, user can enter the application interaction platform accordingly with picture associative operation function by this user operation platform, such as, the photograph album in QQ space, thus the picture realizing user adds, uploads, browses and the function such as displaying.
Step S102, according to described picture selection instruction, puts into precompression queue successively by picture selected by client;
When client selects picture to upload described picture, it is to be compressed picture selected by client to be put into precompression queue etc.
Wherein, as a kind of preferred implementation, precompression queue can be put into according to picture successively by the sequencing selected.
Step S103, chooses picture successively and carries out compression process from described precompression queue;
In the present embodiment, the sequencing can putting into precompression queue according to picture is chosen picture successively and is carried out compression process.
That is, once user starts to select picture, then, from the first pictures selected, start compressed picture immediately, to make full use of the time that user selects picture process, improve picture uploading speed.
Step S104, when receiving the uploading instructions of client, uploads successively by the picture after compression process.
When receiving the uploading instructions of client, if the picture in precompression queue all completes compression process, then the picture after compression process is uploaded successively; If the picture in precompression queue all do not complete compression process, then by complete compression process picture upload successively, do not complete compression process picture to be compressed complete after upload.In addition, when considering that user selects picture very fast, also likely there is the situation uploading thread waits compression thread, therefore will consider this situation on stream and carry out synchronous, waiting for that corresponding picture compression is uploaded after completing again.
Can be found out by the sequential chart shown in Fig. 2 a, picture uploading speed is obviously accelerated.
The present embodiment passes through such scheme, select picture with in the process of uploading pictures in client, compression process is carried out to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
As shown in Figure 3, second embodiment of the invention proposes a kind of picture upload method, and on the basis of above-mentioned first embodiment, do further restriction to above-mentioned steps S103, other steps are identical with above-mentioned first embodiment, do not repeat them here.
In the present embodiment, this step S103 can comprise:
Step S1031, when choosing picture successively to carry out compression process from described precompression queue, judging whether described picture is compressed, if so, then skip compression processing procedure, entering step S104; Otherwise, enter step S1032;
Step S1032, carries out compression process to this picture; Enter step S104.
The difference of the present embodiment and above-mentioned first embodiment is, the present embodiment considers that picture that user selects may compressed before or upload, therefore, before picture being carried out to compression process, need to judge whether this picture is compressed, if this picture is compressed, then skip compression processing procedure; If this picture is not compressed, then compression process is carried out to this picture.
Thus by such scheme, before picture being carried out to compression process, judge whether picture is compressed, picture uploading speed can be improved further, improve broadband utilization factor.
As shown in Figure 4, third embodiment of the invention proposes a kind of picture upload method, on the basis of above-mentioned first embodiment, at above-mentioned steps S103: choose successively from precompression queue picture carry out compression process after, the method also comprises:
Step S105, puts into the picture after compression process and uploads queue.
In addition, in the present embodiment, the content of the step S104 in above-mentioned Fig. 2 is replaced with: when receiving the uploading instructions of client, the picture uploaded in queue after compression process is uploaded successively.
Other steps are identical with above-mentioned first embodiment, do not repeat them here.
The difference of the present embodiment and above-mentioned first embodiment is, the present embodiment is after carrying out compression process to picture, also need the picture after by compression process to put into and upload queue, manage to facilitate the picture after to compression process, to be more convenient for the follow-up upload operation of picture, further raising picture uploading speed and continuity, and save broadband resource.
As shown in Figure 5, fourth embodiment of the invention proposes a kind of picture upload method, on the basis of above-mentioned 3rd embodiment, at above-mentioned steps S104: when receiving the uploading instructions of client, before being uploaded successively by picture after compression process, the method can also comprise:
Step S1041, before receiving the uploading instructions of client, when selection instruction cancelled by the picture receiving client, judges whether the picture being cancelled selection is compressed, if so, then enters step S1042; Otherwise, enter step S1043;
Step S1042, shifting out the described picture being cancelled selection from uploading queue, not making upload process; Enter step S104;
Step S1043, shifts out described precompression queue by the described picture being cancelled selection; Enter step S104.
Other steps are identical with above-mentioned 3rd embodiment, do not repeat them here.
The difference of the present embodiment and above-mentioned 3rd embodiment is, the present embodiment considers that user is when selecting picture, may produce maloperation, such as have selected the picture that wouldn't like to upload, although or have selected picture, abandon again afterwards uploading this picture, and change into and upload other pictures, etc.
Therefore, user cancel select a certain picture time, upload after this is compressed process by the picture be cancelled again after selecting, cause the waste of broadband resource, the present embodiment adopts following scheme:
When user selects to cancel the picture selected, judge whether the picture being cancelled selection is compressed, if this picture is compressed, then being shifted out from uploading queue by the described picture being cancelled selection, not making upload process; If this picture is not compressed, then the described picture being cancelled selection is shifted out precompression queue; That is, once user starts to select picture photo, from first by the picture selected, carry out the compression process of picture immediately, if and user eliminates certain pictures, then shifted out compression queue, to save system resource, further raising picture uploading speed and continuity, reduce broadband resource waste.
As shown in Figure 6, fifth embodiment of the invention proposes a kind of picture upload method, on the basis of above-mentioned first embodiment, at above-mentioned steps S101: can also comprise after receiving the picture selection instruction of client transmission:
Step S1011, to current selected picture by picture path and associated compression parameter generating pictures mark, to distinguish different picture.
Other steps are identical with above-mentioned first embodiment, do not repeat them here.
The difference of the present embodiment and above-mentioned first embodiment is, the present embodiment, after user selects picture, identifies this picture, specifically can by picture path and associated compression parameter generating pictures mark, to distinguish different picture, facilitate subsequent compression and upload process.
As a kind of embodiment, above-mentioned picture identification is specifically as follows MD5(Message Digest Algorithm MD5, Chinese Message Digest Algorithm 5 by name) mark.
The present embodiment, by such scheme, when client selects picture, identifies this picture; Select in client in the process of picture, compression process is carried out to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
As shown in Figure 7, present pre-ferred embodiments proposes a kind of picture uploading device, comprising: receiver module 201, interpolation module 202, compression processing module 203 and upper transmission module 204, wherein:
Receiver module 201, for receiving the picture selection instruction that client sends;
Add module 202, for according to described picture selection instruction, picture selected by client is put into precompression queue successively;
Compression processing module 203, carries out compression process for choosing picture from described precompression queue successively;
Upper transmission module 204, for when receiving the uploading instructions of client, uploads successively by the picture after compression process.
Shown in composition graphs 1b, Fig. 1 c and Fig. 1 d, owing to being complete after picture is selected in client to compress and upload process picture again in prior art, making upload procedure discontinuous thus, reduce the utilization factor of bandwidth.
The present embodiment is considered: select in the process of picture prior art user, and thread 2(compresses) and thread 3(upload) be all in idle condition (with reference to Fig. 1 b, Fig. 1 c and Fig. 1 d).
In addition, shown in composition graphs 1a, when user selects photo, first browse the thumbnail of all photos, judge whether it is the photo needing to upload one by one.If so, then select it, continue to browse next.If mistake have selected photo, then user can cancel selection.Therefore, can think, before user clicks and determines to upload, which photo user can select be uncertain.
But select the time of the process meeting at substantial of photo, and compress during this period of time and upload thread and be all in idle condition, therefore, the scheme that the present embodiment proposes is: utilize user to select the time of picture to carry out compression process to selected picture in advance, that is, select in the process of picture user, have compressed part picture, when user click determine to upload time, then can start to upload first compressed process after picture, compress thread simultaneously and can also compress remaining picture.Its sequential chart as shown in Figure 2 a.
Particularly, first receiver module 201 receives the picture selection instruction that user is sent by client, this client can be the user operation platform of the terminals such as mobile phone, panel computer and PC, user can enter the application interaction platform accordingly with picture associative operation function by this user operation platform, such as, the photograph album in QQ space, thus the picture realizing user adds, uploads, browses and the function such as displaying.
When client selects picture to upload described picture, adding module 202, picture selected by client to be put into precompression queue etc. to be compressed.
Wherein, as a kind of preferred implementation, precompression queue can be put into according to picture successively by the sequencing selected.
Then, compress processing module 203 to choose picture successively according to the sequencing that precompression queue put into by picture and carry out compression and process.
Upper transmission module 204 is when receiving the uploading instructions of client, if the picture in precompression queue all completes compression process, is then uploaded successively by the picture after compression process; If the picture in precompression queue all do not complete compression process, then by complete compression process picture upload successively, do not complete compression process picture to be compressed complete after upload.
Can be found out by the sequential chart shown in Fig. 2 a, picture uploading speed is obviously accelerated.
The present embodiment passes through such scheme, select picture with in the process of uploading pictures in client, compression process is carried out to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
In embodiment further, when described compression processing module 203 also for choosing picture successively to carry out compression process from described precompression queue, judge whether described picture is compressed, if so, then skip compression processing procedure; Otherwise, compression process is carried out to this picture.
Particularly, consider that picture that user selects may, to have been compressed before or uploaded, therefore, before picture being carried out to compression process, need to judge whether this picture is compressed, if this picture is compressed, then skip compression processing procedure; If this picture is not compressed, then compression process is carried out to this picture.
Thus by such scheme, before picture being carried out to compression process, judge whether picture is compressed, picture uploading speed can be improved further, improve broadband utilization factor.
In embodiment further, described compression processing module 203 is also for after carrying out compression process to picture, picture after compression process is put into and uploads queue, manage to facilitate the picture after to compression process, to be more convenient for the follow-up upload operation of picture, further raising picture uploading speed and continuity, and save broadband resource.
In embodiment further, described compression processing module 203 is also for before receiving the uploading instructions of client, when selection instruction cancelled by the picture receiving client, judge whether the picture being cancelled selection is compressed, if, then the described picture being cancelled selection being shifted out from uploading queue, not making upload process; Otherwise, the described picture being cancelled selection is shifted out described precompression queue.
Such scheme considers that user is when selecting picture, may produce maloperation, such as have selected the picture that wouldn't like to upload, although or have selected picture, abandon again afterwards uploading this picture, and change into and upload other pictures, etc.
Therefore, user cancel select a certain picture time, upload after this is compressed process by the picture be cancelled again after selecting, cause the waste of broadband resource, following scheme can be adopted:
When user selects to cancel the picture selected, judge whether the picture being cancelled selection is compressed, if this picture is compressed, then being shifted out from uploading queue by the described picture being cancelled selection, not making upload process; If this picture is not compressed, then the described picture being cancelled selection is shifted out precompression queue, to save system resource, improve picture uploading speed and continuity further, reduce broadband resource waste.
Further, as a kind of embodiment, described interpolation module 202 is also for identifying, to distinguish different picture by picture path and associated compression parameter generating pictures current selected picture.
Particularly, after user selects picture, this picture is identified, specifically by picture path and associated compression parameter generating pictures mark, to distinguish different picture, subsequent compression and upload process can be facilitated.
As a kind of embodiment, above-mentioned picture identification is specifically as follows MD5(Message Digest Algorithm 5) mark.
The present embodiment, by such scheme, when client selects picture, identifies this picture; Select in client in the process of picture, compression process is carried out to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
In addition, the embodiment of the present invention also proposes a kind of picture application interaction platform, comprises the device described in above-described embodiment.The picture selection instruction that this device sends for receiving client; According to described picture selection instruction, picture selected by client is put into precompression queue successively; From described precompression queue, choose picture successively carry out compression process; When receiving the uploading instructions of client, the picture after compression process is uploaded successively.
Its concrete function feature and principle, please refer to above-described embodiment, do not repeat them here.
The present embodiment passes through such scheme, select picture with in the process of uploading pictures in client, compression process is carried out to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
In addition, the embodiment of the present invention also proposes a kind of terminal, comprises the device described in above-described embodiment.The picture selection instruction that this device sends for receiving client; According to described picture selection instruction, picture selected by client is put into precompression queue successively; From described precompression queue, choose picture successively carry out compression process; When receiving the uploading instructions of client, the picture after compression process is uploaded successively.
Its concrete function feature and principle, please refer to above-described embodiment, do not repeat them here.
The present embodiment passes through such scheme, select picture with in the process of uploading pictures in client, compression process is carried out to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
In addition, the embodiment of the present invention also proposes a kind of system, the picture application interaction platform comprising client and be connected with this client communication, and described client is used for sending picture selection instruction and uploading instructions to described picture application interaction platform; Described picture application interaction platform can for the picture application interaction platform described in above-described embodiment; For receiving the picture selection instruction that client sends; According to described picture selection instruction, picture selected by client is put into precompression queue successively; From described precompression queue, choose picture successively carry out compression process; When receiving the uploading instructions of client, the picture after compression process is uploaded successively.
Particularly, shown in composition graphs 1b, Fig. 1 c and Fig. 1 d, owing to being complete after picture is selected in client to compress and upload process picture again in prior art, making upload procedure discontinuous thus, reduce the utilization factor of bandwidth.
The present embodiment is considered: select in the process of picture prior art user, and thread 2(compresses) and thread 3(upload) be all in idle condition (with reference to Fig. 1 b, Fig. 1 c and Fig. 1 d).
In addition, shown in composition graphs 1a, when user selects photo, first browse the thumbnail of all photos, judge whether it is the photo needing to upload one by one.If so, then select it, continue to browse next.If mistake have selected photo, then user can cancel selection.Therefore, can think, before user clicks and determines to upload, which photo user can select be uncertain.
But select the time of the process meeting at substantial of photo, and compress during this period of time and upload thread and be all in idle condition, therefore, the scheme that the present embodiment proposes is: utilize user to select the time of picture to carry out compression process to selected picture in advance, that is, select in the process of picture user, have compressed part picture, when user click determine to upload time, then can start to upload first compressed process after picture, compress thread simultaneously and can also compress remaining picture.Its sequential chart as shown in Figure 2 a.
Particularly, first the picture selection instruction that user is sent by client is received, this client can be the user operation platform of the terminals such as mobile phone, panel computer and PC, user can enter the application interaction platform accordingly with picture associative operation function by this user operation platform, such as, the photograph album in QQ space, thus the picture realizing user adds, uploads, browses and the function such as displaying.
When client selects picture to upload described picture, it is to be compressed that precompression queue etc. put into by picture selected by client by picture application interaction platform.
Wherein, as a kind of preferred implementation, picture application interaction platform can be put into precompression queue according to picture by the sequencing selected successively.
Then, picture application interaction platform is chosen picture successively according to the sequencing that precompression queue put into by picture and is carried out compression process.
When receiving the uploading instructions of client, if the picture in precompression queue all completes compression process, then the picture after compression process is uploaded by picture application interaction platform successively; If the picture in precompression queue all do not complete compression process, then picture application interaction platform by complete compression process picture upload successively, do not complete compression process picture to be compressed complete after upload.
Can be found out by the sequential chart shown in Fig. 2 a, picture uploading speed is obviously accelerated.
The present embodiment passes through such scheme, select picture with in the process of uploading pictures in client, picture application interaction platform carries out compression process to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
In embodiment further, when picture application interaction platform also for choosing picture successively to carry out compression process from described precompression queue, judge whether described picture is compressed, if so, then skip compression processing procedure; Otherwise, compression process is carried out to this picture.
Particularly, consider that picture that user selects may compressed before or upload, therefore, picture application interaction platform is before carrying out compression process to picture, need to judge whether this picture is compressed, if this picture is compressed, then skip compression processing procedure; If this picture is not compressed, then compression process is carried out to this picture.
Thus by such scheme, picture application interaction platform judged whether picture is compressed before picture being carried out to compression process, can improve picture uploading speed further, improved broadband utilization factor.
In embodiment further, described picture application interaction platform is also for after carrying out compression process to picture, picture after compression process is put into and uploads queue, manage to facilitate the picture after to compression process, to be more convenient for the follow-up upload operation of picture, further raising picture uploading speed and continuity, and save broadband resource.
In embodiment further, described picture application interaction platform is also for before receiving the uploading instructions of client, when selection instruction cancelled by the picture receiving client, judge whether the picture being cancelled selection is compressed, if, then the described picture being cancelled selection being shifted out from uploading queue, not making upload process; Otherwise, the described picture being cancelled selection is shifted out described precompression queue.
Such scheme considers that user is when selecting picture, may produce maloperation, such as have selected the picture that wouldn't like to upload, although or have selected picture, abandon again afterwards uploading this picture, and change into and upload other pictures, etc.
Therefore, user cancel select a certain picture time, upload after this is compressed process by the picture be cancelled again after selecting, cause the waste of broadband resource, following scheme can be adopted:
Picture application interaction platform, when user selects to cancel the picture selected, judges whether the picture being cancelled selection is compressed, if this picture is compressed, then being shifted out from uploading queue by the described picture being cancelled selection, not making upload process; If this picture is not compressed, then the described picture being cancelled selection is shifted out precompression queue, to save system resource, improve picture uploading speed and continuity further, reduce broadband resource waste.
Further, as a kind of embodiment, described picture application interaction platform is also for identifying, to distinguish different picture by picture path and associated compression parameter generating pictures current selected picture.
Particularly, after user selects picture, picture application interaction platform identifies this picture, specifically by picture path and associated compression parameter generating pictures mark, to distinguish different picture, can facilitate subsequent compression and upload process.
As a kind of embodiment, above-mentioned picture identification is specifically as follows MD5(Message Digest Algorithm 5) mark.
The present embodiment is by such scheme, and when client selects picture, picture application interaction platform identifies this picture; Select in client in the process of picture, compression process is carried out to selection picture, thus the process of compressed picture was carried out in advance before client is determined to upload, ensure that picture uploading process is faster more continuous thus, and improve broadband utilization factor.
In addition, the embodiment of the present invention also proposes a kind of system, the terminal comprising client and be connected with this client communication; Described client is used for sending picture selection instruction and uploading instructions to described terminal.Described terminal can for the terminal described in above-described embodiment, and this terminal comprises the device described in above-described embodiment.The picture selection instruction that this device sends for receiving client; According to described picture selection instruction, picture selected by client is put into precompression queue successively; From described precompression queue, choose picture successively carry out compression process; When receiving the uploading instructions of client, the picture after compression process is uploaded successively.Its concrete function feature and principle, please refer to above-described embodiment, do not repeat them here.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, or the network equipment etc.) perform method described in each embodiment of the present invention.Particularly, the programmed instruction described in Fig. 7 corresponding to picture uploading device can be stored in the readable storage medium storing program for executing of terminal or picture application interaction platform, and is performed by least one processor wherein, to realize the picture upload method described in Fig. 2 to Fig. 6.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or flow process conversion; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (17)

1. a picture upload method, is characterized in that, comprising:
Receive the picture selection instruction that client sends;
According to described picture selection instruction, picture selected by client is put into precompression queue successively;
From described precompression queue, choose picture successively carry out compression process;
When receiving the uploading instructions of client, the picture after compression process is uploaded successively.
2. method according to claim 1, is characterized in that, also comprises:
When choosing picture successively to carry out compression process from described precompression queue, judge whether described picture is compressed, if so, then skip compression processing procedure; Otherwise, compression process is carried out to this picture.
3. method according to claim 1, is characterized in that, described choosing successively from precompression queue after picture carries out compressing the step of process comprises:
Picture after compression process is put into and uploads queue.
4. method according to claim 3, is characterized in that, before receiving the uploading instructions of client, also comprises:
When selection instruction cancelled by the picture receiving client, judge whether the picture being cancelled selection is compressed, if so, then being shifted out from uploading queue by the described picture being cancelled selection, not making upload process; Otherwise, the described picture being cancelled selection is shifted out described precompression queue.
5. method according to claim 1, is characterized in that, also comprises after the step of the picture selection instruction that described reception client sends:
To current selected picture by picture path and associated compression parameter generating pictures mark, to distinguish different picture.
6. method according to claim 5, is characterized in that, described picture identification is MD5 mark.
7. the method according to any one of claim 1-6, is characterized in that, described when receiving the uploading instructions of client, the step that the picture after compression process is uploaded successively is comprised:
When receiving the uploading instructions of client, if the picture in described precompression queue all completes compression process, then the picture after compression process is uploaded successively; If the picture in described precompression queue all do not complete compression process, then by complete compression process picture upload successively, do not complete compression process picture to be compressed complete after upload.
8. a picture uploading device, is characterized in that, comprising:
Receiver module, for receiving the picture selection instruction that client sends;
Add module, for according to described picture selection instruction, picture selected by client is put into precompression queue successively;
Compression processing module, carries out compression process for choosing picture from described precompression queue successively;
Upper transmission module, for when receiving the uploading instructions of client, uploads successively by the picture after compression process.
9. device according to claim 8, is characterized in that, when described compression processing module also for choosing picture successively to carry out compression process from described precompression queue, judges whether described picture is compressed, if so, then skip compression processing procedure; Otherwise, compression process is carried out to this picture.
10. device according to claim 8, is characterized in that, described compression processing module also uploads queue for being put into by the picture after compression process.
11. devices according to claim 10, it is characterized in that, described compression processing module is also for before receiving the uploading instructions of client, when selection instruction cancelled by the picture receiving client, judge whether the picture being cancelled selection is compressed, if so, then the described picture being cancelled selection being shifted out from uploading queue, not making upload process; Otherwise, the described picture being cancelled selection is shifted out described precompression queue.
12. devices according to claim 8, is characterized in that, described interpolation module is also for identifying, to distinguish different picture by picture path and associated compression parameter generating pictures current selected picture.
13. devices according to Claim 8 according to any one of-12, it is characterized in that, described upper transmission module is also for when receiving the uploading instructions of client, if the picture in described precompression queue all completes compression process, is then uploaded successively by the picture after compression process; If the picture in described precompression queue all do not complete compression process, then by complete compression process picture upload successively, do not complete compression process picture to be compressed complete after upload.
14. 1 kinds of picture application interaction platforms, is characterized in that, comprise the device according to any one of claim 8-13.
15. 1 kinds of terminals, is characterized in that, comprise the device according to any one of claim 8-13.
16. 1 kinds of systems, is characterized in that, the picture application interaction platform comprising client and be connected with this client communication, and described picture application interaction platform is picture application interaction platform according to claim 14; Described client is used for sending picture selection instruction and uploading instructions to described picture application interaction platform.
17. 1 kinds of systems, is characterized in that, the terminal comprising client and be connected with this client communication, and this terminal is terminal according to claim 15; Described client is used for sending picture selection instruction and uploading instructions to described terminal.
CN201310277514.7A 2013-07-03 2013-07-03 Picture uploading method and device, application interaction platform, terminal and system Active CN104281590B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310277514.7A CN104281590B (en) 2013-07-03 2013-07-03 Picture uploading method and device, application interaction platform, terminal and system
PCT/CN2014/081532 WO2015000417A1 (en) 2013-07-03 2014-07-03 Method, apparatus, application interactive platform, terminal, and system for uploading an image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310277514.7A CN104281590B (en) 2013-07-03 2013-07-03 Picture uploading method and device, application interaction platform, terminal and system

Publications (2)

Publication Number Publication Date
CN104281590A true CN104281590A (en) 2015-01-14
CN104281590B CN104281590B (en) 2020-02-18

Family

ID=52143116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310277514.7A Active CN104281590B (en) 2013-07-03 2013-07-03 Picture uploading method and device, application interaction platform, terminal and system

Country Status (2)

Country Link
CN (1) CN104281590B (en)
WO (1) WO2015000417A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106998487A (en) * 2017-04-27 2017-08-01 努比亚技术有限公司 image processing method, device and mobile terminal
CN112351069A (en) * 2020-09-30 2021-02-09 银盛通信有限公司 System and method for automatic data uploading and maintaining transmission stability
CN112565464A (en) * 2021-01-22 2021-03-26 杭州米络星科技(集团)有限公司 Method for uploading file custom bit sequence

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120645A (en) * 2018-10-25 2019-01-01 北京大米未来科技有限公司 A kind of file uploading method, device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626376A (en) * 2009-08-04 2010-01-13 中国联合网络通信集团有限公司 Set-top box (STB) file uploading methods, STB file uploading device and STB file uploading system based on internet protocol television (IPTV)
CN101699822A (en) * 2009-08-06 2010-04-28 腾讯科技(深圳)有限公司 File uploading method and device, and mass storage system
CN102104692A (en) * 2009-12-22 2011-06-22 上海博路信息技术有限公司 Method for obtaining content of publication on basis of bar code scanned by mobile phone
CN103106252A (en) * 2013-01-16 2013-05-15 浙江大学 Method for using handheld device to position plane area

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447369B2 (en) * 2003-03-07 2008-11-04 Ricoh Co., Ltd. Communication of compressed digital images
CN101551915A (en) * 2009-04-22 2009-10-07 腾讯数码(天津)有限公司 An image processing method and device
CN102291506B (en) * 2010-06-21 2015-10-07 腾讯科技(深圳)有限公司 The method of picture uploading and device
CN102685072B (en) * 2011-03-11 2016-09-14 腾讯科技(深圳)有限公司 The method of uploading pictures and terminal unit
CN102508851A (en) * 2011-09-27 2012-06-20 深圳市五巨科技有限公司 Image upload processing method and image upload processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626376A (en) * 2009-08-04 2010-01-13 中国联合网络通信集团有限公司 Set-top box (STB) file uploading methods, STB file uploading device and STB file uploading system based on internet protocol television (IPTV)
CN101699822A (en) * 2009-08-06 2010-04-28 腾讯科技(深圳)有限公司 File uploading method and device, and mass storage system
CN102104692A (en) * 2009-12-22 2011-06-22 上海博路信息技术有限公司 Method for obtaining content of publication on basis of bar code scanned by mobile phone
CN103106252A (en) * 2013-01-16 2013-05-15 浙江大学 Method for using handheld device to position plane area

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LAOFIAN: "终端上的图片快速收发方案设计", 《HTTPS://WENKU.BAIDU.COM/VIEW/CDA4B0DEB14E852458FB5785.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106998487A (en) * 2017-04-27 2017-08-01 努比亚技术有限公司 image processing method, device and mobile terminal
CN112351069A (en) * 2020-09-30 2021-02-09 银盛通信有限公司 System and method for automatic data uploading and maintaining transmission stability
CN112565464A (en) * 2021-01-22 2021-03-26 杭州米络星科技(集团)有限公司 Method for uploading file custom bit sequence

Also Published As

Publication number Publication date
CN104281590B (en) 2020-02-18
WO2015000417A1 (en) 2015-01-08

Similar Documents

Publication Publication Date Title
CN107465936B (en) Live broadcast list mirror image display method, live broadcast platform server and client
CN106803989B (en) Multi-screen interaction method and device and terminal equipment
CN103973547B (en) Picture display method and device
CN106375483A (en) File transmission method and device
CN106951220B (en) Data processing method and device
CN108574722B (en) Resource synchronization method, device and system
CN104281590A (en) Picture uploading method, device, application interactive platform, terminal and system
CN105404455A (en) Method and apparatus for performing screen capture on mobile terminal by utilizing terminal
CN105469381B (en) Information processing method and terminal
CN103577320A (en) Testing method and system of remote terminals
CN105245959B (en) Interface channel maintenance system and method in a kind of more equipment linkages service
CN104410680A (en) Method, client terminal, server and system of sharing file/file folder
CN102572072A (en) Mobile phone video preview method, video preview control device, and mobile phone with device
CN105142012A (en) Smart television live channel list acquiring, channel switching and one-screen watching method
CN106331089A (en) Video play control method and system
CN109388737B (en) Method and device for sending exposure data of content item and storage medium
CN112346887A (en) Data processing method, data processing device, display device and computer-readable storage medium
CN110944003A (en) File transmission method and electronic equipment
CN108694009A (en) terminal control method and device
CN105306543A (en) Picture sharing method and device
CN113839998B (en) Image data transmission method, apparatus, device, storage medium, and program product
CN105472406A (en) Powerpoint display method and system
CN106302670B (en) A kind of picture update method, communication terminal and server
US20150293914A1 (en) Multimedia information processing method, multimedia apparatus, and multimedia network system
CN102355588B (en) A kind of method and system of synchronous browsing electron album

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant