CN102508851A - Image upload processing method and image upload processing system - Google Patents

Image upload processing method and image upload processing system Download PDF

Info

Publication number
CN102508851A
CN102508851A CN2011102965142A CN201110296514A CN102508851A CN 102508851 A CN102508851 A CN 102508851A CN 2011102965142 A CN2011102965142 A CN 2011102965142A CN 201110296514 A CN201110296514 A CN 201110296514A CN 102508851 A CN102508851 A CN 102508851A
Authority
CN
China
Prior art keywords
picture
module
server
original image
divergent
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
CN2011102965142A
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.)
Shenzhen Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju Technology 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 Shenzhen Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CN2011102965142A priority Critical patent/CN102508851A/en
Publication of CN102508851A publication Critical patent/CN102508851A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention belongs to the technical field of multimedia, and particularly relates to an image upload processing method and an image upload processing system. The image upload processing system includes: a, setting up configuration files of the resolution ratio size of a target image; b, uploading a source file to a server and calculating the scaling of the length and the width of the source file according to the resolution ratio size of the target image; and c, scaling the source file according to the scaling, automatically generating the target image according with the scaling size and storing the target image into the server. The image upload processing method and the image upload processing system have the advantages that by means of the scaling size of the target image arranged in advance, after the source image is uploaded to the server, the source image is automatically scaled by a program according to the resolution ratio size of the image, so that the new image according with the resolution ratio size is generated, complicated steps for uploading the image are simplified, processing processes are greatly saved, and image processing efficiency is improved.

Description

Disposal route that a kind of picture is uploaded and system
Technical field
The invention belongs to multimedia technology field, relate in particular to disposal route and system that a kind of picture is uploaded.
Background technology
At present; Store a large amount of pictures in the server and supply mobile terminal downloads; Usually the server uploading pictures need provide various size according to different mobile terminals screen size and resolution, and the mobile phone resolution of present main flow has a variety of, mainly comprises: 480x480; 320x320; 240x240,180X180,160x160,120x120,100x100,90x90,72x72,36x36,24x24,45X56,60X80 etc., any pictures need upload onto the server behind the picture of resolution through the suitable different size of routine processes one-tenth according to different mobile terminal.When a large amount of pictures is uploaded, need upload each pictures respectively and again each pictures is provided with resolution dimensions respectively, so, influence transfer efficiency on the picture, the workload that picture is handled also can be very huge and loaded down with trivial details, expends treatment process.
Summary of the invention
The invention provides disposal route and system that a kind of picture is uploaded, be intended to solve in the prior art, expend the problem that transfer efficiency is gone up in operation and influence because picture is handled too loaded down with trivial detailsly.
The present invention is achieved in that the disposal route that a kind of picture is uploaded, and comprising:
Step a: the configuration file that purpose photo resolution size is set;
Step b: upload source document to server, calculate the scaling of source document length and width according to purpose photo resolution size;
Step c: according to scaling source document is carried out convergent-divergent and handle, generation meets the purpose picture of scaled and is kept in the server automatically.
Technical scheme of the present invention also comprises: in said step a, the configuration file stores of said purpose photo resolution size is in server.
Technical scheme of the present invention also comprises: said step b also comprises: judge whether source document is picture format, if not picture format, what the prompting user uploaded is not picture; If picture format then reads original image in server memory, obtain length, width and the Pixel Information of original image, and judge whether the information of obtaining is successful, if it is unsuccessful to obtain information, what the prompting user uploaded is not picture; If obtain the information success, then read the configuration file of purpose photo resolution size.
Technical scheme of the present invention also comprises: in said step c; Saidly original image is carried out the concrete processing mode that convergent-divergent handles be: according to the newly-built blank photo-document of scaling; In blank photo-document, draw convergent-divergent purpose picture, and the purpose picture behind the convergent-divergent is kept in the server according to the original image pixel.
Technical scheme of the present invention also comprises: when a large amount of pictures need be uploaded; Said step a also comprises: the original image File Compress that needs are uploaded becomes a File Compress bag; And the upload file compressed package is to server; Said step b also comprises: the decompressing files compressed package obtains source document, and source document is saved in the server.
Technical scheme of the present invention also comprises: said step c also comprises: judge whether to also have next to open original image and need carry out convergent-divergent, if having, and execution in step b again; If no, judge whether to accomplish the convergent-divergent of last picture, if not, read the original image file again to server memory; If finish this picture and handle.
Another technical scheme provided by the invention: the disposal system that a kind of picture is uploaded; Comprise portable terminal and server; Said portable terminal comprises transmission module on the file; Be used to upload source document to server; Said server comprises that picture is provided with module, ratio computing module and image zooming module, and said picture is provided with the configuration file that module is used to be provided with purpose photo resolution size, and said ratio computing module is used for calculating according to purpose photo resolution size the scaling of original image length and width; Said image zooming module is used for according to scaling original image being carried out convergent-divergent to be handled, and generation meets the purpose picture of scaled and is kept in the server automatically.
Technical scheme of the present invention also comprises: said server also comprises form judge module, information indicating module and picture reading module; Said form judge module is used to judge whether source document is picture format; If not picture format, through information indicating module prompting user; If picture format reads the original image file through picture reading module; Said information indicating module is used to point out that the user uploads is not picture, and said picture reading module is used for reading original image to server.
Technical scheme of the present invention also comprises: said server also comprises raw information acquisition module and configuration information acquisition module; Said raw information acquisition module is used to obtain length, width and the Pixel Information of original image; And judge whether the information of obtaining is successful; If it is unsuccessful to obtain information, through information indicating module prompting user; If obtain the information success, read purpose photo resolution size through the configuration information acquisition module, said configuration information acquisition module is used to read the configuration file of purpose photo resolution size.
Technical scheme of the present invention also comprises: said portable terminal also comprises the File Compress module; Said server also comprises file decompression module, the first convergent-divergent judge module and the second convergent-divergent judge module; The source document that said File Compress module is used for when uploading heap file, needs being uploaded is compressed into a File Compress bag, uploads onto the server through transmission module on the file again; Said file decompression module is used for the decompressing files compressed package and obtains source document; And source document is saved in the server; The said first convergent-divergent judge module is used to judge whether also have next to open original image need carry out convergent-divergent, if having, the passing ratio computing module calculates the picture scaling again; If no, judge through the second convergent-divergent judge module whether convergent-divergent finishes; The said second convergent-divergent judge module is used to judge whether to accomplish the convergent-divergent of last picture, if not, read the original image file through picture reading module again; If finish this picture and handle.
Technical scheme of the present invention has following advantage or beneficial effect: disposal route that picture provided by the invention is uploaded and system are through be provided with the scaled of purpose picture in advance; After original image is uploaded onto the server; Program is carried out convergent-divergent with original image automatically according to the resolution dimensions of purpose picture and is handled; Generation meets the new picture of resolution dimensions and is stored in the server, and uploading pictures all will be provided with the resolution dimensions of purpose picture at every turn; The present invention is particularly useful for the upload process of a large amount of pictures; Through a large amount of pictures are uploaded onto the server so that the mode of compressed package is disposable; Server travels through the batch processing that picture in the compressed package is realized a large amount of pictures one by one; Simplify the repeatedly loaded down with trivial details step of uploading pictures, saved treatment process widely, improved the efficient that picture is handled.
Description of drawings
Accompanying drawing 1 is the process flow diagram of the disposal route uploaded of the picture of first embodiment of the invention;
Accompanying drawing 2 is process flow diagrams of the disposal route uploaded of the picture of second embodiment of the invention;
Accompanying drawing 3 is fundamental diagrams of image zooming of the present invention;
Accompanying drawing 4 is process flow diagrams of the disposal route uploaded of the picture of third embodiment of the invention;
Accompanying drawing 5 is structural representations of the disposal system uploaded of the picture of first embodiment of the invention;
Accompanying drawing 6 is structural representations of the disposal system uploaded of the picture of second embodiment of the invention;
Accompanying drawing 7 is structural representations of the disposal system uploaded of the picture of third embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Seeing also Fig. 1, is the process flow diagram of the disposal route uploaded of the picture of first embodiment of the invention.The disposal route that the picture of first embodiment of the invention is uploaded may further comprise the steps:
Step 100: the configuration file that purpose photo resolution size is set;
In step 100, the configuration file of purpose photo resolution size can be provided with according to the different resolution size of portable terminal; Purpose photo resolution dimensional configurations file is meant need be by the size of original image through the picture of convergent-divergent generation; The user uploads an original image in server; Server can be scaled the purpose picture that meets the portable terminal resolution dimensions according to purpose photo resolution dimensional configurations file with original image automatically, and uploading pictures all will be provided with the resolution dimensions of purpose picture at every turn.
Step 110: upload source document to server, calculate the scaling of source document length and width according to purpose photo resolution size;
In step 110; The scaling of calculating chart leaf length and width is specially: for example resolution is that the original image of 480x480 will generate the picture that resolution is 320x320; So wide and high ratio all is: 320/480=2/3, the meaning is exactly to dwindle width and the height that resolution is the original image of 480x480 with 2/3 ratio.
Step 120: according to scaling source document is carried out convergent-divergent and handle, generation meets the purpose picture of scaled and is kept in the server automatically.
In step 120, the concrete grammar of image zooming is: press the newly-built blank photo-document of scaling, in blank photo-document, draw scaling pictures according to the original image pixel, and this scaling pictures is kept in the server; Newly-built blank picture file is the picture-storage space behind the convergent-divergent, and the drafting of blank picture file process picture pixel just becomes the picture behind the convergent-divergent; The fundamental diagram of image zooming specifically comprises: the coordinate transform relation, the calculating purpose picture mid point (i that set up purpose picture and original image; J) coordinate (x of corresponding point in original image; Y), calculate original image mid point (x according to computation model; Y) the color value c that locates, (i, color value j) are set to color value c, handle each pixel on the purpose picture, can accomplish convergent-divergent with purpose picture mid point.
Seeing also Fig. 2, is the process flow diagram of the disposal route uploaded of the picture of second embodiment of the invention.The disposal route that the picture of second embodiment of the invention is uploaded may further comprise the steps:
Step 200: the configuration file that purpose photo resolution size is set;
In step 200, the configuration file stores of the purpose photo resolution size of setting is in server, and the configuration file of purpose photo resolution size can be provided with according to the different resolution size of portable terminal; Purpose photo resolution dimensional configurations file is meant need be by the size of original image through the picture of convergent-divergent generation; The user uploads an original image in server; Server can be scaled the purpose picture that meets the portable terminal resolution dimensions according to purpose photo resolution dimensional configurations file with original image automatically, and uploading pictures all will be provided with the resolution dimensions of purpose picture at every turn.
Step 210: the original image file of uploading needs is to server;
Step 220: judge whether this source document is picture format, if not picture format, execution in step 230; If picture format, execution in step 240;
In step 220, picture format is the form of Computer Storage picture, and common picture format mainly comprises forms such as gif, jpg, jpeg, png, bmp.
Step 230: what the prompting user uploaded is not picture, and execution in step 290;
Step 240: read original image in server memory;
Step 250: obtain length, width and the Pixel Information of original image, and judge whether the information of obtaining is successful, if it is unsuccessful to obtain information, execution in step 230 again; If obtain the information success, execution in step 260;
Step 260: the configuration file that reads purpose photo resolution size;
Step 270: the scaling that calculates original image length and width according to purpose photo resolution size;
In step 270; The scaling of calculating chart leaf length and width is specially: for example resolution is that the original image of 480x480 will generate the picture that resolution is 320x320; So wide and high ratio all is: 320/480=2/3, the meaning is exactly to dwindle width and the height that resolution is the original image of 480x480 with 2/3 ratio.
Step 280: press the picture-storage space after coding of graphics generates convergent-divergent, in the picture-storage space, draw scaling pictures, and the picture behind the convergent-divergent is kept in the server according to the original image pixel;
In step 280, press the picture-storage space after coding of graphics generates convergent-divergent, be meant that by the newly-built blank picture file of scaling the drafting of blank picture file process picture pixel just becomes the picture behind the convergent-divergent; In order to clearly demonstrate the image zooming principle of step 280, please consult Fig. 3 in the lump, be the fundamental diagram of image zooming of the present invention.The principle of work of image zooming of the present invention comprises:
Step 281: the coordinate transform relation of setting up purpose picture and original image;
Step 282: calculate purpose picture mid point (i, j) in original image the coordinate of corresponding point (x, y);
Step 283: calculate original image mid point (x, the color value c that y) locates according to computation model;
Step 284: with purpose picture mid point (i, color value j) is set to color value c;
Step 285: handle each pixel on the purpose picture, can accomplish convergent-divergent.
Step 290: finish this picture and handle.
Seeing also Fig. 4, is the process flow diagram of the disposal route uploaded of the picture of third embodiment of the invention.The disposal route that the picture of third embodiment of the invention is uploaded may further comprise the steps:
Step 400: the configuration file that purpose photo resolution size is set;
In step 400, the configuration file stores of the purpose photo resolution size of setting is in server, and the configuration file of purpose photo resolution size can be provided with according to the different resolution size of portable terminal; Purpose photo resolution dimensional configurations file is meant the set of the size that has comprised the picture that need be generated through convergent-divergent by original image; For example: include the picture (480x480,320x320,240x240,180X180,160x160,120x120,100x100,90x90,72x72,36x36,24x24) of different size etc. in the original image of uploading in batches; These pictures all need be scaled and meet the resolution dimensions that portable terminal uses; After the configuration file of purpose photo resolution size is set; Server can be scaled the purpose picture that meets the portable terminal resolution dimensions with the original image unification of all different sizes according to purpose photo resolution dimensional configurations file, and need not whenever upload the resolution dimensions that a pictures all will be provided with the purpose picture respectively.
Step 410: the original image File Compress that needs are uploaded becomes a File Compress bag:
In step 410, the picture compression mode can be utilized existing compressed software, like RAR, and ZIP etc.
Step 420: the upload file compressed package is to server;
Step 330: the decompressing files compressed package obtains source document, and source document is saved in the server;
Step 440: judge whether this source document is picture format, if not picture format, execution in step 450; If picture format, execution in step 460;
In step 440, picture format is the form of Computer Storage picture, and common picture format mainly comprises forms such as gif, jpg, jpeg, png, bmp.
Step 450: what the prompting user uploaded is not picture, and execution in step 530;
Step 460: traversal reads the original image file in server memory one by one;
Step 470: obtain length, width and the Pixel Information of original image, and judge whether the information of obtaining is successful, if it is unsuccessful to obtain information, execution in step 450 again; If obtain the information success, execution in step 480;
Step 480: the configuration file that reads purpose photo resolution size;
Step 490: the scaling that calculates this original image length and width according to purpose photo resolution size;
In step 490; The scaling of calculating chart leaf length and width is specially: for example resolution is that the original image of 480x480 will generate the picture that resolution is 320x320; So wide and high ratio all is: 320/480=2/3, the meaning is exactly to dwindle width and the height that resolution is the original image of 480x480 with 2/3 ratio.
Step 500: press the picture-storage space after coding of graphics generates convergent-divergent, the picture after in the picture-storage space, drawing out convergent-divergent according to the original image pixel, and the picture behind the convergent-divergent is kept in the server;
In step 500, press the picture-storage space after coding of graphics generates convergent-divergent, be meant that by the newly-built blank picture file of scaling the drafting of blank picture file process picture pixel just becomes the picture behind the convergent-divergent; The image zooming principle of step 500 is specifically please consulted Fig. 3 in the lump with step 280.
Step 510: judge whether to also have next to open original image and need carry out convergent-divergent, if having, execution in step 490 again; If no, execution in step 520;
Step 520: judge whether to accomplish the convergent-divergent of last picture, if not, execution in step 460 again; If, execution in step 530;
Step 530: finish this picture and handle.
Seeing also Fig. 5, is the structural representation of the disposal system uploaded of the picture of first embodiment of the invention.The disposal system that the picture of first embodiment of the invention is uploaded comprises portable terminal and server, and portable terminal comprises transmission module on the file, and server comprises that picture is provided with module, ratio computing module and image zooming module,
Transmission module is used to upload source document to server on the file;
Picture is provided with the configuration file that module is used to be provided with purpose photo resolution size; Wherein, the configuration file of purpose photo resolution size can be provided with according to the different resolution size of portable terminal; Purpose photo resolution dimensional configurations file is meant need be by the size of original image through the picture of convergent-divergent generation; The user uploads an original image in server; Server can be scaled the purpose picture that meets the portable terminal resolution dimensions according to purpose photo resolution dimensional configurations file with original image automatically, and uploading pictures all will be provided with the resolution dimensions of purpose picture at every turn.
The ratio computing module is used for calculating according to purpose photo resolution size the scaling of original image length and width; Wherein, The scaling of calculating chart leaf length and width is specially: for example resolution is that the original image of 480x480 will generate the picture that resolution is 320x320; So wide and high ratio all is: 320/480=2/3, the meaning is exactly to dwindle width and the height that resolution is the original image of 480x480 with 2/3 ratio.
The image zooming module is used for according to scaling original image being carried out convergent-divergent to be handled, and generation meets the purpose picture of scaled and is kept in the server automatically; Wherein, the concrete grammar of image zooming is: press the newly-built blank photo-document of scaling, in blank photo-document, draw scaling pictures according to the original image pixel, and this scaling pictures is kept in the server; Newly-built blank picture file is the picture-storage space behind the convergent-divergent, and the drafting of blank picture file process picture pixel just becomes the picture behind the convergent-divergent; The fundamental diagram of image zooming specifically comprises: the coordinate transform relation, the calculating purpose picture mid point (i that set up purpose picture and original image; J) coordinate (x of corresponding point in original image; Y), calculate original image mid point (x according to computation model; Y) the color value c that locates, (i, color value j) are set to color value c, handle each pixel on the purpose picture, can accomplish convergent-divergent with purpose picture mid point.
Seeing also Fig. 6, is the structural representation of the disposal system uploaded of the picture of second embodiment of the invention.The disposal system that the picture of second embodiment of the invention is uploaded comprises portable terminal and server; Portable terminal comprises transmission module on the file; Server comprises that picture is provided with module, form judge module, information indicating module, picture reading module, raw information acquisition module, configuration information acquisition module, ratio computing module and image zooming module, wherein
Transmission module is used to upload source document to server on the file;
Picture is provided with the configuration file that module is used to be provided with purpose photo resolution size; Wherein, the configuration file of purpose photo resolution size can be provided with according to the different resolution size of portable terminal; Purpose photo resolution dimensional configurations file is meant need be by the size of original image through the picture of convergent-divergent generation; The user uploads an original image in server; Server can be scaled the purpose picture that meets the portable terminal resolution dimensions according to purpose photo resolution dimensional configurations file with original image automatically, and uploading pictures all will be provided with the resolution dimensions of purpose picture at every turn.
The form judge module is used to judge whether source document is picture format, if not picture format, through information indicating module prompting user; If picture format reads the original image file through picture reading module; Wherein, picture format is the form of Computer Storage picture, and common picture format mainly comprises forms such as gif, jpg, jpeg, png, bmp.
The information indicating module is used to point out that the user uploads is not picture;
Picture reading module is used for reading original image to server;
The raw information acquisition module is used to obtain length, width and the Pixel Information of original image, and judges whether the information of obtaining is successful, if it is unsuccessful to obtain information, through information indicating module prompting user; If obtain the information success, read purpose photo resolution size through the configuration information acquisition module;
The configuration information acquisition module is used to read the configuration file of purpose photo resolution size;
The ratio computing module is used for calculating according to purpose photo resolution size the scaling of original image length and width; Wherein, The scaling of calculating chart leaf length and width is specially: for example resolution is that the original image of 480x480 will generate the picture that resolution is 320x320; So wide and high ratio all is: 320/480=2/3, the meaning is exactly to dwindle width and the height that resolution is the original image of 480x480 with 2/3 ratio.
The image zooming module is used for generating the picture-storage space behind the convergent-divergent by coding of graphics, the picture after in the picture-storage space, drawing out convergent-divergent according to the original image pixel, and the picture behind the convergent-divergent is kept in the server; Wherein, press the picture-storage space after coding of graphics generates convergent-divergent, be meant by the newly-built blank picture file of scaling, the drafting of blank picture file process picture pixel just becomes the picture behind the convergent-divergent; The principle of work of image zooming is specially: the coordinate transform relation, the calculating purpose picture mid point (i that set up purpose picture and original image; J) coordinate (x of corresponding point in original image; Y), calculate original image mid point (x according to computation model; Y) the color value c that locates, (i, color value j) are set to color value c, handle each pixel on the purpose picture, can accomplish image zooming with purpose picture mid point.
Seeing also Fig. 7, is the structural representation of the disposal system uploaded of the picture of third embodiment of the invention.The disposal system that the picture of third embodiment of the invention is uploaded comprises portable terminal and server; Portable terminal comprises transmission module on File Compress module and the file; Server comprises that picture is provided with module, file decompression module, form judge module, information indicating module, picture reading module, raw information acquisition module, configuration information acquisition module, ratio computing module, image zooming module, the first convergent-divergent judge module and the second convergent-divergent judge module, wherein
The File Compress module is used for the source document that needs are uploaded is compressed into a File Compress bag: wherein, the picture compression mode can be utilized existing compressed software, like RAR, and ZIP etc.
Transmission module is used for the upload file compressed package to server on the file;
Picture is provided with the configuration file that module is used to be provided with purpose photo resolution size; Wherein, the configuration file of purpose photo resolution size can be provided with according to the different resolution size of portable terminal; Purpose photo resolution dimensional configurations file is meant the set of the size that has comprised the picture that need be generated through convergent-divergent by original image; For example: include the picture (480x480,320x320,240x240,180X180,160x160,120x120,100x100,90x90,72x72,36x36,24x24) of different size etc. in the original image of uploading in batches; These pictures all need be scaled and meet the resolution dimensions that portable terminal uses; After the configuration file of purpose photo resolution size is set; Server can be scaled the purpose picture that meets the portable terminal resolution dimensions with the original image unification of all different sizes according to purpose photo resolution dimensional configurations file, and need not whenever upload the resolution dimensions that a pictures all will be provided with the purpose picture respectively.
The file decompression module is used for the decompressing files compressed package and obtains source document, and source document is saved in the server;
The form judge module is used to judge whether source document is picture format, if not picture format, through information indicating module prompting user; If picture format reads the original image file through picture reading module; Wherein, picture format is the form of Computer Storage picture, and common picture format mainly comprises forms such as gif, jpg, jpeg, png, bmp.
The information indicating module is used to point out that the user uploads is not picture;
Picture reading module is used for traveling through one by one and reads the original image file to server memory;
The raw information acquisition module is used to obtain length, width and the Pixel Information of original image, and judges whether the information of obtaining is successful, if it is unsuccessful to obtain information, through information indicating module prompting user; If obtain the information success, read purpose photo resolution size through the configuration information acquisition module;
The configuration information acquisition module is used to read the configuration file of purpose photo resolution size;
The ratio computing module is used for calculating according to purpose photo resolution size the scaling of original image length and width; Wherein, The scaling of calculating chart leaf length and width is specially: for example resolution is that the original image of 480x480 will generate the picture that resolution is 320x320; So wide and high ratio all is: 320/480=2/3, the meaning is exactly to dwindle width and the height that resolution is the original image of 480x480 with 2/3 ratio.
The image zooming module is used for generating the picture-storage space behind the convergent-divergent by coding of graphics, the picture after in the picture-storage space, drawing out convergent-divergent according to the original image pixel, and the picture behind the convergent-divergent is kept in the server; Wherein, press the picture-storage space after coding of graphics generates convergent-divergent, be meant by the newly-built blank picture file of scaling, the drafting of blank picture file process picture pixel just becomes the picture behind the convergent-divergent; The principle of work of image zooming is specially: the coordinate transform relation, the calculating purpose picture mid point (i that set up purpose picture and original image; J) coordinate (x of corresponding point in original image; Y), calculate original image mid point (x according to computation model; Y) the color value c that locates, (i, color value j) are set to color value c, handle each pixel on the purpose picture, can accomplish image zooming with purpose picture mid point.
The first convergent-divergent judge module is used to judge whether also have next to open original image need carry out convergent-divergent, if having, the passing ratio computing module calculates the picture scaling again; If no, judge through the second convergent-divergent judge module whether convergent-divergent finishes;
The second convergent-divergent judge module is used to judge whether to accomplish the convergent-divergent of last picture, if not, read the original image file through the picture reading module traversal again; If finish this picture and handle.
Disposal route that picture provided by the invention is uploaded and system are through be provided with the scaled of purpose picture in advance; After original image is uploaded onto the server; Program is carried out convergent-divergent with original image automatically according to the resolution dimensions of purpose picture and is handled; Generation meets the new picture of resolution dimensions and is stored in the server, and uploading pictures all will be provided with the resolution dimensions of purpose picture at every turn; The present invention is particularly useful for the upload process of a large amount of pictures; Through a large amount of pictures are uploaded onto the server so that the mode of compressed package is disposable; Server travels through the batch processing that picture in the compressed package is realized a large amount of pictures one by one; Simplify the repeatedly loaded down with trivial details step of uploading pictures, saved treatment process widely, improved the efficient that picture is handled.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. disposal route that picture is uploaded comprises:
Step a: the configuration file that purpose photo resolution size is set;
Step b: upload source document to server, calculate the scaling of source document length and width according to purpose photo resolution size;
Step c: according to scaling source document is carried out convergent-divergent and handle, generation meets the purpose picture of scaled and is kept in the server automatically.
2. the disposal route that picture according to claim 1 is uploaded is characterized in that, in said step a, the configuration file stores of said purpose photo resolution size is in server.
3. the disposal route that picture according to claim 2 is uploaded is characterized in that, said step b also comprises: judge whether source document is picture format, if not picture format, what the prompting user uploaded is not picture; If picture format then reads original image in server memory, obtain length, width and the Pixel Information of original image, and judge whether the information of obtaining is successful, if it is unsuccessful to obtain information, what the prompting user uploaded is not picture; If obtain the information success, then read the configuration file of purpose photo resolution size.
4. the disposal route that picture according to claim 3 is uploaded; It is characterized in that; In said step c; Saidly original image is carried out the concrete processing mode that convergent-divergent handles be: according to the newly-built blank photo-document of scaling, in blank photo-document, draw convergent-divergent purpose picture, and the purpose picture behind the convergent-divergent is kept in the server according to the original image pixel.
5. the disposal route that picture according to claim 1 is uploaded; It is characterized in that; When a large amount of pictures need be uploaded, said step a also comprised: the original image File Compress that needs are uploaded becomes a File Compress bag, and the upload file compressed package is to server; Said step b also comprises: the decompressing files compressed package obtains source document, and source document is saved in the server.
6. the disposal route that picture according to claim 5 is uploaded is characterized in that, said step c also comprises: judge whether to also have next to open original image and need carry out convergent-divergent, if having, and execution in step b again; If no, judge whether to accomplish the convergent-divergent of last picture, if not, read the original image file again to server memory; If finish this picture and handle.
7. disposal system that picture is uploaded; Comprise portable terminal and server, said portable terminal comprises transmission module on the file, is used to upload source document to server; It is characterized in that; Said server comprises that picture is provided with module, ratio computing module and image zooming module, and said picture is provided with the configuration file that module is used to be provided with purpose photo resolution size, and said ratio computing module is used for calculating according to purpose photo resolution size the scaling of original image length and width; Said image zooming module is used for according to scaling original image being carried out convergent-divergent to be handled, and generation meets the purpose picture of scaled and is kept in the server automatically.
8. the disposal system that picture according to claim 7 is uploaded; It is characterized in that; Said server also comprises form judge module, information indicating module and picture reading module; Said form judge module is used to judge whether source document is picture format, if not picture format, through information indicating module prompting user; If picture format reads the original image file through picture reading module; Said information indicating module is used to point out that the user uploads is not picture, and said picture reading module is used for reading original image to server.
9. the disposal system of uploading according to claim 7 or 8 described pictures; It is characterized in that; Said server also comprises raw information acquisition module and configuration information acquisition module, and said raw information acquisition module is used to obtain length, width and the Pixel Information of original image, and judges whether the information of obtaining is successful; If it is unsuccessful to obtain information, through information indicating module prompting user; If obtain the information success, read purpose photo resolution size through the configuration information acquisition module, said configuration information acquisition module is used to read the configuration file of purpose photo resolution size.
10. the disposal system that picture according to claim 9 is uploaded; It is characterized in that; Said portable terminal also comprises the File Compress module; Said server also comprises file decompression module, the first convergent-divergent judge module and the second convergent-divergent judge module, and the source document that said File Compress module is used for when uploading heap file, needs being uploaded is compressed into a File Compress bag, uploads onto the server through transmission module on the file again; Said file decompression module is used for the decompressing files compressed package and obtains source document; And source document is saved in the server; The said first convergent-divergent judge module is used to judge whether also have next to open original image need carry out convergent-divergent, if having, the passing ratio computing module calculates the picture scaling again; If no, judge through the second convergent-divergent judge module whether convergent-divergent finishes; The said second convergent-divergent judge module is used to judge whether to accomplish the convergent-divergent of last picture, if not, read the original image file through picture reading module again; If finish this picture and handle.
CN2011102965142A 2011-09-27 2011-09-27 Image upload processing method and image upload processing system Pending CN102508851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102965142A CN102508851A (en) 2011-09-27 2011-09-27 Image upload processing method and image upload processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102965142A CN102508851A (en) 2011-09-27 2011-09-27 Image upload processing method and image upload processing system

