CN104281590B - Picture uploading method and device, application interaction platform, terminal and system - Google Patents

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

Info

Publication number
CN104281590B
CN104281590B CN201310277514.7A CN201310277514A CN104281590B CN 104281590 B CN104281590 B CN 104281590B CN 201310277514 A CN201310277514 A CN 201310277514A CN 104281590 B CN104281590 B CN 104281590B
Authority
CN
China
Prior art keywords
picture
pictures
uploading
client
compressed
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.)
Active
Application number
CN201310277514.7A
Other languages
Chinese (zh)
Other versions
CN104281590A (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

Images

Classifications

    • 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
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • 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)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a picture uploading method, a picture uploading device, an application interaction platform, a terminal and a picture uploading system, wherein the method comprises the following steps: receiving a picture selection instruction sent by a client; sequentially placing the pictures selected by the client into a pre-compression queue according to the picture selection instruction; sequentially selecting pictures from the pre-compression queue for compression processing; and when an uploading instruction of the client is received, sequentially uploading the compressed pictures. According to the invention, the selected pictures are compressed in the process of selecting the pictures at the client side and uploading the pictures, so that the process of compressing the pictures is carried out in advance before the client side determines to upload the pictures, thereby ensuring that the picture uploading process is faster and more continuous, and improving the utilization rate of the broadband.

Description

