CN103327042A - Method of uploading batch pictures to web album and client side - Google Patents

Method of uploading batch pictures to web album and client side Download PDF

Info

Publication number
CN103327042A
CN103327042A CN2012100757243A CN201210075724A CN103327042A CN 103327042 A CN103327042 A CN 103327042A CN 2012100757243 A CN2012100757243 A CN 2012100757243A CN 201210075724 A CN201210075724 A CN 201210075724A CN 103327042 A CN103327042 A CN 103327042A
Authority
CN
China
Prior art keywords
picture
uploading
thread
compression
client
Prior art date
Application number
CN2012100757243A
Other languages
Chinese (zh)
Other versions
CN103327042B (en
Inventor
杨宝龙
李扬
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN201210075724.3A priority Critical patent/CN103327042B/en
Publication of CN103327042A publication Critical patent/CN103327042A/en
Application granted granted Critical
Publication of CN103327042B publication Critical patent/CN103327042B/en

Links

Abstract

The invention discloses a method of uploading batch pictures to a web album. The method comprises the steps: a. a client side starts M compressing threads and N uploading threads at the same time after the client side receives a picture bulk uploading command, wherein both M and N are positive integers; b. the compressing threads compress the to-be-uploaded pictures, the compressed pictures are added to a picture cache pool; c. the uploading threads upload the pictures in the picture cache pool to the web album. The invention further discloses the client side. By means of the method of uploading the batch pictures to the web album and the client side, the picture uploading time is shortened.

Description

A kind of in batches picture uploading is to method and a kind of client of network album

Technical field

The present invention relates to network technology, particularly a kind of in batches picture uploading is to method and a kind of client of network album.

Background technology

Network album refers to that a kind of user of support preserves scheme with local picture uploading to the picture in the server of network side.

Along with popularizing of network album, the picture (such as photo) that everybody more and more likes everybody is liked uploads in the network album, thereby is shared with the good friend etc. of oneself.

Continuous lifting along with camera pixel etc., the picture volume is increasing, and most of network album provider is in order to save the memory space of server, the capital requires client with before picture uploading is in the server, under the prerequisite that keeps certain definition, picture is compressed first, to reduce the volume of picture.

And in actual applications, the user can once upload several pictures usually, namely carries out the batch picture uploading, and Fig. 1 is for having now the process schematic diagram of batch picture uploading to network album.As shown in Figure 1, client is at first compressed picture A, and uploads in the network album, afterwards by network, B compresses to picture, and uploads in the network album by network, again after, C compresses to picture, and uploads in the network album by network, the like.

But can there be certain problem in aforesaid way in actual applications:

Take picture A as example, can find out, for it is uploaded in the network album, need to be through two subprocess, one is the compression subprocess, one is to upload subprocess, as a rule, compression time of consuming of subprocess is roughly 1: 1 with the ratio of uploading the time that subprocess consumes, if client performance is bad, compression time of consuming of subprocess even can greater than the time of uploading subprocess and consuming, that is to say, although picture is compressed the memory space that the mode of uploading again afterwards can be saved server, has also prolonged the uplink time of picture.

Summary of the invention

In view of this, main purpose of the present invention is to provide a kind of in batches picture uploading to the method for network album, can shorten the uplink time of picture.

Another object of the present invention is to provide a kind of client, can shorten the uplink time of picture.

For achieving the above object, technical scheme of the present invention is achieved in that

A kind of in batches picture uploading comprises to the method for network album:

When client during to picture uploading instruction in batches, start simultaneously that M compression thread and N are individual to upload thread, described M and N are positive integer;

Described compression thread is treated each width of cloth picture of uploading and is compressed respectively processing, and the picture after will processing joins in the image cache pond;

Describedly upload each width of cloth picture that thread will join in the described image cache pond and upload in the network album respectively.

A kind of client comprises:

Described receiver module is used for notifying described processing module to carry out self function after receiving in batches picture uploading instruction;

Described processing module is used for after receiving the notice of described receiver module, starts simultaneously that M compression thread and N are individual to upload thread, and described M and N are positive integer; Wherein, described compression thread is used for each width of cloth picture to be uploaded is compressed respectively processing, and the picture after will processing joins in the image cache pond, describedly uploads each width of cloth picture that thread is used for joining described image cache pond and uploads in the network album respectively.

As seen, adopt technical scheme of the present invention, when needs carry out the batch picture uploading, client can start M compression thread and the individual thread of uploading of N simultaneously, compression thread and upload thread and carry out parallel processing, namely compressing thread treats each width of cloth picture of uploading and compresses respectively processing, and the picture after will processing joins in the image cache pond, simultaneously, uploading each width of cloth picture that thread will join in the image cache pond uploads to respectively in the network album, that is to say, when picture is compressed processing, namely uploading the picture of having handled well, when uploading the picture of having handled well, again untreated picture is compressed processing, thereby shortening widely the uplink time of picture.

Description of drawings

Fig. 1 is for having now the process schematic diagram of batch picture uploading to network album.

Fig. 2 is that the present invention is with the flow chart of batch picture uploading to the embodiment of the method for network album.

Fig. 3 incites somebody to action the batch picture uploading to the process schematic diagram of network album for when the value of M and N is 1 according to mode of the present invention.

Fig. 4 is the composition structural representation of client implementation example of the present invention.

Embodiment

For problems of the prior art, a kind of in batches picture uploading is proposed to the scheme of network album among the present invention, can shorten the uplink time of picture.

For make technical scheme of the present invention clearer, understand, referring to the accompanying drawing embodiment that develops simultaneously, scheme of the present invention is described in further detail.

Fig. 2 is that the present invention is with the flow chart of batch picture uploading to the embodiment of the method for network album.As shown in Figure 2, comprising:

Step 21: when client during to picture uploading instruction in batches, start simultaneously that M compression thread and N are individual to upload thread, M and N are positive integer.

When the user need to carry out the batch picture uploading, can send corresponding instruction to employed client, as clicking a certain button on the human-computer interaction interface, client starts the individual thread of uploading of M compression thread and N simultaneously after instruction.

M and N are positive integer, and concrete value all can be decided according to the actual requirements, and the value of M and N can be identical, also can be different.

Step 22: the compression thread is treated each width of cloth picture of uploading and is compressed respectively processing, and the picture after will processing joins in the image cache pond; Uploading each width of cloth picture that thread will join in the image cache pond uploads in the network album respectively.

In this step, under the prerequisite that keeps certain definition, the compression thread is treated each width of cloth picture of uploading and is compressed respectively processing, and the picture after will processing joins in the image cache pond.

Mention, most of network album provider is in order to save the memory space of server before, all can require client with before picture uploading is in the server, under the prerequisite that keeps certain definition picture compressed first, to reduce the volume of picture.

Usually, server can issue an index to client, the volume requirement that is used for the every width of cloth picture after explanation is uploaded, such as not surpassing 0.5M, so, client can be according to the volume of each width of cloth picture to be uploaded, determine voluntarily to adopt which kind of compress mode, such as being the Lossless Compression mode, or the lossy compression method mode, or the mode that combines of Lossless Compression and lossy compression method.

Lossless Compression refers to adopt certain algorithm to represent the data message that repeats, and picture can reduce fully, can not affect image content, also can not make picture detail that loss is arranged; Lossy compression method then has certain change to picture, when preserving picture, kept more monochrome information, and the information of form and aspect and colorimetric purity and pixel are on every side merged, the ratio that merges is different, the ratio of compression is also different, because amount of information has reduced, so compression ratio can be very high, but picture quality also can correspondingly descend.

Than Lossless Compression, lossy compression method can be dwindled the picture volume better.

In actual applications, for each width of cloth picture to be uploaded, can be respectively by the difference between the picture volume of its actual volume relatively and server requirement, determine flexibly employing Lossless Compression mode or lossy compression method mode, or both modes of combining.

How to carry out Lossless Compression and lossy compression method is prior art.

The space size in image cache pond also can be decided according to the actual requirements, and is not restricted among the present invention.

In addition, when each width of cloth picture to be uploaded being compressed processing, usually can follow certain order, specifically follow which kind of order and be not restricted, can be preseted by the user.

Such as, the photo that each width of cloth picture to be uploaded is the user to be taken when once travelling so then can compress processing by the order after arriving first to each photos according to shooting time.

In compression when thread compresses processing, upload each width of cloth picture that thread will join in the image cache pond and upload in the network album respectively.

Usually, uploading thread can be uploaded in the network album respectively by each width of cloth picture that the order after arriving first will join in the image cache pond according to the joining day.

And, upload thread can whenever upload a width of cloth picture in network album after, the picture that is about to upload is deleted from the image cache pond, to save the memory space in the image cache pond.

As seen, in embodiment illustrated in fig. 1, when needs carry out the batch picture uploading, client can start M compression thread and the individual thread of uploading of N simultaneously, compression thread and upload thread and carry out parallel processing, namely compressing thread treats each width of cloth picture of uploading and compresses respectively processing, and the picture after will processing joins in the image cache pond, simultaneously, uploading each width of cloth picture that thread will join in the image cache pond uploads to respectively in the network album, that is to say, when picture is compressed processing, namely uploading the picture of having handled well, when uploading the picture of having handled well, again untreated picture is compressed processing, thereby shortening widely the uplink time of picture.

In theory, the value of M and N is larger, more can shorten the uplink time of picture, and still, the value of M and N is larger, and the load of client is also just larger, therefore, need to determine according to actual conditions the value of M and N.

Usually, in actual applications, the value of M and N is 1 and gets final product, and Fig. 3 is when the value of M and N is 1, incites somebody to action the batch picture uploading to the process schematic diagram of network album according to mode of the present invention.As shown in Figure 3, thread a (compression thread) is respectively to picture A, picture B and picture C etc. compress processing, and the picture after will processing joins in the image cache pond, simultaneously, picture A after thread b (uploading thread) will process respectively, picture B, picture C etc. uploads in the network album by network, and, in order to save the memory space in the image cache pond, thread b is after uploading to picture A in the network album, picture A can be deleted from the image cache pond, equally, after uploading to picture B in the network album, can be with picture B from the deletion of image cache pond, after uploading to picture C in the network album, picture C can be deleted from the image cache pond, the like.

If the value of one or two among M and the N is not 1, value such as M is 2, the value of N is 1, and supposes that 2 compression threads are respectively thread a and thread b, so, can be when by thread a picture A being compressed processing, by thread b picture B is compressed processing, afterwards, by thread a picture C is compressed processing, simultaneously by thread b picture D is compressed processing, the like.

So far, namely finished introduction about the inventive method embodiment.

Based on above-mentioned introduction, Fig. 4 is the composition structural representation of client implementation example of the present invention.As shown in Figure 4, comprising:

Receiver module is used for after receiving in batches picture uploading instruction, and notification handler module is carried out self function;

Processing module is used for after receiving the notice of receiver module, starts simultaneously that M compression thread and N are individual to upload thread, and M and N are positive integer; Wherein, the compression thread is used for each width of cloth picture to be uploaded is compressed respectively processing, and the picture after will processing joins in the image cache pond, uploads thread and uploads in the network album respectively for each width of cloth picture that will join the image cache pond.

The specific works flow process of client shown in Figure 4 is as follows:

After receiver module received user's batch picture uploading instruction, the notice Executive Module was carried out self function; After Executive Module receives the notice of receiver module, start simultaneously the individual thread of uploading of M compression thread and N; For each width of cloth picture to be uploaded, under the prerequisite that keeps certain definition, M compression thread compresses processing to it respectively according to predefined procedure, compress mode can be: the mode that lossy compression method mode, Lossless Compression mode, lossy compression method and Lossless Compression combine, and the picture after every width of cloth processed joins in the image cache pond; Meanwhile, upload thread and upload to respectively in the network album according to the joining day by each width of cloth picture that the order after arriving first will join in the image cache pond for N, and, upload thread can whenever upload a width of cloth picture in network album after, the picture of soon uploading is deleted from the image cache pond, to save the memory space in the image cache pond.

The concrete value of M and N all can be decided according to the actual requirements, and usually, the value of M and N is 1.

Client shown in Figure 4 can refer to PC or portable terminal etc.

As seen, in embodiment illustrated in fig. 4, when needs carry out the batch picture uploading, client can start M compression thread and the individual thread of uploading of N simultaneously, compression thread and upload thread and carry out parallel processing, namely compressing thread treats each width of cloth picture of uploading and compresses respectively processing, and the picture after will processing joins in the image cache pond, simultaneously, uploading each width of cloth picture that thread will join in the image cache pond uploads to respectively in the network album, that is to say, when picture is compressed processing, namely uploading the picture of having handled well, when uploading the picture of having handled well, again untreated picture is compressed processing, thereby shortening widely the uplink time of picture.

And scheme of the present invention has the widely scope of application, such as, for the network album in the communal space in the social networks, when needs when wherein uploading in batches picture, can adopt scheme of the present invention.

In addition, for the user, adopt scheme of the present invention after, only need choose each width of cloth picture to be uploaded and send in batches that the picture uploading instruction get final product, subsequent treatment all can be finished automatically by client and server, makes things convenient for quick again.

Therefore, scheme of the present invention is fit to popularize and promote very much, has broad application prospects.

The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. incite somebody to action the batch picture uploading to the method for network album for one kind, it is characterized in that, comprising:
When client during to picture uploading instruction in batches, start simultaneously that M compression thread and N are individual to upload thread, described M and N are positive integer;
Described compression thread is treated each width of cloth picture of uploading and is compressed respectively processing, and the picture after will processing joins in the image cache pond;
Describedly upload each width of cloth picture that thread will join in the described image cache pond and upload in the network album respectively.
2. method according to claim 1 is characterized in that, the method further comprises:
Described upload thread whenever upload a width of cloth picture in described network album after, the picture of uploading is deleted from described image cache pond.
3. method according to claim 1 and 2 is characterized in that, the mode of described compression comprises: the mode that lossy compression method mode, Lossless Compression mode, lossy compression method and Lossless Compression combine.
4. method according to claim 1 and 2 is characterized in that, the value of described M and N is 1.
5. a client is characterized in that, comprising: receiver module and processing module;
Described receiver module is used for notifying described processing module to carry out self function after receiving in batches picture uploading instruction;
Described processing module is used for after receiving the notice of described receiver module, starts simultaneously that M compression thread and N are individual to upload thread, and described M and N are positive integer; Wherein, described compression thread is used for each width of cloth picture to be uploaded is compressed respectively processing, and the picture after will processing joins in the image cache pond, describedly uploads each width of cloth picture that thread is used for joining described image cache pond and uploads in the network album respectively.
6. client according to claim 5 is characterized in that, the described thread of uploading is further used for,
whenever upload a width of cloth picture in described network album after, the picture of uploading is deleted from described image cache pond.
7. according to claim 5 or 6 described clients, it is characterized in that, the mode of described compression comprises: the mode that lossy compression method mode, Lossless Compression mode, lossy compression method and Lossless Compression combine.
8. according to claim 5 or 6 described clients, it is characterized in that, the value of described M and N is 1.
CN201210075724.3A 2012-03-21 2012-03-21 A kind of by batch picture uploading to the method for network album and a kind of client CN103327042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210075724.3A CN103327042B (en) 2012-03-21 2012-03-21 A kind of by batch picture uploading to the method for network album and a kind of client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210075724.3A CN103327042B (en) 2012-03-21 2012-03-21 A kind of by batch picture uploading to the method for network album and a kind of client

Publications (2)

Publication Number Publication Date
CN103327042A true CN103327042A (en) 2013-09-25
CN103327042B CN103327042B (en) 2015-12-16

Family

ID=49195572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210075724.3A CN103327042B (en) 2012-03-21 2012-03-21 A kind of by batch picture uploading to the method for network album and a kind of client

Country Status (1)

Country Link
CN (1) CN103327042B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138253A (en) * 2015-09-30 2015-12-09 深圳市创想天空科技股份有限公司 Method and device for batch processing of pictures
CN105162863A (en) * 2015-09-01 2015-12-16 北京皮尔布莱尼软件有限公司 Picture uploading device and method and computing equipment
CN105204740A (en) * 2015-09-23 2015-12-30 惠州Tcl移动通信有限公司 Manual focal length adjusting method and system for mobile terminal
CN105426569A (en) * 2015-10-27 2016-03-23 云南电网有限责任公司 Rule-driven automatic generation and update method for distribution network single line diagram
CN105760408A (en) * 2014-12-19 2016-07-13 华为终端(东莞)有限公司 Picture sharing method and apparatus and terminal device
CN105897500A (en) * 2015-12-09 2016-08-24 乐视网信息技术(北京)股份有限公司 Picture processing method and device
CN106126127A (en) * 2016-08-29 2016-11-16 天脉聚源(北京)传媒科技有限公司 A kind of method and device of uploading pictures
CN106302581A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 The introduction method of batch data and system
CN106326070A (en) * 2016-08-29 2017-01-11 天脉聚源(北京)传媒科技有限公司 Method and device for uploading pictures
CN106998487A (en) * 2017-04-27 2017-08-01 努比亚技术有限公司 image processing method, device and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098311A (en) * 2006-06-29 2008-01-02 腾讯科技(深圳)有限公司 Picture live transmission method and device in instant communication
CN101808182A (en) * 2010-02-05 2010-08-18 腾讯科技(深圳)有限公司 Method, terminal and system for uploading pictures
CN101860621A (en) * 2010-06-07 2010-10-13 中兴通讯股份有限公司 Mobile terminal file uploading method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098311A (en) * 2006-06-29 2008-01-02 腾讯科技(深圳)有限公司 Picture live transmission method and device in instant communication
CN101808182A (en) * 2010-02-05 2010-08-18 腾讯科技(深圳)有限公司 Method, terminal and system for uploading pictures
CN101860621A (en) * 2010-06-07 2010-10-13 中兴通讯股份有限公司 Mobile terminal file uploading method and mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760408A (en) * 2014-12-19 2016-07-13 华为终端(东莞)有限公司 Picture sharing method and apparatus and terminal device
US10579594B2 (en) 2014-12-19 2020-03-03 Huawei Technologies Co., Ltd. Image sharing method and apparatus, and terminal device
CN106302581A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 The introduction method of batch data and system
CN105162863A (en) * 2015-09-01 2015-12-16 北京皮尔布莱尼软件有限公司 Picture uploading device and method and computing equipment
CN105204740A (en) * 2015-09-23 2015-12-30 惠州Tcl移动通信有限公司 Manual focal length adjusting method and system for mobile terminal
CN105138253A (en) * 2015-09-30 2015-12-09 深圳市创想天空科技股份有限公司 Method and device for batch processing of pictures
CN105426569A (en) * 2015-10-27 2016-03-23 云南电网有限责任公司 Rule-driven automatic generation and update method for distribution network single line diagram
CN105897500A (en) * 2015-12-09 2016-08-24 乐视网信息技术(北京)股份有限公司 Picture processing method and device
CN106126127A (en) * 2016-08-29 2016-11-16 天脉聚源(北京)传媒科技有限公司 A kind of method and device of uploading pictures
CN106326070A (en) * 2016-08-29 2017-01-11 天脉聚源(北京)传媒科技有限公司 Method and device for uploading pictures
CN106998487A (en) * 2017-04-27 2017-08-01 努比亚技术有限公司 image processing method, device and mobile terminal

Also Published As

Publication number Publication date
CN103327042B (en) 2015-12-16

Similar Documents

Publication Publication Date Title
US20180359472A1 (en) Image processing apparatus and method
US20150248442A1 (en) Systems and methods for non-destructive editing of digital images
US20160100101A1 (en) Recommending transformations for photography
US20160191798A1 (en) Panoramic view customization
JP5337707B2 (en) Method and system for image preprocessing
CN103514241B (en) picture loading method and system
DE60318307T2 (en) Picture decoding method for S-pictures with buffer reset and PN switching for continuity.
Zhou et al. HEVC lossless coding and improvements
JP5687787B2 (en) Moving picture decoding apparatus and method
US10602156B2 (en) Devices and methods for identifying a leading picture
AU2012295532B2 (en) Zero-click photo upload
WO2015094777A1 (en) Thermal and power management
CN1251492C (en) Frame compression using radix approximation or differential code and escape code
US8548057B2 (en) Video coding redundancy reduction
US20190342241A1 (en) Systems and methods for manipulating and/or concatenating videos
DE112015000959T5 (en) Adaptive video processing
US10701291B2 (en) On-chip image sensor data compression
US20110150352A1 (en) Variable length coding for clustered transform coefficients in video compression
KR20060134900A (en) Moving picture coding method and moving picture decoding method
US8648858B1 (en) Hybrid text and image based encoding
KR20090116728A (en) Architecture for image compression in a video hardware
US9936208B1 (en) Adaptive power and quality control for video encoders on mobile devices
US10455238B2 (en) Method and apparatus of HEVC de-blocking filter
US9426476B2 (en) Video stream
CN101951509B (en) Moving-image encoding method, and moving-image decoding method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200821

Address after: 518057 Nanshan District science and technology zone, Guangdong, Zhejiang Province, science and technology in the Tencent Building on the 1st floor of the 35 layer

Co-patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.