CN102685080A - Picture processing method and system - Google Patents
Picture processing method and system Download PDFInfo
- Publication number
- CN102685080A CN102685080A CN2011100647126A CN201110064712A CN102685080A CN 102685080 A CN102685080 A CN 102685080A CN 2011100647126 A CN2011100647126 A CN 2011100647126A CN 201110064712 A CN201110064712 A CN 201110064712A CN 102685080 A CN102685080 A CN 102685080A
- Authority
- CN
- China
- Prior art keywords
- picture
- server
- network address
- processing parameter
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a picture processing method which comprises the following steps of: obtaining processing parameters of a picture; sending the processing parameters to a server; processing the picture in the server according to the processing parameters and storing the processed picture; and generating a website according to the stored position of the picture, and returning to the website. According to the picture processing method and a picture processing system, the processing parameters of the picture are sent to the server, and then the picture stored in the server is processed and then stored without re-uploading the picture to be processed after the picture is processed, thereby improving the convenience for sharing the picture..
Description
[technical field]
The present invention relates to the internet, applications technology, particularly relate to a kind of image processing method and system.
[background technology]
Along with popularizing day by day of internet, applications, internet, applications from single visit and browsing page change horn of plenty more, picture is uploaded and function such as is shared and day by day become the indispensable function of current internet application.
The user is uploaded to picture in the website of image sharing can share the picture of uploading with other users.But picture user after uploading to the website of image sharing just cannot handle picture.For example, in the website of image sharing, the picture that user's preview has been uploaded; Find that the picture of having uploaded is inverted, at this moment, the user can only be with the picture deletion of having uploaded; After the processing of carrying out picture, upload to again in the website of image sharing, very inconvenient, and process is loaded down with trivial details.
[summary of the invention]
Based on this, be necessary to provide a kind of image processing method that improves convenience.
In addition, also be necessary to provide a kind of picture treatment system that improves convenience.
A kind of image processing method may further comprise the steps:
Obtain the processing parameter of picture;
Said processing parameter is sent in the server;
According to said processing parameter the picture in the server is handled, and preserved the picture after handling;
Preservation position according to picture generates network address, and returns said network address.
Preferably, said method also comprises:
Obtain the sign of picture;
Judge whether exist in the buffer memory and said processing parameter and the corresponding network address of sign, if, the picture after then handling through said network address preview, if not, the sign and the entering of then sending picture send to the step in the server with said processing parameter.
Preferably, saidly picture in the server is handled, and the step of preserving the picture after handling is according to said processing parameter:
From server, extract picture according to said sign;
Based on processing parameter the picture that extracts is handled the picture after obtaining handling, and the picture after the said processing is stored in the server.
Preferably, also comprise:
Through the picture after the said network address preview processing;
With the corresponding identification is said network address of indexed cache and processing parameter.
Preferably, said processing parameter is the rotation number of degrees.
A kind of picture treatment system comprises client and server,
Said client comprises:
Acquisition module is used to obtain the processing parameter of picture;
Sending module is used for said processing parameter is sent to server;
Server is used for according to said processing parameter picture being handled, and preserves the picture after handling, and according to the preservation position generation network address of picture, and returns said network address.
Preferably, said acquisition module also is used to obtain the sign of picture;
Said client also comprises:
Judge module is used for judging whether buffer memory exists and said processing parameter and the corresponding network address of sign, if, then notify previewing module, if not, then notify sending module;
Previewing module is used for through the picture after the said network address preview processing;
Sending module also is used for sending said processing parameter and is identified to server.
Preferably, said server comprises:
Extraction module is used for extracting picture based on said sign;
Processing module is used for according to processing parameter the picture that extracts being handled the picture after obtaining handling, and the picture after the said processing is stored in the server, according to the preservation position generation network address of picture, returns said network address.
Preferably, said previewing module also is used for through the picture after the said network address preview processing;
Client also comprises:
Memory, being used for the corresponding identification is said network address of indexed cache and processing parameter.
Preferably, said processing parameter is the rotation number of degrees.
In above-mentioned image processing method and the system; The processing parameter of picture is sent in the server; Picture to being stored in the server is handled the back preservation, and the picture that will not handle is uploaded after handling again, has improved the convenience of image sharing.
In above-mentioned image processing method and the system; To be stored in the server before uploading pictures is handled; At first whether judges carried out same picture processing operation, handled operation if the user once carries out same picture, then directly from buffer memory, extracted to get final product; Avoid repetitive operation, reduced the wasting of resources.
[description of drawings]
Fig. 1 is the flow chart of image processing method among first embodiment;
Fig. 2 handles the picture in the server based on processing parameter among Fig. 1, and preserves the flow chart of the picture after handling;
Fig. 3 is the flow chart of image processing method among second embodiment;
Fig. 4 is the flow chart of image processing method among the 3rd embodiment;
Fig. 5 is the structural representation of picture treatment system among the 4th embodiment;
Fig. 6 is the structural representation of client among Fig. 5;
Fig. 7 is the structural representation of server among Fig. 5.
[embodiment]
Fig. 1 shows the method flow that picture is handled among first embodiment, may further comprise the steps:
In step S101, obtain the processing parameter of picture.In the present embodiment, the user generates corresponding network address during picture is uploaded onto the server, so that through network address and other user's image sharing.
After user's uploading pictures,, handle, can directly operate picture if need carry out picture to the picture in uploading onto the server through the network address that generates preview uploading pictures on browser.The user handles the picture that picture carried out of preview through browser and comprises rotation, convergent-divergent etc., and the corresponding processing parameter has comprised the rotation number of degrees, scaling etc.
For example, the user can directly realize the rotation processing to the preview picture according to anticlockwise button in the direction of rotation webpage clicking and right rotation button.Click the anticlockwise button and make picture be rotated counterclockwise 90 degree, perhaps click the right rotation button picture dextrorotation is turn 90 degrees.In addition, the user also can pull picture and realize rotation.Obtain the rotation number of degrees of picture according to user's rotary manipulation, so that the picture that is stored in the server is rotated.
In step S103, processing parameter is sent in the server.In the present embodiment, after the user operates the picture of preview through browser, initiate picture to server and handle request, announcement server need carry out picture to picture to be handled, and processing parameter is sent to server.
In step S105, according to processing parameter the picture in the server is handled, and preserved the picture after handling.In the present embodiment, according to processing parameter picture is handled corresponding picture, and be stored in the server.
In step 107,, and return network address according to the preservation position generation network address of picture.In the present embodiment, carried out picture that picture handles and preserved the back and generate network address, gone out, realized that user and other users' is shared through the picture distribution that network address will be handled.
Among another embodiment, as shown in Figure 2, above-mentioned image processing method has also comprised following steps:
Step S201 obtains the processing parameter of picture.
Step S202 obtains the sign of picture.Server is stored picture to be designated index.In the server, each picture of uploading all has and its corresponding identification.Picture identification can be the informative abstract value (MD5 value) that obtained by the MD5 digest algorithm, picture name etc.
Step S203 judges whether exist in the buffer memory and processing parameter and the corresponding network address of sign, if, then get into step S204, if not, then get into step S205.In the present embodiment, get access to the user to the processing parameter that uploading pictures is handled after, for avoiding carrying out repetitive operation, whether should check once uploading pictures was carried out same processing, if then do not need to handle once more.
The user to the process that uploading pictures is handled in; Each picture of finishing dealing with all has sign corresponding with it, processing parameter and network address; Therefore, can whether exist in the buffer memory and processing parameter and the corresponding network address of sign through judging, if; Then explanation not need to this uploading pictures be rotated, only need be through the picture of this processing parameter of network address preview of existing in the buffer memory; If not, then the operation of this processing parameter was never carried out in explanation, need processing parameter and sign be sent to the processing of carrying out picture in the server.
Step S204 is through the picture after the network address preview processing.
Step S205 sends to the sign and the processing parameter of picture in the server.
Step S206 handles the picture in the server based on processing parameter, and preserves the picture after handling.
In a concrete embodiment, as shown in Figure 3, the picture in the server is handled, and the step of the picture after the preservation processing is based on processing parameter:
Step S216 extracts picture according to sign from server.In the present embodiment,, therefore, the mass data in the server is searched the picture that obtains correspondence in server according to sign because uploading pictures is stored to be designated index.
Step S236 based on processing parameter the picture that extracts is handled the picture after obtaining handling, and the picture after will handling is stored in the server.
Step S256 according to the preservation position generation network address of picture, and returns network address.
In a preferred embodiment, as shown in Figure 4, above-mentioned image processing method has comprised following steps:
Step S401 obtains the processing parameter of picture.
Step S402 obtains the sign of picture.
Step S403 judges whether exist in the buffer memory and processing parameter and the corresponding network address of sign, if, then get into step S404, if not, then get into step S405.
Step S404 is through the picture after the network address preview processing.
Step S405 sends to the sign and the processing parameter of picture in the server.
Step S406 handles the picture in the server based on processing parameter, and preserves the picture after handling.
Step S407 according to the preservation position generation network address of picture, and returns network address.
Step S408 is through the picture after the network address preview processing.In the present embodiment, the user after receiving the new web page address that server returns, the picture after handling through new web page address preview.
Step S409 is indexed cache network address and processing parameter with the corresponding identification.
Fig. 5 shows the structure of picture treatment system among the 4th embodiment, comprises client 10 and server 20.
After user's uploading pictures, the preview effect that client 10 Shows Picture according to the network address that generates is handled and can directly be operated the picture that is shown in the browser interface if the user need carry out picture to picture.
For example, the user can for example, click the anticlockwise button and make picture be rotated counterclockwise 90 degree directly according to anticlockwise button in the direction of rotation webpage clicking and right rotation button, perhaps clicks the right rotation button picture dextrorotation is turn 90 degrees.In addition, the user also can pull picture and realize rotation.Obtain the rotation number of degrees of picture according to user's rotary manipulation, so that the picture that is stored in the server 20 is rotated.
Sending module 103 is used for processing parameter is sent to server 20.In the present embodiment, picture is handled and has been comprised rotation, convergent-divergent etc., and then corresponding processing parameter is the rotation number of degrees and scaling.After the user operates the picture of preview, to initiate picture to server 20 and handle request, announcement server 20 need carry out picture to picture to be handled, and processing parameter is sent to server 20.
In a concrete embodiment, as shown in Figure 6, client 60 also comprises judge module 603, previewing module 605.
In the process that the user handles picture; Each accomplishes the picture of handling all has sign corresponding with it, processing parameter and web page address; Therefore, whether judge module 603 can exist in the buffer memory and processing parameter number and the corresponding web page address of sign through judging, if; Then explanation need not handled picture, and previewing module 605 is through the picture of this processing parameter of network address preview of existing in the buffer memory; If not, then this processing was never carried out in explanation, and sending module 107 sends to the processing of carrying out picture in the server 20 with processing parameter and sign.
Previewing module 605 is used for through the picture after the network address preview processing.
Sending module 607 also is used for sending processing parameter and being identified to server 20.
In a concrete embodiment, as shown in Figure 7, server 20 comprises extraction module 201 and processing module 203.
Among other embodiment, in above-mentioned picture treatment system, previewing module also is used for through the picture after the network address preview processing, and client has also comprised memory, and it is indexed cache network address and processing parameter number that this memory is used for the corresponding identification.
In the above-mentioned picture treatment system, client can be a browser etc.
Set forth the application process of image processing method and system below in conjunction with a detailed embodiment.Please combine to consult Fig. 6 and Fig. 7, among this embodiment, during the user uploads onto the server picture through browser, and store, generate the network address of this picture based on preserving the position with the index that is designated of picture.The user carries out preview through the network address of this picture, if the picture that need advance preview is rotated, transfers the picture of laterally placing to vertical placement, and then the user is according to anticlockwise button in the direction of rotation click browser webpage or right rotation button, revolves to turn 90 degrees.At this moment, the rotation number of degrees of picture are 90, and judge module 603 judges whether exist in the buffer memory and the rotation number of degrees and the corresponding network address of sign, if, then notify previewing module 605, if not, then notify sending module 607.
In buffer memory, exist and rotate the number of degrees and the corresponding network address of sign, then previewing module 605 has been rotated 90 pictures of spending through the network address preview that exists in the buffer memory, and at this moment, picture becomes vertical placement by horizontal placement.
When not existing in the buffer memory when placing the corresponding network address of the number of degrees and sign, then sending module 607 will rotate the number of degrees and sign and send in the server 20 and go.Extraction module 201 in the server 20 extracts picture based on sign; Processing module 203 is handled the picture that extracts based on the rotation number of degrees and is obtained handling the back picture; And the picture after will handling is stored in the server 20, generates network address based on preserving the position, and network address is returned to the user.The preview of the picture that the user has realized rotating in browser through network address.
In above-mentioned image processing method and the system; The processing parameter of uploading pictures is sent in the server; Picture to being stored in the server is handled the back preservation, and the uploading pictures that will not handle is uploaded after handling again, has improved the convenience of image sharing.
In above-mentioned image processing method and the system; To be stored in the server before uploading pictures is handled; At first whether judges carried out same picture processing operation, handled operation if the user once carries out same picture, then directly from buffer memory, extracted to get final product; Avoid repetitive operation, reduced the wasting of resources.
The above embodiment has only expressed several kinds of execution modes of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the present invention's design, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with accompanying claims.
Claims (10)
1. image processing method may further comprise the steps:
Obtain the processing parameter of picture;
Said processing parameter is sent in the server;
According to said processing parameter the picture in the server is handled, and preserved the picture after handling;
Preservation position according to picture generates network address, and returns said network address.
2. image processing method according to claim 1 is characterized in that, said method also comprises:
Obtain the sign of picture;
Judge whether exist in the buffer memory and said processing parameter and the corresponding network address of sign, if, the picture after then handling through said network address preview, if not, the sign and the entering of then sending picture send to the step in the server with said processing parameter.
3. image processing method according to claim 2 is characterized in that, saidly according to said processing parameter the picture in the server is handled, and the step of preserving the picture after handling is:
From server, extract picture according to said sign;
Based on processing parameter the picture that extracts is handled the picture after obtaining handling, and the picture after the said processing is stored in the server.
4. image processing method according to claim 2 is characterized in that, also comprises:
Through the picture after the said network address preview processing;
With the corresponding identification is said network address of indexed cache and processing parameter.
5. image processing method according to claim 1 is characterized in that, said processing parameter is the rotation number of degrees.
6. a picture treatment system is characterized in that, comprises client and server,
Said client comprises:
Acquisition module is used to obtain the processing parameter of picture;
Sending module is used for said processing parameter is sent to server;
Server is used for according to said processing parameter picture being handled, and preserves the picture after handling, and according to the preservation position generation network address of picture, and returns said network address.
7. picture treatment system according to claim 6 is characterized in that said acquisition module also is used to obtain the sign of picture;
Said client also comprises:
Judge module is used for judging whether buffer memory exists and said processing parameter and the corresponding network address of sign, if, then notify previewing module, if not, then notify sending module;
Previewing module is used for through the picture after the said network address preview processing;
Sending module also is used for sending said processing parameter and is identified to server.
8. picture treatment system according to claim 7 is characterized in that, said server comprises:
Extraction module is used for extracting picture based on said sign;
Processing module is used for according to processing parameter the picture that extracts being handled the picture after obtaining handling, and the picture after the said processing is stored in the server, according to the preservation position generation network address of picture, returns said network address.
9. picture treatment system according to claim 7 is characterized in that, said previewing module also is used for through the picture after the said network address preview processing;
Client also comprises:
Memory, being used for the corresponding identification is said network address of indexed cache and processing parameter.
10. image processing method according to claim 6 is characterized in that, said processing parameter is the rotation number of degrees.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110064712.6A CN102685080B (en) | 2011-03-17 | 2011-03-17 | Picture processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110064712.6A CN102685080B (en) | 2011-03-17 | 2011-03-17 | Picture processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102685080A true CN102685080A (en) | 2012-09-19 |
CN102685080B CN102685080B (en) | 2015-05-20 |
Family
ID=46816452
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110064712.6A Active CN102685080B (en) | 2011-03-17 | 2011-03-17 | Picture processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102685080B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199737A (en) * | 2014-08-04 | 2014-12-10 | 百度在线网络技术(北京)有限公司 | Method and device used for synchronizing processed images |
CN104796767A (en) * | 2015-03-31 | 2015-07-22 | 北京奇艺世纪科技有限公司 | Method and system for editing cloud video |
CN106227761A (en) * | 2016-07-13 | 2016-12-14 | 十九楼网络股份有限公司 | The process of dynamic realtime output any specification picture and storage method |
CN106657077A (en) * | 2016-12-27 | 2017-05-10 | 北京汉王数字科技有限公司 | Image processing system and image processing method |
CN106686121A (en) * | 2017-01-20 | 2017-05-17 | 深圳市先河系统技术有限公司 | Image rotation method, terminal, server and display device |
CN107507196A (en) * | 2017-08-18 | 2017-12-22 | 国云科技股份有限公司 | A kind of client uploads and the method for processing picture |
CN107908613A (en) * | 2017-12-21 | 2018-04-13 | 泰康保险集团股份有限公司 | image display method and device |
CN111159441A (en) * | 2019-12-25 | 2020-05-15 | 北大方正集团有限公司 | Picture editing method, picture editing apparatus, and computer-readable storage medium |
CN111984607A (en) * | 2020-08-18 | 2020-11-24 | 中国建设银行股份有限公司 | Distributed picture processing and storing method and device |
CN113393367A (en) * | 2021-07-08 | 2021-09-14 | 北京百度网讯科技有限公司 | Image processing method, apparatus, device and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1981555A (en) * | 2004-06-08 | 2007-06-13 | 德克索实验室 | Method for enhancing services concerning multimedia data in mobile telephony |
CN101217431A (en) * | 2007-12-29 | 2008-07-09 | 腾讯科技(深圳)有限公司 | A method and system of photos in synchronous mobile terminal network TV and network album |
CN101364979A (en) * | 2007-08-10 | 2009-02-11 | 鸿富锦精密工业(深圳)有限公司 | Downloaded material parsing and processing system and method |
CN101557389A (en) * | 2008-04-11 | 2009-10-14 | 北京闻言科技有限公司 | Method for dynamically scaling picture as required in request |
-
2011
- 2011-03-17 CN CN201110064712.6A patent/CN102685080B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1981555A (en) * | 2004-06-08 | 2007-06-13 | 德克索实验室 | Method for enhancing services concerning multimedia data in mobile telephony |
CN101364979A (en) * | 2007-08-10 | 2009-02-11 | 鸿富锦精密工业(深圳)有限公司 | Downloaded material parsing and processing system and method |
CN101217431A (en) * | 2007-12-29 | 2008-07-09 | 腾讯科技(深圳)有限公司 | A method and system of photos in synchronous mobile terminal network TV and network album |
CN101557389A (en) * | 2008-04-11 | 2009-10-14 | 北京闻言科技有限公司 | Method for dynamically scaling picture as required in request |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199737B (en) * | 2014-08-04 | 2018-11-23 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus for synchronizing handled image |
CN104199737A (en) * | 2014-08-04 | 2014-12-10 | 百度在线网络技术(北京)有限公司 | Method and device used for synchronizing processed images |
CN104796767A (en) * | 2015-03-31 | 2015-07-22 | 北京奇艺世纪科技有限公司 | Method and system for editing cloud video |
CN104796767B (en) * | 2015-03-31 | 2019-02-12 | 北京奇艺世纪科技有限公司 | A kind of cloud video editing method and system |
CN106227761A (en) * | 2016-07-13 | 2016-12-14 | 十九楼网络股份有限公司 | The process of dynamic realtime output any specification picture and storage method |
CN106657077B (en) * | 2016-12-27 | 2019-12-10 | 北京汉王数字科技有限公司 | Image processing system and image processing method |
CN106657077A (en) * | 2016-12-27 | 2017-05-10 | 北京汉王数字科技有限公司 | Image processing system and image processing method |
CN106686121A (en) * | 2017-01-20 | 2017-05-17 | 深圳市先河系统技术有限公司 | Image rotation method, terminal, server and display device |
CN107507196A (en) * | 2017-08-18 | 2017-12-22 | 国云科技股份有限公司 | A kind of client uploads and the method for processing picture |
CN107908613A (en) * | 2017-12-21 | 2018-04-13 | 泰康保险集团股份有限公司 | image display method and device |
CN111159441A (en) * | 2019-12-25 | 2020-05-15 | 北大方正集团有限公司 | Picture editing method, picture editing apparatus, and computer-readable storage medium |
CN111159441B (en) * | 2019-12-25 | 2023-07-25 | 新方正控股发展有限责任公司 | Picture editing method, picture editing apparatus, and computer-readable storage medium |
CN111984607A (en) * | 2020-08-18 | 2020-11-24 | 中国建设银行股份有限公司 | Distributed picture processing and storing method and device |
CN113393367A (en) * | 2021-07-08 | 2021-09-14 | 北京百度网讯科技有限公司 | Image processing method, apparatus, device and medium |
CN113393367B (en) * | 2021-07-08 | 2022-06-03 | 北京百度网讯科技有限公司 | Image processing method, apparatus, device and medium |
Also Published As
Publication number | Publication date |
---|---|
CN102685080B (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102685080A (en) | Picture processing method and system | |
CN110096660B (en) | Method and device for loading page pictures and electronic equipment | |
CN102801779B (en) | Interface presentation method, system and terminal | |
CN102710761B (en) | A kind of pdf document on-line storage and access method | |
KR101035302B1 (en) | A cloud system and a method of compressing and transmtting files in a cloud system | |
EP2985705A2 (en) | Webpage access method and apparatus, and router | |
CN109889426B (en) | Information processing method, device and system based on instant messaging | |
CN102436513A (en) | Distributed retrieval method and system | |
WO2016077834A1 (en) | Systems and methods of building and using an image catalog | |
CN103118081B (en) | Server, client, the system and method for browsing pages in prestrain browser | |
CN107770229B (en) | Cloud file sharing method and system and cloud server | |
WO2013030595A1 (en) | Identifying data items | |
TW201508518A (en) | Generating cache query requests | |
KR20190107069A (en) | Method and apparatus for image recognition based on augmented reality | |
CN104462534A (en) | Network information sharing method and device | |
CN105721538A (en) | Data access method and apparatus | |
CN104601534A (en) | Method and system for processing CDN system images | |
CN102521257A (en) | Method and device for providing corresponding on-line picture according to thumbnail | |
CN103581224A (en) | Method and device for pushing information | |
CN104346345A (en) | Data storage method and device | |
US20140157290A1 (en) | Method, system, and device for switching between network applications, and computer storage medium | |
CN106953924B (en) | Processing method of shared information and shared client | |
CN105187562A (en) | System and method for operating remote file | |
US20160315997A1 (en) | File transfer method, device, and system | |
WO2012119339A1 (en) | Retrieval method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |