CN106713689A - Picture uploading method and device - Google Patents

Picture uploading method and device Download PDF

Info

Publication number
CN106713689A
CN106713689A CN201510780513.3A CN201510780513A CN106713689A CN 106713689 A CN106713689 A CN 106713689A CN 201510780513 A CN201510780513 A CN 201510780513A CN 106713689 A CN106713689 A CN 106713689A
Authority
CN
China
Prior art keywords
picture
uploaded
editor
module
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510780513.3A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510780513.3A priority Critical patent/CN106713689A/en
Publication of CN106713689A publication Critical patent/CN106713689A/en
Pending legal-status Critical Current

Links

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/00095Systems or arrangements for the transmission of the picture signal
    • H04N1/00103Systems or arrangements for the transmission of the picture signal specially adapted for radio transmission, e.g. via satellites
    • H04N1/00106Systems or arrangements for the transmission of the picture signal specially adapted for radio transmission, e.g. via satellites using land mobile radio networks, e.g. mobile telephone
    • 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/387Composing, repositioning or otherwise geometrically modifying originals
    • 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/41Bandwidth or redundancy reduction

Abstract

The embodiment of the invention provides a picture uploading method and device, and relates to the technical field of picture processing. The method comprises the following steps: receiving a picture uploading instruction; judging whether the size of a picture exceeds a first threshold; if the size of the picture exceeds the first threshold, enabling a picture editing mode, and loading the to-be-uploaded picture; editing the to-be-uploaded picture; compressing the edited picture after the editing operation is accomplished; and uploading the compressed picture. By adoption of the picture uploading method and device provided by the invention, in an uploading process, the picture is firstly edited and then is compressed so as to reduce the size of the picture, thereby having the beneficial effects of reducing the flow consumption and reducing the network bandwidth occupation.

Description

A kind of picture upload method and device
Technical field
The present invention relates to picture Processing Technique field, more particularly to a kind of picture upload method and one kind Picture uploads device.
Background technology
With the intellectuality of mobile terminal, many APP (application) can uploading pictures carrying out Storage shows.The pictures such as the picture such as photo.
In first technology, the picture of upload is typically all directly to upload, if picture is very big, when with When family is in the networks such as mobile data network such as 2G, 3G, then considerable flow can be expended, and There may be rate.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes above mentioned problem or at least portion to provide one kind The picture upload method and corresponding picture for solving the above problems with dividing upload device.
According to one aspect of the present invention, there is provided the invention discloses a kind of picture upload method, bag Include:
Receive picture uploading instructions;
Judge whether the size of picture exceedes first threshold;
If it exceeds first threshold, then start picture editor's pattern, and be loaded into the picture to be uploaded;
Edlin is entered to the picture to be uploaded;
After completion is edited, the picture after editor is compressed;
Picture after compression is uploaded.
Preferably, it is described editor is carried out to the picture to be uploaded to include:
Template is cut out by default, the picture to be uploaded is cut out.
Preferably, template is being cut out by default, before being cut out to the picture to be uploaded, also Including:
Recognize the content of the picture to be uploaded;
Lookup cuts out template with the content matching.
Preferably, it is described the step of enter edlin to the picture to be uploaded, including:
Read default at least one and cut out template, and shown in first window;
Template is cut out according to what user selected in first window, edlin is entered to the picture.
Preferably, it is described the step of enter edlin to the picture to be uploaded, including:
In the editing interface of picture editor's pattern, edit operation is carried out to the picture.
Preferably, before the step of whether size for judging picture exceedes first threshold, also include:
Judge whether current network is mobile data network;If mobile data network, then enter The step of whether size of picture exceedes first threshold judged.
Preferably, it is described after completion is edited, the step of being compressed to the picture after editor, bag Include:
Using the picture after editor as file, compressing file interface is called to be compressed the picture, Obtain compressed file;
Further, the picture by after compression is uploaded and included:
In the form of compressed file, picture is uploaded.
Preferably, after the picture after by compression is uploaded, also include:
In server side, compressed file of the file decompression interface to receiving is called to decompress, and The picture for obtaining will be decompressed and be put into specified location.
According to another aspect of the present invention, also disclose a kind of picture and upload device, including:
Command reception module, is suitable to receive picture uploading instructions;
Size judge module, is suitable to judge whether the size of picture exceedes first threshold;
Editor module starting module, is suitable to if it exceeds first threshold, then start picture editor's pattern, And it is loaded into the picture to be uploaded;
Editor module, is suitable to enter edlin to the picture to be uploaded;
Compression module, is suitable to after completion is edited, and the picture after editor is compressed;
Uploading module, is suitable to upload in the picture after compression.
Preferably, the editor module includes:
First editor module, is suitable to cut out template by default, and the picture to be uploaded is cut Cut out.
Preferably, before the first editor module, also include:
Content identifier module, is suitable to recognize the content of the picture to be uploaded;
Template searching modul, is suitable to search and cuts out template with the content matching.
Preferably, the editor module includes:
Template read module, is suitable to reading default at least one and cuts out template, and in first window Shown;
Template cuts out module, is suitable to cut out template according to what user selected in first window, to described Picture enters edlin.
Preferably, the editor module includes:
Module is cut out, is suitable in the editing interface of picture editor's pattern, the picture is carried out Edit operation
Preferably, before the editor module starting module, also include:
Network judge module, is suitable to judge whether current network is mobile data network;If moving Dynamic data network, then into size judge module.
Preferably, the compression module includes:
Compressing file module, is suitable to, using the picture after editor as file, call compressing file interface pair The picture is compressed, and obtains compressed file;
Further, the uploading module includes:
Files passe module, is suitable in the form of compressed file, and picture is uploaded.
Preferably, it is additionally included in server side
Decompression module, is suitable to call compressed file of the file decompression interface to receiving to decompress, And the picture that obtains will be decompressed be put into specified location.
According to another aspect of the present invention, a kind of picture uploading device is also disclosed, including:
Memory and processor;
The memory is used to store executable code;
The processor is used to perform the executable code, and the executable code execution includes following The method of step:
Receive picture uploading instructions;
Judge whether the size of picture exceedes first threshold;
If it exceeds first threshold, then start picture editor's pattern, and be loaded into the picture to be uploaded;
Edlin is entered to the picture to be uploaded;
After completion is edited, the picture after editor is compressed;
Picture after compression is uploaded.
A kind of picture upload method of the invention, can be right after picture uploading instructions are received Exceed first threshold in size, if it exceeds first threshold, then first can compile to the picture Volume, then the picture after to editor is compressed upload, thus solves because picture is too big, leads Cause occupancy flow many, and the problem more than occupied bandwidth, achieve in can uploading flow at one, Recompression is first edited to picture, picture size is reduced, so as to reduce the occupancy of flow and reduce network The beneficial effect of the occupancy of bandwidth.
Described above is only the general introduction of technical solution of the present invention, of the invention in order to better understand Technological means, and being practiced according to the content of specification, and in order to allow it is of the invention above-mentioned and Other objects, features and advantages can become apparent, below especially exemplified by specific embodiment party of the invention Formula.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantage and benefit for Those of ordinary skill in the art will be clear understanding.Accompanying drawing is only used for showing the mesh of preferred embodiment , and it is not considered as limitation of the present invention.And in whole accompanying drawing, with identical with reference to symbol Number represent identical part.In the accompanying drawings:
The step of Fig. 1 shows a kind of picture upload method according to an embodiment of the invention flow chart;
The step of Fig. 2 shows a kind of picture upload method in accordance with another embodiment of the present invention flow Figure;
Fig. 3 shows that a kind of picture according to an embodiment of the invention uploads the structural representation of device Figure;
Fig. 4 shows a kind of structural representation of picture uploading system in accordance with another embodiment of the present invention Figure;And
Fig. 5 shows a kind of structural representation of picture uploading device according to an embodiment of the invention Figure.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing in accompanying drawing The exemplary embodiment of the disclosure is shown, it being understood, however, that may be realized in various forms the disclosure Without that should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more Thoroughly understand the disclosure, and can be by the complete technology for conveying to this area of the scope of the present disclosure Personnel.
Embodiment one
Reference picture 1, shows a kind of picture upload method embodiment according to an embodiment of the invention Flow chart of steps, specifically may include steps of:
Step 110, receives picture uploading instructions;
The embodiment of the present invention can apply in client, such as in the mobile terminal such as mobile phone.
When user triggers to a picture uploading instructions for picture, visitor of the invention in certain APP Family end can then receive the picture uploading instructions.
In embodiments of the present invention, after the picture uploading instructions can click on upload button for user, from One or more picture to be uploaded is have selected in picture library, the picture uploading instructions after confirming are clicked on.Its Have been acknowledged and which picture has been uploaded.
In the embodiment of the present invention, then step is introduced into the upload procedure of picture under interception normal flow 120。
Preferably, before step 120, also include:
Step 112, judges whether current network is mobile data network;If mobile data network Network, then into step 120;
In actual applications, what client may be currently accessed is not mobile data network, such as access Be wifi network, and wifi network is substantially no flow restriction, therefore, come for big picture Say, flow do not had much affect, can not treat uploading pictures carries out subsequent treatment, directly according to Normal upload logic uploads onto the server picture.Such as client is set up tcp and is connected with server, so Picture is converted into data flow afterwards, the data field of tcp messages is write, then sent out in the way of post is asked It is sent in server.In can certainly being uploaded onto the server by the way of other are conventional, the present invention It is not any limitation as.
And the network such as mobile data network, such as 2G/3G/4G, it has flow restriction, more than flow Can then charge.Therefore need to enter step 120, treating uploading pictures carries out subsequent treatment.
Step 120, judges whether the size of picture exceedes first threshold;If it exceeds first threshold, then Into step 130.
The picture to be uploaded that picture uploading instructions are pointed to, then read the size of picture, judges the picture Whether size exceedes default first threshold.
It is 500k that first threshold such as can be set, then when the size for reading picture is 800k, then The picture has exceeded first threshold, it is necessary into step 130.
For the size for reading picture, can go to obtain by reading the property value of picture, general picture Property value just include the parameter of the size that picture takes up room.Certainly, in actual applications, with File.length () method can be called to go to obtain the size of picture as a example by android system.It is for other System, it is also possible to call the method for corresponding system to go to obtain the size of picture.
Step 130, starts picture editor's pattern, and be loaded into the picture to be uploaded;
When the size of picture to be uploaded is more than first threshold, the embodiment of the present invention then starts picture pic Edit pattern, is then loaded into the picture to be uploaded in the corresponding internal memory of picture pic edit pattern.
In embodiments of the present invention, an edit box can be provided in picture editor's pattern.If treated Uploading pictures only have a figure, then the figure to be uploaded is shown in the edit box of picture editor's pattern Piece.If picture to be uploaded has multiple figures, one figure of selection is in the edit box of picture editor's pattern It has been shown that, other pictures to be uploaded then show in the frame to be selected of picture editor's pattern.Wherein to be selected In frame, show the thumbnail of the picture to be uploaded, i.e., for not being illustrated in treating in edit box Blit piece, the thumbnail for obtaining the picture to be uploaded is illustrated in frame to be selected.
Step 140, edlin is entered to the picture to be uploaded;
In embodiments of the present invention, edlin can be entered to the picture to be uploaded, it is right that the editor includes Picture is cut out.
Preferably, step 140 includes:
Sub-step 141, template is cut out by default, and the picture to be uploaded is cut out.
In embodiments of the present invention, can preset and cut out template, template is cut out to figure to be uploaded according to this Piece is cut out, and the part of reservation is just smaller than artwork.
In actual applications, many pictures, such as portrait photographs, the personage of user be in centre, and The marginal portion of surrounding can cut out, and the normal browsing on user influences very little.Therefore can preset and cut That cuts out picture surrounding one fixed width cuts out template, and the surrounding of the picture is cut out.
In embodiments of the present invention, it is default to cut out template, storage when, its size be probably it is fixed, But dimension of picture to be uploaded there may be difference, and to prestore that just cut out template size different.That The embodiment of the present invention can then obtain the size of picture, and the size adjusting that then will cut out template is and picture Size is the same, and then picture can be cut out.
Preferably, before sub-step S141, also include:
Sub-step A11, recognizes the content of the picture to be uploaded;
Sub-step A12, lookup cuts out template with the content matching.
In actual applications, the content of possible picture is related to various types, such as personage is shone Piece, pets etc., the embodiment of the present invention can set different cutting out for different types of photo Template.
Certainly, for the photo of certain type, subtype can also be set, is set for each subtype Put and cut out template accordingly.Such as portrait photographs, under the above as a example by left and right directions, if personage leans on A left side, the then left side for cutting out template cuts out that width is small, and it is big that width is cut out on the right.If personage keeps right, Width is small to cut out cutting out on the right of template, and it is big that width is cut out on the left side.If personage is top, mould is cut out It is small that width is cut out in plate top, width is cut out below big.If personage side on the lower, cuts out template following Cut out width small, it is big that width is cut out in top.
So the present invention by image identification method, can recognize the content of picture, then interior according to this Appearance goes to judge which kind of cuts out template using.Such as identification picture is portrait photographs, then recognize figure map After piece, judge that the edge of personage's picture is near with which side, then according to aforementioned rule selection can be gone to cut out mould Plate.
Preferably, it is described the step of enter edlin to the picture to be uploaded, including:
Sub-step 143, reads default at least one and cuts out template, and shown in first window Show;
Sub-step 144, template is cut out according to what user selected in first window, and the picture is carried out Editor.
In embodiments of the present invention, in picture pic edit pattern, first window can also be provided Mouthful, can show in the window and various cut out template.
Certainly, also preset in the embodiment of the present invention it is various cut out template, therefore these can be read cut Template is cut out, these then are cut out into template carries out breviary displaying in first window,
Certainly, in practical application, the display area in first window is smaller, it is impossible to displaying whole Template is cut out, then the thumbnail for cutting out template that will not show is placed in background memory, then first Scroll bar is set in window, and user can select to cut out template by sliding-rolling bar.
In embodiments of the present invention, this cuts out template can include individualized content, such as increase background Frame etc..Therefore, user can upload flow in select for picture to carry out personalized editor, without with Family uploads again after other softwares for editing enter edlin to picture.
Preferably, it is described the step of enter edlin to the picture to be uploaded, including:
Sub-step 143, in the editing interface of picture editor's pattern, edlin is entered to the picture Operation
In embodiments of the present invention, in picture editor's pattern, editing interface can be set, then the figure Piece shown in being then loaded into the editing interface, then can also provide the user edit tool, such as The instruments such as paintbrush, scribble, color, may also include the instruments such as cutting certainly.Treat user Blit piece enters edlin.
It is appreciated that the edit operation of the embodiment of the present invention can include trimming operation, it is also possible to including Modification operation (such as scribble operation) to image content.Therefore, the user of the embodiment of the present invention can be with In flow is uploaded, need the picture for uploading to enter edlin to it by its individual demand, make upload Picture more meets user's request, after entering edlin to picture using other software without user, then opens Upload software, uploading pictures save the operation of user.
In embodiments of the present invention, for picture editor's pattern, after editor finishes, will can edit Picture afterwards is stored in the first spatial cache, is pressed with the picture for treating step 150 pair first spatial cache Contracting.Because the compression to picture is, it is necessary to first by image cache to caching, the present invention is in order to fast Prompt is compressed to picture, and the picture that will directly edit is stored in the first spatial cache.
Step 150, after completion is edited, is compressed to the picture after editor;
The picture deposited in the buffer after for editor, the embodiment of the present invention can again be carried out to the picture Compression.The picture can be compressed using various compression algorithms in actual applications, the compression is calculated Method is in order to eliminate the redundancy in picture, such that it is able to reduce the size of the data volume of picture.Such as Hough Graceful coding compression algorithm, it is a kind of coding method of the variable length based on statistical property, belongs to lossless volume One kind of code.Certainly, the present invention using which kind of algorithm to not being any limitation as specifically.
Certainly, the embodiment of the present invention is for using RGB channel (red (R), green (G), blue (B) three face Chrominance channel) picture, can also use other compression algorithms, make to after the picture compression after editor, its number Amount amount diminishes, such as adopt with the following method:
(1) picture after editor is read, the RGB color for obtaining the picture after editor is converted to Hsv color space;
(2) HSV (HSV (Hue, Saturation, Value) are converted in utilization step (1) It is the hexagonal pyramid model (Hexcone Model) obtained according to the intuitive nature of color) after color space Picture, obtains its pixel data, and set palette by Octree method;
(3) palette obtained using step (2) sets up picture on the picture acquired in step (1) Plain palette index, obtains index picture;
(4) using the palette of step (2) acquisition in the index picture acquired in step (3) Pixel data carries out data compression;
(5) PNG (the Portable Network Graphic Format, portable of final compression are generated Network graphics format) format picture.
Redundant data block in picture by above-mentioned steps by RGB is deleted, the PNG for obtaining The picture format of form is smaller than former data volume.
Certainly, except using above-mentioned algorithm, the compression that the redundancy in picture is eliminated.
In embodiments of the present invention, can also be using the size mode compressed picture for reducing picture, such as chi Very little to narrow down to the 80% of original picture, then the data volume of the picture after size reduction is necessarily reduced.
Certainly, the embodiment of the present invention can combine the compression process and diminution eliminated to the redundancy of picture The compression process of dimension of picture, it is also possible to the two compression process, the embodiment of the present invention is used alone It is not any limitation as.
Step 160, the picture after compression is uploaded.
In embodiments of the present invention, for the picture after compression, it can be cached to the second spatial cache, Then the embodiment of the present invention can be using the process in the spatial cache, realizing uploading in picture.
In actual applications, the embodiment of the present invention can use http agreements, by picture with the side of data flow Formula, asks to be sent to server by post.
Server is received after the picture, then can be stored to specified location the picture.Then service The page or app of device can call the picture from the specified location.Make the client subsequently can be by page Face or app browse the picture.
Certainly, in the embodiment of the present invention, segmentation upload can be carried out, it is to avoid one to the picture after compression Secondary property is uploaded more data, causes the load of bandwidth larger.Server receives each segmentation Afterwards, then merge, obtain complete picture.
The embodiment of the present invention can be after picture uploading instructions be received, for size more than the first threshold Value, if it exceeds first threshold, therefore, during the embodiment of the present invention can upload flow at one, to figure Piece first edits recompression, namely the embodiment of the present invention can carry out two in a upload flow to picture The secondary operation for reducing data volume, reduces picture size, so as to reduce the occupancy of flow and reduce Netowrk tape Occupancy wide.
In addition, during the embodiment of the present invention can upload flow at one, providing the user with editable circle Face, allows the user can be according to the need for oneself, and personalized is cut out picture and scribbles, Neng Gourang User can be achieved with the individual demand of uploading pictures in flow is uploaded, and reduce the cumbersome of user Degree.
Embodiment two
Reference picture 2, shows a kind of picture upload method embodiment according to an embodiment of the invention Flow chart of steps, specifically may include steps of:
Step 210, client-side receives picture uploading instructions;
Step 212, judges whether current network is mobile data network;If mobile data network Network, then step 214.
Step 214, judges whether the size of picture exceedes first threshold;If it exceeds first threshold, then Into step 216.
Step 216, starts picture editor's pattern, and be loaded into the picture to be uploaded;
Step 218, edlin is entered to the picture to be uploaded;
Step 220, using the picture after editor as file, calls compressing file interface to enter the picture Row compression, obtains compressed file.
In embodiments of the present invention, for the picture after editor, in can there will be the first spatial cache Picture in the form of a file, calls compressing file interface to be compressed the picture, such as call rar (RAR It is the privately owned patent compressed format of a kind of compressing file and filing.) compression interface, it is rar by picture compression The compressed file of form.Or call zip (ZIP is an algorithm for the compression of computer documents) to compress Interface, is the compressed file of zip forms by picture compression.
Step 222, in the form of compressed file, picture is uploaded.
Then i.e. can be in the form of compressed file, during picture is uploaded onto the server.
Certainly, in embodiments of the present invention, client can also upload one and notify mark, table to server Show that the compressed file is picture, server needs decompression.
In actual applications, the compressed file can write post request tcp messages data field in, Then in tcp headers, foregoing notice mark is write.
Step 224, in server side, calls compressed file of the file decompression interface to receiving to solve Compress, and the picture for obtaining will be decompressed and be put into specified location
What is received due to server in step 222 is compressed file, such as rar compressed formats or zip The compressed file of compressed format, this document cannot in the form of the picture between browse, server then can be according to Corresponding compressed format is decompressed to the compressed file.Such as the compressed file of rar compressed formats, Rar can be called to decompress interface decompress it, the picture that can directly browse is obtained.Again such as For the compressed file of zip compressed formats, then zip can be called to decompress interface the compressed file is entered Row decompression.
In embodiments of the present invention, server can read the pressure from the data field of the post requests for receiving The data flow of contracting file, then obtains the compressed file, such that it is able to be decompressed to it.
For the picture that decompression is obtained, server can then put it into specified location.Then server The page or app can call the picture from the specified location.Make client subsequently can by the page or Person app browses the picture.
The embodiment of the present invention can be after picture uploading instructions be received, for size more than the first threshold Value, if it exceeds first threshold, therefore, during the embodiment of the present invention can upload flow at one, to figure Piece first edits recompression, namely the embodiment of the present invention can carry out two in a upload flow to picture The secondary operation for reducing data volume, reduces picture size, so as to reduce the occupancy of flow and reduce Netowrk tape Occupancy wide.
In addition, during the embodiment of the present invention can upload flow at one, providing the user with editable circle Face, allows the user can be according to the need for oneself, and personalized is cut out picture and scribbles, Neng Gourang User can be achieved with the individual demand of uploading pictures in flow is uploaded, and reduce the cumbersome of user Degree.
Embodiment three
Reference picture 3, shows that a kind of picture according to an embodiment of the invention uploads device embodiment Flow chart of steps, can specifically include such as lower module:
Command reception module 310, is suitable to receive picture uploading instructions;
Size judge module 320, is suitable to judge whether the size of picture exceedes first threshold;
Editor module starting module 330, is suitable to if it exceeds first threshold, then start picture editor's mould Formula, and it is loaded into the picture to be uploaded;
Editor module 340, is suitable to enter edlin to the picture to be uploaded;
Compression module 350, is suitable to after completion is edited, and the picture after editor is compressed;
Uploading module 360, is suitable to upload in the picture after compression.
Preferably, the editor module includes:
First editor module, is suitable to cut out template by default, and the picture to be uploaded is cut Cut out.
Preferably, before the first editor module, also include:
Content identifier module, is suitable to recognize the content of the picture to be uploaded;
Template searching modul, is suitable to search and cuts out template with the content matching.
Preferably, the editor module includes:
Template read module, is suitable to reading default at least one and cuts out template, and in first window Shown;
Template cuts out module, is suitable to cut out template according to what user selected in first window, to described Picture enters edlin.
Preferably, the editor module includes:
Module is cut out, is suitable in the editing interface of picture editor's pattern, the picture is carried out Edit operation
Preferably, the compression module includes:
Type judging module, is suitable to obtain the type of the picture;
First compression module, is suitable to the type according to the picture, selects corresponding picture compression algorithm The picture is compressed.
Preferably, before the editor module starting module, also include:
Network judge module, is suitable to judge whether current network is mobile data network;
Size judge module, is suitable to if mobile data network, then entrance judges that the size of picture is It is no more than first threshold the step of.
The embodiment of the present invention can be after picture uploading instructions be received, for size more than the first threshold Value, if it exceeds first threshold, therefore, during the embodiment of the present invention can upload flow at one, to figure Piece first edits recompression, namely the embodiment of the present invention can carry out two in a upload flow to picture The secondary operation for reducing data volume, reduces picture size, so as to reduce the occupancy of flow and reduce Netowrk tape Occupancy wide.
In addition, during the embodiment of the present invention can upload flow at one, providing the user with editable circle Face, allows the user can be according to the need for oneself, and personalized is cut out picture and scribbles, Neng Gourang User can be achieved with the individual demand of uploading pictures in flow is uploaded, and reduce the cumbersome of user Degree.
Example IV
Reference picture 4, shows a kind of picture uploading system embodiment according to an embodiment of the invention Flow chart of steps, can specifically include:
Client 400 and server 450;
The client 400 includes:
Command reception module 410, is suitable to receive picture uploading instructions;
Network judge module 412, is suitable to judge whether current network is mobile data network;If Mobile data network then enters size judge module 414
Size judge module 414, is suitable to judge whether the size of picture exceedes first threshold;
Editor module starting module 416, is suitable to if it exceeds first threshold, then start picture editor's mould Formula, and it is loaded into the picture to be uploaded;
Editor module 418, is suitable to enter edlin to the picture to be uploaded;
Compression module 420, specifically includes:
Compressing file module B11, is suitable to, using the picture after editor as file, call compressing file interface The picture is compressed, compressed file is obtained.
Uploading module 422, specifically includes:
Files passe module B21, is suitable in the form of compressed file, and picture is uploaded.
The server 450 includes:
Decompression module B31, is suitable to call compressed file of the file decompression interface to receiving to decompress Contract, and the picture for obtaining will be decompressed and be put into specified location.
Embodiment five
Reference picture 5, it illustrates a kind of structural representation of picture uploading device of the embodiment of the present invention, The picture uploading device 500 can specifically include:
Memory 510 and processor 520;
The memory 510 is used to store executable code;
The processor 520 is used to perform the executable code, the executable code perform include with The method of lower step:
Receive picture uploading instructions;
Judge whether the size of picture exceedes first threshold;
If it exceeds first threshold, then start picture editor's pattern, and be loaded into the picture to be uploaded;
Edlin is entered to the picture to be uploaded;
After completion is edited, the picture after editor is compressed;
Picture after compression is uploaded.
Certainly, the method that the executable code can also carry out foregoing arbitrary steps, the present invention is implemented Example is not any limitation as to it.
For device embodiment, because it is substantially similar to embodiment of the method, so the ratio of description Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
Provided herein algorithm and display not with any certain computer, virtual system or miscellaneous equipment It is intrinsic related.Various general-purpose systems can also be used together with based on teaching in this.According to above Description, the structure constructed required by this kind of system is obvious.Additionally, the present invention is not also directed to Any certain programmed language.It is understood that, it is possible to use various programming languages realize described here The content of invention, and the description done to language-specific above is to disclose optimal reality of the invention Apply mode.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that Embodiments of the invention can be put into practice in the case of without these details.In some instances, Known method, structure and technology is not been shown in detail, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and helping understand in each inventive aspect one Individual or multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention Sometimes it is grouped together into single embodiment, figure or descriptions thereof.However, should be by The method of the disclosure is construed to reflect following intention:I.e. the present invention for required protection requirement ratio is at each The more features of feature being expressly recited in claim.More precisely, as following right will As asking book to reflect, inventive aspect is all spies less than single embodiment disclosed above Levy.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment party Formula, wherein each claim are in itself as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out to the module in the equipment in embodiment Adaptively change and they are arranged in one or more equipment different from the embodiment. Module or unit or component in embodiment can be combined into a module or unit or component, and In addition multiple submodule or subelement or sub-component can be divided into.Except such feature and/or Outside at least some in process or unit exclude each other, can be using any combinations to this explanation All features disclosed in book (including adjoint claim, summary and accompanying drawing) and so disclosed All processes or unit of any method or equipment are combined.Unless expressly stated otherwise, this theory Each feature disclosed in bright book (including adjoint claim, summary and accompanying drawing) can be by offer phase The alternative features of same, equivalent or similar purpose replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include Some included features are rather than further feature, but the feature of different embodiments in other embodiments Combination mean to be within the scope of the present invention and formed different embodiments.For example, under In the claims in face, the one of any of embodiment required for protection can be in any combination Mode is used.
All parts embodiment of the invention can realize with hardware, or with one or more The software module run on reason device is realized, or is realized with combinations thereof.Those skilled in the art It should be appreciated that can be realized using microprocessor or digital signal processor (DSP) in practice According to embodiments of the present inventionPicture is uploadedSome or all parts in equipment it is some or all Function.The present invention is also implemented as performing some or all of method as described herein Equipment or program of device (for example, computer program and computer program product).Such realization Program of the invention can be stored on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from internet website and obtained, or in carrier signal Upper offer, or provided in any other form.
It should be noted that above-described embodiment the present invention will be described is limited rather than to the present invention Make, and those skilled in the art can design without departing from the scope of the appended claims Alternative embodiment.In the claims, any reference symbol being located between bracket should not be configured to Limitations on claims.Word "comprising" do not exclude the presence of element not listed in the claims or Step.Word "a" or "an" before element does not exclude the presence of unit as multiple Part.The present invention can be by means of the hardware for including some different elements and by means of properly programmed Computer is realized.If some in these devices in the unit claim for listing equipment for drying Individual can be embodied by same hardware branch.Word first, second, and third Using not indicating that any order.These words can be construed to title.
The invention discloses A1, a kind of picture upload method, including:
Receive picture uploading instructions;
Judge whether the size of picture exceedes first threshold;
If it exceeds first threshold, then start picture editor's pattern, and be loaded into the picture to be uploaded;
Edlin is entered to the picture to be uploaded;
After completion is edited, the picture after editor is compressed;
Picture after compression is uploaded.
A2, the method according to A1, it is described editor is carried out to the picture to be uploaded to include:
Template is cut out by default, the picture to be uploaded is cut out.
A3, the method according to A2, are cutting out template, to the picture to be uploaded by default Before being cut out, also include:
Recognize the content of the picture to be uploaded;
Lookup cuts out template with the content matching.
A4, the method according to A1, described the step of enter edlin to the picture to be uploaded, bag Include:
Read default at least one and cut out template, and shown in first window;
Template is cut out according to what user selected in first window, edlin is entered to the picture.
A5, the method according to A1, described the step of enter edlin to the picture to be uploaded, bag Include:
In the editing interface of picture editor's pattern, edit operation is carried out to the picture.
Whether A6, the method according to A1, the size for judging picture exceed the step of first threshold Before rapid, also include:
Judge whether current network is mobile data network;If mobile data network, then enter The step of whether size of picture exceedes first threshold judged.
A7, the method according to A1, it is described after completion is edited, the picture after editor is carried out The step of compression, including:
Using the picture after editor as file, compressing file interface is called to be compressed the picture, Obtain compressed file;
Further, the picture by after compression is uploaded and included:
In the form of compressed file, picture is uploaded.
A8, the method according to A7, after the picture after by compression is uploaded, also include:
In server side, compressed file of the file decompression interface to receiving is called to decompress, and The picture for obtaining will be decompressed and be put into specified location.
Device is uploaded the invention also discloses B9, a kind of picture, including:
Command reception module, is suitable to receive picture uploading instructions;
Size judge module, is suitable to judge whether the size of picture exceedes first threshold;
Editor module starting module, is suitable to if it exceeds first threshold, then start picture editor's pattern, And it is loaded into the picture to be uploaded;
Editor module, is suitable to enter edlin to the picture to be uploaded;
Compression module, is suitable to after completion is edited, and the picture after editor is compressed;
Uploading module, is suitable to upload in the picture after compression.
B10, the device according to B9, the editor module include:
First editor module, is suitable to cut out template by default, and the picture to be uploaded is cut Cut out.
B11, the device according to B10, before the first editor module, also include:
Content identifier module, is suitable to recognize the content of the picture to be uploaded;
Template searching modul, is suitable to search and cuts out template with the content matching.
B12, the device according to B9, the editor module include:
Template read module, is suitable to reading default at least one and cuts out template, and in first window Shown;
Template cuts out module, is suitable to cut out template according to what user selected in first window, to described Picture enters edlin.
B13, the device according to B9, the editor module include:
Module is cut out, is suitable in the editing interface of picture editor's pattern, the picture is carried out Edit operation
B14, the device according to B9, before the editor module starting module, also include:
Network judge module, is suitable to judge whether current network is mobile data network;If moving Dynamic data network, then into size judge module.
B15, the device according to B9, the compression module include:
Compressing file module, is suitable to, using the picture after editor as file, call compressing file interface pair The picture is compressed, and obtains compressed file;
Further, the uploading module includes:
Files passe module, is suitable in the form of compressed file, and picture is uploaded.
B16, the device according to B15, are additionally included in server side
Decompression module, is suitable to call compressed file of the file decompression interface to receiving to decompress, And the picture that obtains will be decompressed be put into specified location.
The invention also discloses C17, a kind of picture uploading device, including:
Memory and processor;
The memory is used to store executable code;
The processor is used to perform the executable code, and the executable code execution includes following The method of step:
Receive picture uploading instructions;
Judge whether the size of picture exceedes first threshold;
If it exceeds first threshold, then start picture editor's pattern, and be loaded into the picture to be uploaded;
Edlin is entered to the picture to be uploaded;
After completion is edited, the picture after editor is compressed;
Picture after compression is uploaded.

Claims (10)

1. a kind of picture upload method, including:
Receive picture uploading instructions;
Judge whether the size of picture exceedes first threshold;
If it exceeds first threshold, then start picture editor's pattern, and be loaded into the picture to be uploaded;
Edlin is entered to the picture to be uploaded;
After completion is edited, the picture after editor is compressed;
Picture after compression is uploaded.
2. method according to claim 1, it is characterised in that described to the picture to be uploaded Carrying out editor includes:
Template is cut out by default, the picture to be uploaded is cut out.
3. method according to claim 2, it is characterised in that cutting out mould by default Plate, before being cut out to the picture to be uploaded, also includes:
Recognize the content of the picture to be uploaded;
Lookup cuts out template with the content matching.
4. method according to claim 1, it is characterised in that described to the picture to be uploaded The step of entering edlin, including:
Read default at least one and cut out template, and shown in first window;
Template is cut out according to what user selected in first window, edlin is entered to the picture.
5. method according to claim 1, it is characterised in that described to the picture to be uploaded The step of entering edlin, including:
In the editing interface of picture editor's pattern, edit operation is carried out to the picture.
6. method according to claim 1, it is characterised in that the size of the judgement picture is It is no more than first threshold the step of before, also include:
Judge whether current network is mobile data network;If mobile data network, then enter The step of whether size of picture exceedes first threshold judged.
7. method according to claim 1, it is characterised in that described after editing and completing, The step of being compressed to the picture after editor, including:
Using the picture after editor as file, compressing file interface is called to be compressed the picture, Obtain compressed file;
Further, the picture by after compression is uploaded and included:
In the form of compressed file, picture is uploaded.
8. method according to claim 7, it is characterised in that the picture after by compression is uploaded Afterwards, also include:
In server side, compressed file of the file decompression interface to receiving is called to decompress, and The picture for obtaining will be decompressed and be put into specified location.
9. a kind of picture uploads device, including:
Command reception module, is suitable to receive picture uploading instructions;
Size judge module, is suitable to judge whether the size of picture exceedes first threshold;
Editor module starting module, is suitable to if it exceeds first threshold, then start picture editor's pattern, And it is loaded into the picture to be uploaded;
Editor module, is suitable to enter edlin to the picture to be uploaded;
Compression module, is suitable to after completion is edited, and the picture after editor is compressed;
Uploading module, is suitable to upload in the picture after compression.
10. a kind of picture uploading device, including:
Memory and processor;
The memory is used to store executable code;
The processor is used to perform the executable code, and the executable code execution includes following The method of step:
Receive picture uploading instructions;
Judge whether the size of picture exceedes first threshold;
If it exceeds first threshold, then start picture editor's pattern, and be loaded into the picture to be uploaded;
Edlin is entered to the picture to be uploaded;
After completion is edited, the picture after editor is compressed;
Picture after compression is uploaded.
CN201510780513.3A 2015-11-13 2015-11-13 Picture uploading method and device Pending CN106713689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510780513.3A CN106713689A (en) 2015-11-13 2015-11-13 Picture uploading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510780513.3A CN106713689A (en) 2015-11-13 2015-11-13 Picture uploading method and device

Publications (1)

Publication Number Publication Date
CN106713689A true CN106713689A (en) 2017-05-24

Family

ID=58930835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510780513.3A Pending CN106713689A (en) 2015-11-13 2015-11-13 Picture uploading method and device

Country Status (1)

Country Link
CN (1) CN106713689A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395716A (en) * 2017-07-19 2017-11-24 河南神州数码索贝科技有限公司 A kind of mobile terminal picture compression method for uploading and device
CN107480169A (en) * 2017-06-28 2017-12-15 努比亚技术有限公司 Picture loading method, terminal and computer-readable recording medium
CN107679063A (en) * 2017-07-31 2018-02-09 平安科技(深圳)有限公司 Image display method, server and computer-readable recording medium
CN107734045A (en) * 2017-10-25 2018-02-23 深圳市雷鸟信息科技有限公司 Network file request, network file processing method, television terminal, file server and system
CN109377471A (en) * 2018-08-21 2019-02-22 中国平安人寿保险股份有限公司 Method, apparatus, computer equipment and the storage medium of picture verification
CN109918427A (en) * 2019-01-16 2019-06-21 平安普惠企业管理有限公司 Picture uploads control method, device, computer equipment and storage medium
CN109962958A (en) * 2017-12-26 2019-07-02 上海全土豆文化传播有限公司 Document processing method and device
CN111192195A (en) * 2019-12-17 2020-05-22 中国平安财产保险股份有限公司 Picture processing method and device, computer equipment and storage medium
CN112395028A (en) * 2019-08-15 2021-02-23 腾讯科技(深圳)有限公司 Page checking method, device, terminal and storage medium
CN113542761A (en) * 2021-06-23 2021-10-22 惠州Tcl云创科技有限公司 Multi-form video compression processing method and device based on mobile terminal and terminal

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480169A (en) * 2017-06-28 2017-12-15 努比亚技术有限公司 Picture loading method, terminal and computer-readable recording medium
CN107480169B (en) * 2017-06-28 2020-12-18 南京车链科技有限公司 Picture loading method, terminal and computer readable storage medium
CN107395716A (en) * 2017-07-19 2017-11-24 河南神州数码索贝科技有限公司 A kind of mobile terminal picture compression method for uploading and device
CN107679063B (en) * 2017-07-31 2020-05-22 平安科技(深圳)有限公司 Picture display method, server and computer-readable storage medium
CN107679063A (en) * 2017-07-31 2018-02-09 平安科技(深圳)有限公司 Image display method, server and computer-readable recording medium
CN107734045A (en) * 2017-10-25 2018-02-23 深圳市雷鸟信息科技有限公司 Network file request, network file processing method, television terminal, file server and system
CN109962958B (en) * 2017-12-26 2022-05-03 阿里巴巴(中国)有限公司 Document processing method and device
CN109962958A (en) * 2017-12-26 2019-07-02 上海全土豆文化传播有限公司 Document processing method and device
CN109377471A (en) * 2018-08-21 2019-02-22 中国平安人寿保险股份有限公司 Method, apparatus, computer equipment and the storage medium of picture verification
CN109918427A (en) * 2019-01-16 2019-06-21 平安普惠企业管理有限公司 Picture uploads control method, device, computer equipment and storage medium
CN112395028A (en) * 2019-08-15 2021-02-23 腾讯科技(深圳)有限公司 Page checking method, device, terminal and storage medium
CN112395028B (en) * 2019-08-15 2024-04-30 腾讯科技(深圳)有限公司 Page checking method, device, terminal and storage medium
CN111192195A (en) * 2019-12-17 2020-05-22 中国平安财产保险股份有限公司 Picture processing method and device, computer equipment and storage medium
CN113542761A (en) * 2021-06-23 2021-10-22 惠州Tcl云创科技有限公司 Multi-form video compression processing method and device based on mobile terminal and terminal
WO2022267609A1 (en) * 2021-06-23 2022-12-29 惠州Tcl云创科技有限公司 Mobile terminal-based multi-mode video compression processing method and apparatus, and terminal
CN113542761B (en) * 2021-06-23 2024-04-09 惠州Tcl云创科技有限公司 Multi-form video compression processing method and device based on mobile terminal, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN106713689A (en) Picture uploading method and device
US7239328B2 (en) Lossless manipulation of media objects
CA2493200C (en) Imaging system providing dynamic viewport layering optimised for a specific client device type
US7933473B2 (en) Multiple resolution image storage
US8213747B2 (en) Variable resolution images
US7035469B2 (en) Image processing
US8947450B2 (en) Method and system for viewing and enhancing images
US7620271B2 (en) Image processing apparatus and method of controlling same, computer program and computer-readable storage medium
US7103230B1 (en) Embedding editing commands in digital images
CN116597039B (en) Image generation method and server
US6195462B1 (en) Image compression
CN111681291A (en) Image processing method, device, equipment and computer readable storage medium
CN107368603A (en) A kind of method and device, storage medium and the terminal of the processing of picture filter
US20200401840A1 (en) Digital image presentation
CN109889843A (en) Technology for being encoded, being decoded and being indicated to high dynamic range images
CN112381907B (en) Multimedia track drawing method and system
US20050275666A1 (en) System and method for dynamic control of file size
US20160284070A1 (en) User Sliders for Simplified Adjustment of Images
CN109272449A (en) Image display method and device, computer installation and readable storage medium storing program for executing
CN109413434A (en) Image processing method, device, system, storage medium and computer equipment
CN109685714A (en) Picture compression method, apparatus, equipment and computer readable storage medium
EP3192262A1 (en) Systems and methods for subject-oriented compression
CN111354050A (en) Android-based picture compression method and device and storage medium
CN114283184A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN114449354B (en) Video editing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170524