Picture uploading method and device, application interaction platform, terminal and system
Technical Field
The invention relates to the technical field of internet, in particular to a method, a device, an application interaction platform, a terminal and a system for compressing and uploading pictures.
Background
Photo uploading technology is now well established, such as photo albums in QQ space. Due to the limitation of bandwidth and the like, when uploading photos, the photos are generally compressed first, so as to reduce the size of the uploaded photo files and shorten the uploading time.
As shown in fig. 1a, for the fast upload control of the QQ space (a version of the photo upload plug-in used in the QQ space) or other network album products, the flow of uploading photos is generally as follows: select photo- > click determine- > compress photo- > upload- > finish. If presented in a timing diagram, the process is shown in FIG. 1b, and includes three threads, selecting photos, compressing, and uploading.
For batch uploading photos, a multithreading technique is generally adopted to enable the uploading process to be continuous, and the bandwidth can be fully utilized to obtain a faster uploading speed, and the timing display flow is shown in fig. 1 c: the method comprises three threads of photo selection, compression and uploading, wherein the thread 2 comprises a plurality of compression processes, the thread 3 comprises a plurality of uploading processes, and in the compression 2 process, the uploading process of the photos compressed by the compression 1 process is carried out simultaneously.
Although the above-mentioned photo uploading method is relatively clear and fast, no matter uploading a single photo or uploading photos in batches, the above three threads are not utilized most effectively, and the main problems are as follows:
the time loss of the compression 1 process is not effectively utilized; in addition, under the condition of better network conditions, the uploading speed is high, and the uploading time is shorter than the compression time, so that the compression process becomes a bottleneck, as shown in fig. 1d, the uploading process 2 has to wait for the completion of the compression process 2, so that the uploading process is discontinuous, and the utilization rate of the bandwidth is reduced.
Disclosure of Invention
The embodiment of the invention provides a method, a device, an application interaction platform, a terminal and a system for uploading pictures, and aims to ensure that the picture uploading process is faster and more continuous and the broadband utilization rate is improved.
The embodiment of the invention provides a picture uploading method, which comprises the following steps:
receiving a picture selection instruction sent by a client;
according to the picture selection instruction, sequentially placing the pictures selected by the client into a pre-compression queue;
sequentially selecting pictures from the pre-compression queue for compression processing;
and when an uploading instruction of the client is received, sequentially uploading the compressed pictures.
The embodiment of the present invention further provides an image uploading apparatus, including:
the receiving module is used for receiving a picture selection instruction sent by the client;
the adding module is used for sequentially placing the pictures selected by the client into a pre-compression queue according to the picture selection instruction;
the compression processing module is used for sequentially selecting pictures from the pre-compression queue to carry out compression processing;
and the uploading module is used for sequentially uploading the compressed pictures when an uploading instruction of the client is received.
The embodiment of the invention also provides a picture application interaction platform which comprises the device.
The embodiment of the invention also provides a terminal which comprises the device.
The embodiment of the invention also provides a system, which comprises a client and a picture application interaction platform in communication connection with the client, wherein the picture application interaction platform is the picture application interaction platform; and the client is used for sending a picture selection instruction and an uploading instruction to the picture application interaction platform.
The embodiment of the invention also provides a system, which comprises a client and a terminal in communication connection with the client, wherein the terminal is the terminal; the client is used for sending a picture selection instruction and an uploading instruction to the terminal.
According to the method, the device, the application interaction platform, the terminal and the system for uploading the pictures, the selected pictures are compressed in the process that the client selects the pictures to upload the pictures, so that the process of compressing the pictures is performed in advance before the client determines to upload the pictures, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
Drawings
FIG. 1a is a schematic diagram of a prior art interface for a client to select a photo;
FIG. 1b is a timing diagram illustrating a process of uploading pictures by a client according to the prior art;
FIG. 1c is a timing diagram illustrating another process for uploading pictures by a client according to the prior art;
FIG. 1d is a timing diagram illustrating another prior art process for uploading pictures by a client;
fig. 2 is a schematic flowchart of a first embodiment of a picture uploading method according to the present invention;
FIG. 2a is a timing diagram illustrating a process of uploading pictures by a client according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a picture uploading method according to the present invention;
fig. 4 is a flowchart illustrating a third embodiment of a picture uploading method according to the present invention;
fig. 5 is a flowchart illustrating a fourth embodiment of a picture uploading method according to the present invention;
fig. 6 is a flowchart illustrating a fifth embodiment of a picture uploading method according to the present invention;
fig. 7 is a functional block diagram of a preferred embodiment of a picture uploading apparatus according to the present invention.
In order to make the technical solution of the present invention clearer and clearer, the following detailed description is made with reference to the accompanying drawings.
Detailed Description
The solution of the embodiment of the invention is mainly as follows: in the process of selecting the pictures by the client, the selected pictures are compressed, and the process of compressing the pictures is performed in advance before the client determines to upload the pictures, so that the uploading process of the pictures is faster and more continuous, and the utilization rate of the broadband is improved.
As shown in fig. 2, a first embodiment of the present invention provides a method for uploading a picture, including:
step S101, receiving a picture selection instruction sent by a client;
as shown in fig. 1b, fig. 1c, and fig. 1d, since the picture is compressed and uploaded after the client completes picture selection in the prior art, the uploading process is discontinuous, and the utilization rate of the bandwidth is reduced.
The present embodiment takes into account: in the process of selecting a picture by a user in the prior art, both thread 2 (compression) and thread 3 (upload) are in an idle state (refer to fig. 1b, 1c, and 1 d).
In addition, as shown in fig. 1a, when the user selects a photo, the user first views thumbnails of all photos and determines whether the photos need to be uploaded one by one. If so, it is selected and browsing continues to the next one. If the photo is selected incorrectly, the user deselects. Thus, it is believed that the user will select which photos are indeterminate before the user clicks on certain uploads.
However, the process of selecting a photo takes a lot of time, and the time compression and uploading threads are both in an idle state, so the solution proposed in this embodiment is: the time of selecting the picture by the user is utilized to compress the selected picture in advance, that is, in the process of selecting the picture by the user, part of the picture is already compressed, when the user clicks and determines to upload, the first picture after compression processing can be uploaded, and meanwhile, the compression thread can also compress the rest pictures. The timing diagram is shown in fig. 2 a.
Specifically, firstly, a picture selection instruction sent by a user through a client is received, the client can be a user operation platform of a terminal such as a mobile phone, a tablet computer and a PC, and the user can enter a corresponding application interaction platform with a picture related operation function through the user operation platform, for example, a photo album in a QQ space, so that functions of adding, uploading, browsing, displaying and the like of the picture of the user are realized.
Step S102, according to the picture selection instruction, the pictures selected by the client are sequentially placed into a pre-compression queue;
when the client selects the picture to upload the picture, the picture selected by the client is placed in a pre-compression queue to wait for compression.
As a preferred embodiment, the pre-compression queues may be sequentially placed in the order in which the pictures are selected.
Step S103, selecting pictures from the pre-compression queue in sequence for compression processing;
in this embodiment, the pictures may be sequentially selected according to the order in which the pictures are placed in the pre-compression queue for compression.
That is, once the user starts to select a picture, the picture compression is started immediately from the first picture selected, so as to fully utilize the time of the picture selection process of the user and improve the picture uploading speed.
And step S104, when an uploading instruction of the client is received, sequentially uploading the compressed pictures.
When an uploading instruction of a client is received, if all the pictures in the pre-compression queue are compressed, the compressed pictures are sequentially uploaded; if the pictures in the pre-compression queue are not completely compressed, the pictures which are completely compressed are sequentially uploaded, and the pictures which are not completely compressed are uploaded after the compression is completed. In addition, when the user selects the picture very quickly, the situation that the uploading thread waits for the compression thread may occur, so that the situation is considered in the process and is well synchronized, and the picture is uploaded after the compression of the corresponding picture is completed.
As can be seen from the timing diagram shown in fig. 2a, the image uploading speed is significantly increased.
According to the scheme, in the process of selecting the picture by the client to upload the picture, the selected picture is compressed, so that the process of compressing the picture is performed in advance before the client determines to upload the picture, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
As shown in fig. 3, a second embodiment of the present invention provides a method for uploading a picture, which is further limited to the step S103 on the basis of the first embodiment, and other steps are the same as those in the first embodiment and are not repeated herein.
In this embodiment, the step S103 may include:
step S1031, when the pictures are sequentially selected from the pre-compression queue for compression processing, judging whether the pictures are compressed, if so, skipping the compression processing process, and entering step S104; otherwise, go to step S1032;
step S1032, compress the picture; the process advances to step S104.
The difference between this embodiment and the first embodiment is that this embodiment considers that the picture selected by the user may have been compressed or uploaded before, and therefore, before the picture is compressed, it needs to be determined whether the picture has been compressed, and if the picture has been compressed, the compression process is skipped; and if the picture is not compressed, compressing the picture.
Therefore, by the scheme, whether the picture is compressed or not is judged before the picture is compressed, the picture uploading speed can be further increased, and the broadband utilization rate is increased.
As shown in fig. 4, a third embodiment of the present invention provides a picture uploading method, in which, on the basis of the first embodiment, in the step S103: after the pictures are sequentially selected from the pre-compression queue for compression processing, the method further comprises the following steps:
and step S105, putting the compressed pictures into an uploading queue.
Further, in the present embodiment, the content of step S104 in fig. 2 described above is replaced with: and when an uploading instruction of the client is received, sequentially uploading the compressed pictures in the uploading queue.
Other steps are the same as those in the first embodiment, and are not described herein again.
The difference between this embodiment and the first embodiment is that after the image is compressed, the image after the compression processing needs to be put into an upload queue, so as to facilitate management of the image after the compression processing, facilitate subsequent upload operation of the image, further improve the upload speed and continuity of the image, and save broadband resources.
As shown in fig. 5, a fourth embodiment of the present invention provides a picture uploading method, based on the third embodiment, in the step S104: when an uploading instruction of the client is received, before the compressed pictures are sequentially uploaded, the method may further include:
step S1041, before receiving an upload instruction of the client, when receiving a picture deselection instruction of the client, determining whether the deselected picture is compressed, if yes, entering step S1042; otherwise, go to step S1043;
step S1042, removing the deselected picture from the uploading queue without uploading; entering step S104;
step S1043, removing the deselected picture from the pre-compression queue; the process advances to step S104.
Other steps are the same as those in the third embodiment, and are not described again.
The difference between this embodiment and the third embodiment is that this embodiment considers that when the user selects a picture, an error operation may occur, such as selecting a picture that is not to be uploaded, or selecting a picture, but abandoning uploading the picture later and uploading another picture instead, and so on.
Therefore, when the user deselects a certain picture, in order to avoid that the picture that has been deselected and then cancelled is compressed and then uploaded, which causes waste of broadband resources, the following scheme is adopted in the embodiment:
when a user selects to cancel the selected picture, judging whether the deselected picture is compressed or not, if so, removing the deselected picture from an uploading queue without uploading; if the picture is not compressed, removing the deselected picture from a pre-compression queue; that is to say, once the user starts to select the picture photos, the compression processing of the pictures is immediately performed from the first selected picture, and if the user cancels a certain picture, the picture is moved out of the compression queue, so as to save system resources, further improve the uploading speed and continuity of the pictures and reduce the waste of broadband resources.
As shown in fig. 6, a fifth embodiment of the present invention provides a picture uploading method, where on the basis of the first embodiment, in the step S101: after receiving the picture selection instruction sent by the client, the method may further include:
step S1011, a picture identifier is generated for the currently selected picture through the picture path and the related compression parameters, so as to distinguish different pictures.
Other steps are the same as those in the first embodiment, and are not described herein again.
The difference between this embodiment and the first embodiment is that, in this embodiment, after a user selects a picture, the picture is identified, and specifically, a picture identifier may be generated through a picture path and related compression parameters, so as to distinguish different pictures, thereby facilitating subsequent compression and upload processing.
As an embodiment, the picture identifier may specifically be an identifier of MD5 (Message Digest AlgorithmMD5, which is named as the fifth version of the Message Digest algorithm).
According to the scheme, when the client selects the picture, the picture is identified; in the process of selecting the pictures by the client, the selected pictures are compressed, so that the process of compressing the pictures is performed in advance before the client determines to upload the pictures, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
As shown in fig. 7, a preferred embodiment of the present invention provides a picture uploading apparatus, including: receiving module 201, adding module 202, compression processing module 203 and uploading module 204, wherein:
a receiving module 201, configured to receive a picture selection instruction sent by a client;
the adding module 202 is used for sequentially placing the pictures selected by the client into a pre-compression queue according to the picture selection instruction;
the compression processing module 203 is used for sequentially selecting pictures from the pre-compression queue to perform compression processing;
and the uploading module 204 is configured to sequentially upload the compressed pictures when an uploading instruction of the client is received.
As shown in fig. 1b, fig. 1c, and fig. 1d, since the picture is compressed and uploaded after the client completes picture selection in the prior art, the uploading process is discontinuous, and the utilization rate of the bandwidth is reduced.
The present embodiment takes into account: in the process of selecting a picture by a user in the prior art, both thread 2 (compression) and thread 3 (upload) are in an idle state (refer to fig. 1b, 1c, and 1 d).
In addition, as shown in fig. 1a, when the user selects a photo, the user first views thumbnails of all photos and determines whether the photos need to be uploaded one by one. If so, it is selected and browsing continues to the next one. If the photo is selected incorrectly, the user deselects. Thus, it is believed that the user will select which photos are indeterminate before the user clicks on certain uploads.
However, the process of selecting a photo takes a lot of time, and the time compression and uploading threads are both in an idle state, so the solution proposed in this embodiment is: the time of selecting the picture by the user is utilized to compress the selected picture in advance, that is, in the process of selecting the picture by the user, part of the picture is already compressed, when the user clicks and determines to upload, the first picture after compression processing can be uploaded, and meanwhile, the compression thread can also compress the rest pictures. The timing diagram is shown in fig. 2 a.
Specifically, the receiving module 201 receives a picture selection instruction sent by a user through a client, where the client may be a user operation platform of a terminal such as a mobile phone, a tablet computer, and a PC, and the user may enter a corresponding application interaction platform having a picture related operation function, such as a photo album in a QQ space, through the user operation platform, so as to implement functions of adding, uploading, browsing, and displaying a picture of the user.
When the client selects a picture to upload the picture, the adding module 202 puts the client selected picture into a pre-compression queue to wait for compression.
As a preferred embodiment, the pre-compression queues may be sequentially placed in the order in which the pictures are selected.
Then, the compression processing module 203 sequentially selects the pictures according to the sequence of the pictures placed in the pre-compression queue for compression processing.
When receiving an upload instruction from the client, the upload module 204 sequentially uploads the compressed pictures if all the pictures in the pre-compression queue complete compression processing; if the pictures in the pre-compression queue are not completely compressed, the pictures which are completely compressed are sequentially uploaded, and the pictures which are not completely compressed are uploaded after the compression is completed.
As can be seen from the timing diagram shown in fig. 2a, the image uploading speed is significantly increased.
According to the scheme, in the process of selecting the picture by the client to upload the picture, the selected picture is compressed, so that the process of compressing the picture is performed in advance before the client determines to upload the picture, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
In a further embodiment, the compression processing module 203 is further configured to determine whether the picture has been compressed when sequentially selecting pictures from the pre-compression queue for compression processing, and if so, skip the compression processing process; otherwise, the picture is compressed.
Specifically, it is considered that a picture selected by a user may have been compressed or uploaded before, and therefore, before the picture is compressed, it is required to determine whether the picture has been compressed, and if the picture has been compressed, the compression process is skipped; and if the picture is not compressed, compressing the picture.
Therefore, by the scheme, whether the picture is compressed or not is judged before the picture is compressed, the picture uploading speed can be further increased, and the broadband utilization rate is increased.
In a further embodiment, the compression processing module 203 is further configured to, after compressing the picture, put the compressed picture into an upload queue, so as to facilitate management of the compressed picture, facilitate subsequent upload operation of the picture, further improve the upload speed and continuity of the picture, and save broadband resources.
In a further embodiment, the compression processing module 203 is further configured to, before receiving an upload instruction of the client, when receiving a picture deselection instruction of the client, determine whether a deselected picture is compressed, and if so, remove the deselected picture from the upload queue without performing upload processing; otherwise, moving the deselected picture out of the pre-compression queue.
The above scheme considers that when the user selects a picture, a misoperation may occur, such as selecting a picture that is not to be uploaded, or selecting a picture, but abandoning uploading the picture later and uploading other pictures instead, and so on.
Therefore, when the user deselects a certain picture, in order to avoid that the picture that has been deselected and then cancelled is compressed and then uploaded, which causes waste of broadband resources, the following scheme may be adopted:
when a user selects to cancel the selected picture, judging whether the deselected picture is compressed or not, if so, removing the deselected picture from an uploading queue without uploading; if the picture is not compressed, the deselected picture is moved out of the pre-compression queue, so that system resources are saved, the picture uploading speed and continuity are further improved, and broadband resource waste is reduced.
Further, as an embodiment, the adding module 202 is further configured to generate a picture identifier for the currently selected picture through a picture path and related compression parameters, so as to distinguish different pictures.
Specifically, after the user selects the picture, the picture is identified, and the picture identification can be generated through the picture path and the related compression parameters so as to distinguish different pictures and facilitate subsequent compression and uploading.
As an embodiment, the picture identifier may specifically be an MD5 (fifth version of message digest algorithm) identifier.
According to the scheme, when the client selects the picture, the picture is identified; in the process of selecting the pictures by the client, the selected pictures are compressed, so that the process of compressing the pictures is performed in advance before the client determines to upload the pictures, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
In addition, the embodiment of the invention also provides a picture application interaction platform, which comprises the device in the embodiment. The device is used for receiving a picture selection instruction sent by a client; according to the picture selection instruction, sequentially placing the pictures selected by the client into a pre-compression queue; sequentially selecting pictures from the pre-compression queue for compression processing; and when an uploading instruction of the client is received, sequentially uploading the compressed pictures.
For the detailed functional features and principles, please refer to the above embodiments, which are not described herein again.
According to the scheme, in the process of selecting the picture by the client to upload the picture, the selected picture is compressed, so that the process of compressing the picture is performed in advance before the client determines to upload the picture, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
In addition, the embodiment of the invention also provides a terminal, which comprises the device in the embodiment. The device is used for receiving a picture selection instruction sent by a client; according to the picture selection instruction, sequentially placing the pictures selected by the client into a pre-compression queue; sequentially selecting pictures from the pre-compression queue for compression processing; and when an uploading instruction of the client is received, sequentially uploading the compressed pictures.
For the detailed functional features and principles, please refer to the above embodiments, which are not described herein again.
According to the scheme, in the process of selecting the picture by the client to upload the picture, the selected picture is compressed, so that the process of compressing the picture is performed in advance before the client determines to upload the picture, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
In addition, the embodiment of the invention also provides a system, which comprises a client and a picture application interaction platform in communication connection with the client, wherein the client is used for sending a picture selection instruction and an uploading instruction to the picture application interaction platform; the picture application interaction platform may be the picture application interaction platform described in the above embodiment; the system comprises a client, a server and a server, wherein the client is used for receiving a picture selection instruction sent by the client; according to the picture selection instruction, sequentially placing the pictures selected by the client into a pre-compression queue; sequentially selecting pictures from the pre-compression queue for compression processing; and when an uploading instruction of the client is received, sequentially uploading the compressed pictures.
Specifically, as shown in fig. 1b, fig. 1c, and fig. 1d, in the prior art, since the picture is compressed and uploaded after the client completes picture selection, the uploading process is discontinuous, and the utilization rate of the bandwidth is reduced.
The present embodiment takes into account: in the process of selecting a picture by a user in the prior art, both thread 2 (compression) and thread 3 (upload) are in an idle state (refer to fig. 1b, 1c, and 1 d).
In addition, as shown in fig. 1a, when the user selects a photo, the user first views thumbnails of all photos and determines whether the photos need to be uploaded one by one. If so, it is selected and browsing continues to the next one. If the photo is selected incorrectly, the user deselects. Thus, it is believed that the user will select which photos are indeterminate before the user clicks on certain uploads.
However, the process of selecting a photo takes a lot of time, and the time compression and uploading threads are both in an idle state, so the solution proposed in this embodiment is: the time of selecting the picture by the user is utilized to compress the selected picture in advance, that is, in the process of selecting the picture by the user, part of the picture is already compressed, when the user clicks and determines to upload, the first picture after compression processing can be uploaded, and meanwhile, the compression thread can also compress the rest pictures. The timing diagram is shown in fig. 2 a.
Specifically, firstly, a picture selection instruction sent by a user through a client is received, the client can be a user operation platform of a terminal such as a mobile phone, a tablet computer and a PC, and the user can enter a corresponding application interaction platform with a picture related operation function through the user operation platform, for example, a photo album in a QQ space, so that functions of adding, uploading, browsing, displaying and the like of the picture of the user are realized.
When the client selects the picture to upload the picture, the picture application interaction platform puts the picture selected by the client into a pre-compression queue to wait for compression.
As a preferred embodiment, the picture application interaction platform may sequentially place the pictures into the pre-compression queue according to the order in which the pictures are selected.
Then, the picture application interactive platform sequentially selects the pictures according to the sequence of putting the pictures into the pre-compression queue for compression processing.
When an uploading instruction of a client is received, if all the pictures in the pre-compression queue are compressed, the picture application interactive platform uploads the compressed pictures in sequence; if the pictures in the pre-compression queue are not completely compressed, the picture application interaction platform uploads the pictures which are completely compressed in sequence, and the pictures which are not completely compressed are uploaded after the compression is completed.
As can be seen from the timing diagram shown in fig. 2a, the image uploading speed is significantly increased.
According to the scheme, in the process that the client selects the pictures to upload the pictures, the picture application interaction platform compresses the selected pictures, so that the process of compressing the pictures is performed in advance before the client determines to upload the pictures, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
In a further embodiment, the image application interactive platform is further configured to, when sequentially selecting images from the pre-compression queue for compression processing, determine whether the images have been compressed, and if so, skip the compression processing process; otherwise, the picture is compressed.
Specifically, considering that a picture selected by a user may have been compressed or uploaded before, the picture application interaction platform needs to determine whether the picture has been compressed before compressing the picture, and if the picture has been compressed, the compression processing process is skipped; and if the picture is not compressed, compressing the picture.
Therefore, by the scheme, the picture application interaction platform judges whether the picture is compressed before compressing the picture, so that the picture uploading speed can be further increased, and the broadband utilization rate is increased.
In a further embodiment, the picture application interaction platform is further configured to, after compressing the picture, place the compressed picture into an upload queue, so as to facilitate management of the compressed picture, facilitate subsequent upload operation of the picture, further improve the upload speed and continuity of the picture, and save broadband resources.
In a further embodiment, the picture application interaction platform is further configured to, before receiving an upload instruction of the client, when receiving a picture deselection instruction of the client, determine whether a deselected picture is compressed, and if so, remove the deselected picture from the upload queue without upload processing; otherwise, moving the deselected picture out of the pre-compression queue.
The above scheme considers that when the user selects a picture, a misoperation may occur, such as selecting a picture that is not to be uploaded, or selecting a picture, but abandoning uploading the picture later and uploading other pictures instead, and so on.
Therefore, when the user deselects a certain picture, in order to avoid that the picture that has been deselected and then cancelled is compressed and then uploaded, which causes waste of broadband resources, the following scheme may be adopted:
when a user selects to cancel a selected picture, the picture application interaction platform judges whether the deselected picture is compressed or not, and if the deselected picture is compressed, the deselected picture is removed from an uploading queue without uploading; if the picture is not compressed, the deselected picture is moved out of the pre-compression queue, so that system resources are saved, the picture uploading speed and continuity are further improved, and broadband resource waste is reduced.
Further, as an embodiment, the picture application interaction platform is further configured to generate a picture identifier for the currently selected picture through a picture path and related compression parameters, so as to distinguish different pictures.
Specifically, after the user selects the picture, the picture application interaction platform identifies the picture, and the picture identification can be generated through the picture path and the related compression parameters to distinguish different pictures, so that subsequent compression and uploading processing are facilitated.
As an embodiment, the picture identifier may specifically be an MD5 (fifth version of message digest algorithm) identifier.
According to the scheme, when the client selects the picture, the picture application interactive platform identifies the picture; in the process of selecting the pictures by the client, the selected pictures are compressed, so that the process of compressing the pictures is performed in advance before the client determines to upload the pictures, the picture uploading process is faster and more continuous, and the broadband utilization rate is improved.
In addition, the embodiment of the invention also provides a system, which comprises a client and a terminal in communication connection with the client; the client is used for sending a picture selection instruction and an uploading instruction to the terminal. The terminal may be the terminal described in the above embodiment, and the terminal includes the apparatus described in the above embodiment. The device is used for receiving a picture selection instruction sent by a client; according to the picture selection instruction, sequentially placing the pictures selected by the client into a pre-compression queue; sequentially selecting pictures from the pre-compression queue for compression processing; and when an uploading instruction of the client is received, sequentially uploading the compressed pictures. For the detailed functional features and principles, please refer to the above embodiments, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention. Specifically, the program instructions corresponding to the picture uploading apparatus in fig. 7 may be stored in a readable storage medium of a terminal or a picture application interaction platform, and executed by at least one processor therein, so as to implement the picture uploading methods in fig. 2 to fig. 6.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (16)

1. A picture uploading method is characterized by comprising the following steps:
receiving a picture selection instruction sent by a client;
according to the picture selection instruction, sequentially placing the selected pictures into a pre-compression queue according to the sequence of the selected pictures;
in the process of selecting the pictures, sequentially compressing the pictures in the pre-compression queue;
putting the compressed pictures into an uploading queue;
and when an uploading instruction of the client is received, sequentially uploading the compressed pictures.
2. The method of claim 1, further comprising:
when pictures are sequentially selected from the pre-compression queue for compression processing, whether the pictures are compressed or not is judged, and if yes, the compression processing process is skipped; otherwise, the picture is compressed.
3. The method of claim 1, further comprising, prior to receiving an upload instruction from a client:
when a picture deselection instruction of a client is received, judging whether the deselected picture is compressed or not, if so, removing the deselected picture from an uploading queue without uploading; otherwise, moving the deselected picture out of the pre-compression queue.
4. The method according to claim 1, wherein the step of receiving the picture selection instruction sent by the client further comprises:
and generating picture identification for the currently selected picture through a picture path and related compression parameters so as to distinguish different pictures.
5. The method according to claim 4, wherein the picture identifier is an MD5 identifier.
6. The method according to any one of claims 1 to 5, wherein the step of sequentially uploading the compressed pictures when receiving an upload instruction from the client comprises:
when an uploading instruction of a client is received, if all the pictures in the pre-compression queue are compressed, sequentially uploading the compressed pictures; if the pictures in the pre-compression queue are not completely compressed, the pictures which are completely compressed are sequentially uploaded, and the pictures which are not completely compressed are uploaded after the compression is completed.
7. An image uploading apparatus, comprising:
the receiving module is used for receiving a picture selection instruction sent by the client;
the adding module is used for sequentially placing the selected pictures into the pre-compression queue according to the picture selection instruction and the sequence of the selected pictures;
the compression processing module is used for sequentially compressing the pictures in the pre-compression queue in the process of selecting the pictures and putting the compressed pictures into an uploading queue;
and the uploading module is used for sequentially uploading the compressed pictures when an uploading instruction of the client is received.
8. The apparatus of claim 7, wherein the compression processing module is further configured to determine whether the picture has been compressed when sequentially selecting pictures from the pre-compression queue for compression processing, and if so, skip the compression processing; otherwise, the picture is compressed.
9. The device according to claim 7, wherein the compression processing module is further configured to, before receiving an upload instruction of the client, when receiving a picture deselection instruction of the client, determine whether the deselected picture is compressed, and if so, remove the deselected picture from the upload queue without performing upload processing; otherwise, moving the deselected picture out of the pre-compression queue.
10. The apparatus of claim 9, wherein the adding module is further configured to generate a picture identifier for the currently selected picture through a picture path and related compression parameters to distinguish different pictures.
11. The device according to any one of claims 7 to 10, wherein the upload module is further configured to, when receiving an upload instruction from a client, sequentially upload the compressed pictures if all the pictures in the pre-compression queue are compressed; if the pictures in the pre-compression queue are not completely compressed, the pictures which are completely compressed are sequentially uploaded, and the pictures which are not completely compressed are uploaded after the compression is completed.
12. A picture application interaction platform comprising the apparatus of any one of claims 7-11.
13. A terminal, characterized in that it comprises the apparatus of any of claims 7-11.
14. An image uploading system is characterized by comprising a client and an image application interaction platform in communication connection with the client, wherein the image application interaction platform is the image application interaction platform of claim 12; and the client is used for sending a picture selection instruction and an uploading instruction to the picture application interaction platform.
15. A picture uploading system, comprising a client and a terminal in communication connection with the client, wherein the terminal is the terminal of claim 13; the client is used for sending a picture selection instruction and an uploading instruction to the terminal.
16. A storage medium storing an executable program which, when executed by a processor, implements the picture uploading method according to any one of claims 1 to 6.
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 CN104281590A (en) 2015-01-14
CN104281590B true 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)

Families Citing this family (4)

* 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
CN109120645A (en) * 2018-10-25 2019-01-01 北京大米未来科技有限公司 A kind of file uploading method, device, electronic equipment and medium
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

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》;20130318;正文第1-4页 *

Also Published As

Publication number Publication date
WO2015000417A1 (en) 2015-01-08
CN104281590A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN106803989B (en) Multi-screen interaction method and device and terminal equipment
CN110446062B (en) Receiving processing method for big data file transmission, electronic device and storage medium
CN104333531B (en) The sharing of Internet resources and acquisition methods, device, terminal
EP2075714A1 (en) Apparatus and methods for retrieving/downloading content on a communication device
CN104281590B (en) Picture uploading method and device, application interaction platform, terminal and system
US10496696B2 (en) Search method and apparatus
US10652613B2 (en) Splicing user generated clips into target media information
CN104639424B (en) Data transmission method and related equipment and system
CN111491097B (en) Shooting method and mobile device
CN111381749A (en) Image display and processing method, device, equipment and storage medium
CN110727810A (en) Image processing method, image processing device, electronic equipment and storage medium
CA3102425C (en) Video processing method, device, terminal and storage medium
US9076207B1 (en) Image processing method, system and electronic device
US20130110979A1 (en) Remote access from mobile devices
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
AU2018403361A1 (en) Data transmission
CN110580242A (en) picture storage and display method and system in network disk application
CN113596325B (en) Method and device for capturing images, electronic equipment and storage medium
WO2018201993A1 (en) Image drawing method, terminal and storage medium
CN109218597A (en) Method and device for shooting image by intelligent terminal
CN110691256B (en) Video associated information processing method and device, server and storage medium
US11461168B1 (en) Data loss protection with continuity
CN112911386B (en) Material processing method, device, electronic equipment and readable storage medium
CN112579960A (en) Webpage evidence obtaining method, webpage evidence obtaining device and server
CN113824915B (en) Video picture acquisition method, apparatus and computer readable storage medium

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