Publications (1)

Publication Number Publication Date
CN102508851A true CN102508851A (en) 2012-06-20

Family

ID=46220939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102965142A Pending CN102508851A (en) 2011-09-27 2011-09-27 Image upload processing method and image upload processing system

Country Status (1)

Country Link
CN (1) CN102508851A (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103235797A (en) * 2013-04-09 2013-08-07 四三九九网络股份有限公司 Image size batch processing method and device
CN103268619A (en) * 2013-05-09 2013-08-28 四三九九网络股份有限公司 Method and device for batch compression for picture data in swf document
CN103390023A (en) * 2013-06-17 2013-11-13 携程计算机技术(上海)有限公司 Image processing method and system
CN103457937A (en) * 2013-08-16 2013-12-18 深圳Tcl新技术有限公司 Method and system for browsing pictures of shared file
CN103731488A (en) * 2013-12-26 2014-04-16 黄伟 Photo sharing method and system
CN103747136A (en) * 2013-12-26 2014-04-23 乐视致新电子科技(天津)有限公司 Method and apparatus for pushing pictures
CN104202624A (en) * 2014-08-22 2014-12-10 小米科技有限责任公司 Method and device for transmitting picture
WO2015000417A1 (en) * 2013-07-03 2015-01-08 Tencent Technology (Shenzhen) Company Limited Method, apparatus, application interactive platform, terminal, and system for uploading an image
CN104317502A (en) * 2014-10-31 2015-01-28 新华瑞德(北京)网络科技有限公司 Picture editing method and device
CN105303516A (en) * 2015-10-15 2016-02-03 黄云鸿 Picture batch processing method and system
CN105373380A (en) * 2015-10-19 2016-03-02 中国联合网络通信集团有限公司 Picture slicing method and picture slicing device
CN105469433A (en) * 2014-09-03 2016-04-06 腾讯科技(深圳)有限公司 Picture compression method and equipment thereof
CN105844588A (en) * 2016-03-17 2016-08-10 广州筷子信息科技有限公司 Method and system for intelligent scalable compression of creative images
CN106201216A (en) * 2016-07-26 2016-12-07 惠州Tcl移动通信有限公司 The display packing of a kind of self-defined desktop icons and system
CN106383633A (en) * 2016-09-28 2017-02-08 Tcl集团股份有限公司 Application icon replacement method and apparatus
US9832342B2 (en) 2014-08-22 2017-11-28 Xiaomi Inc. Method and device for transmitting image
CN108650435A (en) * 2018-05-29 2018-10-12 广东微校信息科技有限公司 A kind of picture multistage limiting file size threshold values in browser end is guaranteed the quality compression method
CN108921784A (en) * 2018-06-13 2018-11-30 四川斐讯信息技术有限公司 A kind of picture compression method and system based on mobile terminal
CN109905466A (en) * 2019-01-29 2019-06-18 广东淘家科技有限公司 Picture upload, browsing method, device and storage medium
CN109918427A (en) * 2019-01-16 2019-06-21 平安普惠企业管理有限公司 Picture uploads control method, device, computer equipment and storage medium
CN110795008A (en) * 2019-09-29 2020-02-14 视联动力信息技术股份有限公司 Picture transmission method and device and computer readable storage medium
CN111159441A (en) * 2019-12-25 2020-05-15 北大方正集团有限公司 Picture editing method, picture editing apparatus, and computer-readable storage medium
CN111192195A (en) * 2019-12-17 2020-05-22 中国平安财产保险股份有限公司 Picture processing method and device, computer equipment and storage medium
CN111950562A (en) * 2020-09-02 2020-11-17 深圳市泽汇科技有限公司 Picture processing method and device, terminal equipment and storage medium
CN112565812A (en) * 2019-09-26 2021-03-26 西安诺瓦星云科技股份有限公司 Program editing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163252A (en) * 2007-11-27 2008-04-16 中国科学院计算技术研究所 Zoom method of multimedia video image
US20080118237A1 (en) * 2006-11-22 2008-05-22 Rainer Wegenkittl Auto-Zoom Mark-Up Display System and Method
CN101359336A (en) * 2008-08-15 2009-02-04 深圳市中兴移动通信有限公司 Method for producing reduced graph with different specifications based on page need
CN101763625A (en) * 2009-12-24 2010-06-30 广东威创视讯科技股份有限公司 Image pixel processing method
CN101944177A (en) * 2010-08-30 2011-01-12 深圳市多赢软件技术有限公司 Method for recognizing verification code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080118237A1 (en) * 2006-11-22 2008-05-22 Rainer Wegenkittl Auto-Zoom Mark-Up Display System and Method
CN101163252A (en) * 2007-11-27 2008-04-16 中国科学院计算技术研究所 Zoom method of multimedia video image
CN101359336A (en) * 2008-08-15 2009-02-04 深圳市中兴移动通信有限公司 Method for producing reduced graph with different specifications based on page need
CN101763625A (en) * 2009-12-24 2010-06-30 广东威创视讯科技股份有限公司 Image pixel processing method
CN101944177A (en) * 2010-08-30 2011-01-12 深圳市多赢软件技术有限公司 Method for recognizing verification code

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103235797B (en) * 2013-04-09 2015-12-23 四三九九网络股份有限公司 A kind of method and apparatus of batch processing picture size
CN103235797A (en) * 2013-04-09 2013-08-07 四三九九网络股份有限公司 Image size batch processing method and device
CN103268619A (en) * 2013-05-09 2013-08-28 四三九九网络股份有限公司 Method and device for batch compression for picture data in swf document
CN103268619B (en) * 2013-05-09 2016-03-30 四三九九网络股份有限公司 The method of image data batch compression in swf file and device
CN103390023A (en) * 2013-06-17 2013-11-13 携程计算机技术(上海)有限公司 Image processing method and system
WO2015000417A1 (en) * 2013-07-03 2015-01-08 Tencent Technology (Shenzhen) Company Limited Method, apparatus, application interactive platform, terminal, and system for uploading an image
CN103457937A (en) * 2013-08-16 2013-12-18 深圳Tcl新技术有限公司 Method and system for browsing pictures of shared file
CN103731488A (en) * 2013-12-26 2014-04-16 黄伟 Photo sharing method and system
CN103747136A (en) * 2013-12-26 2014-04-23 乐视致新电子科技(天津)有限公司 Method and apparatus for pushing pictures
WO2016026270A1 (en) * 2014-08-22 2016-02-25 小米科技有限责任公司 Method and apparatus for transmitting pictures
CN104202624B (en) * 2014-08-22 2015-12-30 小米科技有限责任公司 The method of transmission picture and device
US9832342B2 (en) 2014-08-22 2017-11-28 Xiaomi Inc. Method and device for transmitting image
CN104202624A (en) * 2014-08-22 2014-12-10 小米科技有限责任公司 Method and device for transmitting picture
CN105469433A (en) * 2014-09-03 2016-04-06 腾讯科技(深圳)有限公司 Picture compression method and equipment thereof
CN105469433B (en) * 2014-09-03 2020-04-24 腾讯科技(深圳)有限公司 Picture compression method and equipment thereof
CN104317502A (en) * 2014-10-31 2015-01-28 新华瑞德(北京)网络科技有限公司 Picture editing method and device
CN104317502B (en) * 2014-10-31 2018-03-09 大唐网络有限公司 The edit methods and editing device of picture
CN105303516A (en) * 2015-10-15 2016-02-03 黄云鸿 Picture batch processing method and system
CN105373380A (en) * 2015-10-19 2016-03-02 中国联合网络通信集团有限公司 Picture slicing method and picture slicing device
CN105844588A (en) * 2016-03-17 2016-08-10 广州筷子信息科技有限公司 Method and system for intelligent scalable compression of creative images
CN105844588B (en) * 2016-03-17 2019-05-24 广州筷子信息科技有限公司 The intelligent scalable compression method and system of intention picture
CN106201216A (en) * 2016-07-26 2016-12-07 惠州Tcl移动通信有限公司 The display packing of a kind of self-defined desktop icons and system
CN106383633A (en) * 2016-09-28 2017-02-08 Tcl集团股份有限公司 Application icon replacement method and apparatus
CN108650435A (en) * 2018-05-29 2018-10-12 广东微校信息科技有限公司 A kind of picture multistage limiting file size threshold values in browser end is guaranteed the quality compression method
CN108921784A (en) * 2018-06-13 2018-11-30 四川斐讯信息技术有限公司 A kind of picture compression method and system based on mobile terminal
CN108921784B (en) * 2018-06-13 2023-08-29 杭州吉吉知识产权运营有限公司 Picture compression method and system based on mobile terminal
CN109918427A (en) * 2019-01-16 2019-06-21 平安普惠企业管理有限公司 Picture uploads control method, device, computer equipment and storage medium
CN109905466A (en) * 2019-01-29 2019-06-18 广东淘家科技有限公司 Picture upload, browsing method, device and storage medium
CN112565812A (en) * 2019-09-26 2021-03-26 西安诺瓦星云科技股份有限公司 Program editing method and device
CN110795008A (en) * 2019-09-29 2020-02-14 视联动力信息技术股份有限公司 Picture transmission method and device and computer readable storage medium
CN110795008B (en) * 2019-09-29 2021-11-16 视联动力信息技术股份有限公司 Picture transmission method and device and computer readable storage medium
CN111192195A (en) * 2019-12-17 2020-05-22 中国平安财产保险股份有限公司 Picture processing method and device, computer equipment and storage medium
CN111159441A (en) * 2019-12-25 2020-05-15 北大方正集团有限公司 Picture editing method, picture editing apparatus, and computer-readable storage medium
CN111950562A (en) * 2020-09-02 2020-11-17 深圳市泽汇科技有限公司 Picture processing method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102508851A (en) Image upload processing method and image upload processing system
RU2010102958A (en) IMAGE PROCESSING DEVICE, METHOD AND COMPUTER PROGRAM OF IMAGE PROCESSING
CN202918341U (en) Geography position sharing system based on intelligent hand-held terminal and two-dimension code
CN104008569A (en) 3D scene generation method based on depth video
CN111159594A (en) Information processing method, information processing device and terminal equipment
CN101751440A (en) Data compression/decompression method and device thereof
CN103516748A (en) Method and system for self-adaption file downloading processing of cloud server and cloud server
CN110830807A (en) Image compression method, device and storage medium
CN102156569A (en) Apparatus and method for transmitting handwriting animation message
CN110765799A (en) Client code scanning identification method, device, equipment and storage medium
CN109993817B (en) Animation realization method and terminal
EP1434419A3 (en) Image processing apparatus and image processing method
CN112527752B (en) Data compression method, data compression device, computer readable storage medium and electronic equipment
CN211554942U (en) Material warehouse entry and exit management device based on two-dimensional code
CN104346156A (en) Text block displaying and processing method and device
CN102521278B (en) Rapid storage method for image data, valuable file identification method and identification device thereof
CN101477674A (en) Method for data computation assistance by display card
CN103488380A (en) Method and device for displaying information
CN114610212A (en) Front-end visual video content editing method, device, equipment and storage medium
CN113536392A (en) Cross-platform electronic signature method based on background service
CN103294788A (en) Universal background processing method and system for websites
CN103268619B (en) The method of image data batch compression in swf file and device
CN103186513A (en) Method and device for converting file formats
CN111857626A (en) Picture display method, device and equipment based on screen coordinates and storage medium
CN113160407B (en) Converting method and device for converting digital three-dimensional model into construction model based on transformer substation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20120620