CN102201123A - Method and device for editing pictures - Google Patents

Method and device for editing pictures Download PDF

Info

Publication number
CN102201123A
CN102201123A CN201010132224XA CN201010132224A CN102201123A CN 102201123 A CN102201123 A CN 102201123A CN 201010132224X A CN201010132224X A CN 201010132224XA CN 201010132224 A CN201010132224 A CN 201010132224A CN 102201123 A CN102201123 A CN 102201123A
Authority
CN
China
Prior art keywords
picture
edited
server
editing
editor
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
CN201010132224XA
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201010132224XA priority Critical patent/CN102201123A/en
Publication of CN102201123A publication Critical patent/CN102201123A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and a device for editing pictures, which are used for solving the problem that pictures on a server cannot be edited automatically in the prior art. According to the method, after downloading pictures to be edited from a server side according to received editing instructions sent by the server side, a picture editor edits the pictures to be edited and uploads the edited pictures to the server side.

Description

Picture editing method and device
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for editing an image.
Background
With the popularization of digital cameras, more and more digital pictures are available, and in order to obtain high-quality pictures, the pictures are often required to be edited, such as cut, rotated, decolored and the like. In the current centralized management picture system, when a picture on a server is edited, the picture to be edited needs to be manually downloaded to a client, then a professional picture processing tool such as a photoshop software is started to process the picture to be edited, and after the processing is completed, the edited picture is manually uploaded to the server.
Therefore, in order to edit the pictures on the server, the client must install a third-party professional picture processing tool, so that the pictures to be edited are loaded into the third-party professional picture processing tool for editing after the pictures to be edited are manually downloaded, and are manually uploaded after the pictures are edited, so that the pictures on the server cannot be automatically edited, the editing process is complicated, and the efficiency is extremely low.
Disclosure of Invention
The embodiment of the invention provides a method and a device for editing pictures, which are used for solving the problem that the pictures on a server cannot be automatically edited in the prior art.
The embodiment of the invention provides a picture processing method, which comprises the following steps:
the picture editor downloads a picture to be edited from the server side according to the received editing instruction;
and the picture editor edits the picture to be edited and uploads the edited picture to the server side.
An embodiment of the present invention provides a picture editor, including:
a receiving unit for receiving an editing instruction;
the downloading unit is used for downloading the picture to be edited from the server side according to the received editing instruction;
the editing unit is used for editing the picture to be edited;
and the uploading unit is used for uploading the edited picture to the server side.
The embodiment of the invention provides a client for processing pictures, which comprises:
the determining unit is used for determining the editing instruction corresponding to the editing control according to the corresponding relation between the saved control and the instruction when the editing control is triggered by a user;
and the sending unit is used for sending the editing instruction to the picture editor.
The picture editor provided by the embodiment of the invention can edit the picture to be edited after the picture to be edited is downloaded from the server side according to the received editing instruction, and upload the edited picture to the server side. Thus, the picture editor can automatically edit the picture on the server.
Drawings
FIG. 1 is a flowchart illustrating a method for processing a picture according to an embodiment of the present invention;
FIG. 2 is a diagram of a picture processing system architecture in accordance with an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a picture processing method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a picture editor in accordance with an embodiment of the present invention;
fig. 5 is a block diagram of a picture processing client according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a picture editor, which can directly edit a picture to be edited downloaded from a server side and automatically upload the edited picture to the server, so that the picture on the server side can be automatically edited.
The server needs to add the corresponding relation between the editing control and the editing instruction in the stored corresponding relation between the control and the editing instruction, so that the client can download and install the editing control from the server, and in an initial state, the client also needs to download the corresponding relation between the control and the editing instruction from the server, so that after the client installs the picture editor, the client can directly edit the picture to be edited downloaded from the server, and automatically upload the edited picture to the server. Referring to fig. 1, the process of editing the picture on the server by the picture editor on the client includes:
step 101: the picture editor receives an editing instruction.
The user browses the pictures on the server through the WEB browser on the client, and when the pictures need to be edited, the editing control on the client is triggered, so that the client determines that the received editing instructions are received according to the corresponding relation between the saved controls and the instructions, and sends the editing instructions to the picture editor. In the embodiment of the invention, the client automatically opens the picture editor according to the editing instruction.
Step 102: and the picture editor downloads the picture to be edited from the server side.
In the embodiment of the invention, the picture editor has a downloading function. When the server side includes: when the intermediate server, the database server and the file server are used, the process that the picture editor downloads the picture to be edited from the server side comprises the following steps:
in the embodiment of the invention, the picture editor supports two transmission protocols, namely, a http Protocol (Hypertext Transfer Protocol) and an ftp Protocol (File Transfer Protocol).
The picture editor sends a request for downloading a picture to be edited to an intermediate server by adopting an http protocol or an ftp protocol, the intermediate server inquires the position of the picture to be edited in a file server from a database server according to the request, the intermediate server obtains the picture to be edited according to the searched position and copies the picture to be edited to the local, and finally, the picture editor downloads the picture to be edited from the intermediate server by adopting the http protocol or the ftp protocol to obtain the picture to be edited.
Here, the picture editor downloads the picture to be edited from the intermediate server, stores the picture in the temporary path of the client, and automatically loads the picture into the window of the picture editor by the picture editor.
Step 103: and the picture editor edits the downloaded picture to be edited.
In the embodiment of the invention, the picture editor also has the editing functions of enlarging, reducing, partially enlarging, rotating, mirroring, cutting, converting grey and the like, and the picture editor can obtain a high-quality picture by performing the operations of enlarging, reducing, partially enlarging, rotating, mirroring, cutting and/or converting grey on the picture to be edited. The format of the picture that can be edited by the picture editor includes: and multiple professional picture formats such as jpg, bmp, tif, jpeg, jfif, ico, gif and png.
Step 104: and the picture editor uploads the edited picture to the server side.
The picture editor still has the upload function simultaneously, includes when the server side: during intermediate server, database server, file server, the process that picture editor uploaded the picture after the editor to the server side includes:
and the picture editor submits the edited picture to an intermediate server by adopting an http protocol or an ftp protocol, and the intermediate server inquires the position of the edited picture in a file server from a database server and then stores the edited picture in the inquired position in the file server.
In the embodiment of the invention, in the initial state, the client needs to install the editing control and needs to store the corresponding relation between the control and the instruction. Here, the server adds the corresponding relationship between the edit control and the edit instruction in the stored corresponding relationship between the control and the instruction, and the client can download the edit control from the server through the WEB browser and install the edit control, and also download the corresponding relationship between the add control and the instruction from the server through the WEB browser.
In the above embodiments, the picture editor may support automatic downloading and uploading of large picture files. And in the uploading and downloading processes, breakpoint continuous transmission is supported.
Of course, the picture editor may edit a picture after downloading the picture, or may edit the picture after downloading a plurality of pictures. The pictures downloaded by the picture editor are all stored in the temporary path of the client, and then the pictures are automatically loaded into a window of the picture editor by the picture editor for editing.
During step 104, the picture editor may also open third party professional picture editing software, such as: and the photoshop is used for editing the picture more complexly and automatically submitting the edited picture to the server side.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
Embodiment 1, referring to fig. 2, the system for processing pictures in this embodiment includes: the picture editor 100 of the WEB side, the intermediate server 200, the database server 300 and the file server 400, wherein the picture editor 100 of the WEB side is on the client side, and the intermediate server 200, the database server 300 and the file server 400 constitute the server side, so that the picture editor 100 of the WEB side is linked with the intermediate server 200, and the database server 300 and the file server 400 are also linked with the intermediate server 200 respectively.
In the initial state, the corresponding relation between the editing control and the editing instruction is added in the corresponding relation between the control and the instruction stored in the intermediate server, the client downloads and installs the editing control from the intermediate server, and meanwhile, the corresponding relation between the control and the instruction is downloaded from the intermediate server; and, install the picture editor of WEB end with downloading, editor, and uploading function on the client.
Referring to fig. 3, the process of the initialized client automatically editing the picture on the server by using the WEB picture editor includes:
step 301: and browsing the pictures on the server side by the user through a WEB browser.
Step 302: the user triggers the edit control installed by the client.
When it is determined that the picture on the server needs to be edited, the user may trigger an editing control installed on the client.
Step 303: and the client sends an editing instruction and opens the WEB picture editor.
And the client determines an editing instruction corresponding to the editing control according to the stored corresponding relation between the control and the instruction, so that the editing instruction is sent, the WEB picture editor is opened, and the WEB picture editor receives the editing instruction.
Step 304: and the WEB picture editor sends a request for downloading the picture to be edited to the intermediate server.
And the WEB picture editor sends a request for downloading the picture to be edited to the intermediate server by adopting an http protocol or an ftp protocol.
Step 305: and the intermediate server inquires the position of the picture to be edited in the file server from the database server according to the received request.
Step 306: the intermediate server obtains the picture to be edited from the position searched by the file server, and copies the picture to be edited to the local storage unit, namely the intermediate server locally stores the picture to be edited.
Step 307: and the WEB picture editor acquires the picture to be edited from a storage unit of the intermediate server by adopting an http protocol or an ftp protocol, stores the picture in a temporary path of the client and is automatically loaded into the editing window by the WEB picture editor.
Step 308: and the WEB picture editor edits the picture in the editing window to obtain the edited picture.
And the WEB picture editor performs operations of enlarging, reducing, partially enlarging, rotating, mirroring, cutting and/or turning grey on the picture in the editing window so as to obtain the edited picture.
Step 309: and the WEB picture editor uploads the edited picture to an intermediate server by adopting an http protocol or an ftp protocol.
Step 310: and the intermediate server inquires the position of the edited picture in the file server from the database server.
Step 311: and the intermediate server stores the edited picture to the position inquired in the file server.
According to the above method for processing pictures, a picture editor can be constructed, referring to fig. 4, including: a receiving unit 410, a downloading unit 420, an editing unit 430 and an uploading unit 440. Wherein,
the receiving unit 410 is configured to receive an editing instruction.
The downloading unit 420 is configured to download the picture to be edited from the server according to the received editing instruction issued by the server.
And an editing unit 430, configured to edit the downloaded picture to be edited.
And an uploading unit 440, configured to upload the edited picture to the server.
In this embodiment of the present invention, the downloading unit 420 includes: a requesting subunit and an obtaining subunit.
And the request subunit is used for sending a request for downloading the picture to be edited to the intermediate server by adopting an http protocol or an ftp protocol according to the received editing instruction. Therefore, the intermediate server inquires the position of the picture to be edited in the file server from the database server according to the request, and copies the picture to be edited to the local according to the found position.
And the obtaining subunit is used for downloading and obtaining the picture to be edited from the intermediate server by adopting an http protocol or an ftp protocol.
The editing unit 430 may perform one or more operations of enlarging, reducing, partially enlarging, rotating, mirroring, cropping, graying, and the like on a picture to be edited.
The uploading unit 440 is further configured to submit the edited picture to the intermediate server by using an http protocol or an ftp protocol. In this way, the intermediate server queries the position of the edited picture in the file server from the database server, and stores the edited picture in the queried position in the file server.
The picture editor in the embodiment of the present invention may include, but is not limited to, the above WEB picture editor.
Of course, an embodiment of the present invention further provides a client for processing an image, which is shown in fig. 5 and includes: a determining unit 510 and a transmitting unit 520. Wherein,
the determining unit 510 is configured to determine, when the editing control is triggered by a user, an editing instruction corresponding to the editing control according to a correspondence between a stored control and an instruction.
A sending unit 520, configured to send the editing instruction to the picture editor.
Of course, in the embodiment of the present invention, the client further includes: and the downloading unit is used for downloading the corresponding relation between the control and the instruction from the server side.
In the embodiment of the invention, the server terminal needs to add the corresponding relation between the editing control and the editing instruction in the stored corresponding relation between the control and the instruction, and the client terminal needs to download the editing control and the corresponding relation between the control and the instruction from the server terminal, so that the picture editor can directly edit the picture to be edited downloaded from the server terminal and automatically upload the edited picture to the server terminal after the client terminal is provided with the editing control and the picture editor.
In summary, in the embodiment of the present invention, the picture editor downloads the picture to be edited from the server according to the received editing instruction, edits the picture to be edited, and uploads the edited picture to the server. Therefore, the picture editor can automatically edit the picture of the server side, the picture is not required to be downloaded independently, and the picture is not required to be edited manually by professional picture processing work, so that the occupation of system resources is reduced, the picture of the server side is edited simply, and the efficiency is improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is intended to include such modifications and variations.

Claims (12)

1. A method for picture processing, comprising:
the picture editor downloads a picture to be edited from the server side according to the received editing instruction;
and the picture editor edits the picture to be edited and uploads the edited picture to the server side.
2. The method of claim 1, wherein the picture editor downloads the picture to be edited from the server according to the received editing instruction, and comprises:
after an editing control on a client is triggered by a user, the client determines an editing instruction corresponding to the editing control according to the corresponding relation between the saved control and the instruction;
and the client sends the editing instruction to a picture editor.
3. The method of claim 2, wherein the client saving a correspondence of a control to an instruction comprises:
and the client downloads the corresponding relation between the control and the instruction from the server.
4. The method of claim 1, wherein the downloading the picture to be edited from the server side comprises:
the picture editor sends a request for downloading a picture to be edited to an intermediate server by adopting an http protocol or an ftp protocol according to a received editing instruction;
the intermediate server inquires the position of the picture to be edited in the file server from the database server according to the request, and copies the picture to be edited to the local according to the found position;
and the picture editor downloads the picture to be edited from the intermediate server by adopting an http protocol or an ftp protocol to obtain the picture to be edited.
5. The method of claim 1, wherein the picture editor editing the picture to be edited comprises:
and the picture editor carries out operations of enlarging, reducing, partially enlarging, rotating, mirroring, cutting and/or turning grey on the picture to be edited.
6. The method of claim 1, wherein uploading the edited picture to the server comprises:
the picture editor submits the edited picture to an intermediate server by adopting an http protocol or an ftp protocol;
and after the intermediate server inquires the position of the edited picture in the file server from the database server, storing the edited picture in the inquired position in the file server.
7. A picture editor, comprising:
a receiving unit for receiving an editing instruction;
the downloading unit is used for downloading the picture to be edited from the server side according to the received editing instruction;
the editing unit is used for editing the picture to be edited;
and the uploading unit is used for uploading the edited picture to the server side.
8. The picture editor of claim 7, wherein the download unit comprises:
the request subunit is used for sending a request for downloading the picture to be edited to the intermediate server by adopting an http protocol or an ftp protocol according to the received editing instruction;
and the obtaining subunit is used for downloading and obtaining the picture to be edited from the intermediate server by adopting an http protocol or an ftp protocol.
9. The picture editor of claim 7,
the editing unit is further used for carrying out operations of enlarging, reducing, partially enlarging, rotating, mirroring, cutting and/or transferring grey on the picture to be edited.
10. The picture editor of claim 7,
the uploading unit is further used for submitting the edited picture to an intermediate server by adopting an http protocol or an ftp protocol.
11. A client for picture processing, comprising:
the determining unit is used for determining the editing instruction corresponding to the editing control according to the corresponding relation between the saved control and the instruction when the editing control is triggered by a user;
and the sending unit is used for sending the editing instruction to the picture editor.
12. The client of claim 11, further comprising:
and the downloading unit is used for downloading the corresponding relation between the control and the instruction from the server side.
CN201010132224XA 2010-03-24 2010-03-24 Method and device for editing pictures Pending CN102201123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010132224XA CN102201123A (en) 2010-03-24 2010-03-24 Method and device for editing pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010132224XA CN102201123A (en) 2010-03-24 2010-03-24 Method and device for editing pictures

Publications (1)

Publication Number Publication Date
CN102201123A true CN102201123A (en) 2011-09-28

Family

ID=44661773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010132224XA Pending CN102201123A (en) 2010-03-24 2010-03-24 Method and device for editing pictures

Country Status (1)

Country Link
CN (1) CN102201123A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179302A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Picture processing method and system in open platform
CN103714061A (en) * 2012-09-28 2014-04-09 腾讯科技(深圳)有限公司 Method and device for storing webpage images
CN103929446A (en) * 2013-01-11 2014-07-16 北大方正集团有限公司 Method, system and device for operating multimedia files
CN105100230A (en) * 2015-07-09 2015-11-25 无锡天脉聚源传媒科技有限公司 File transmission method and device
CN105677325A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Mobile terminal and image processing method
CN106649510A (en) * 2016-10-12 2017-05-10 珠海市魅族科技有限公司 Method for editing cloud photo album and mobile terminal
CN107909634A (en) * 2017-11-30 2018-04-13 努比亚技术有限公司 Image display method, mobile terminal and computer-readable recording medium
CN110704785A (en) * 2019-10-11 2020-01-17 胥万福 Data processing method for rapidly opening pictures in webpage through Photoshop

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1680973A (en) * 2004-04-08 2005-10-12 佳能株式会社 Optical symbols indentifying system and method based on use for network service
CN1855899A (en) * 2005-04-29 2006-11-01 现代奥途纳特株式会社 Interlock system between home network and remote information processing system and control method thereof
WO2008077232A1 (en) * 2006-12-27 2008-07-03 Axon Medical Technologies Corp. Cooperative grid based picture archiving and communication system
CN101472140A (en) * 2007-12-28 2009-07-01 上海高翔广告传播有限公司 System for distributing and requiring multimedia program and implementing method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1680973A (en) * 2004-04-08 2005-10-12 佳能株式会社 Optical symbols indentifying system and method based on use for network service
CN1855899A (en) * 2005-04-29 2006-11-01 现代奥途纳特株式会社 Interlock system between home network and remote information processing system and control method thereof
WO2008077232A1 (en) * 2006-12-27 2008-07-03 Axon Medical Technologies Corp. Cooperative grid based picture archiving and communication system
CN101472140A (en) * 2007-12-28 2009-07-01 上海高翔广告传播有限公司 System for distributing and requiring multimedia program and implementing method thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179302A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Picture processing method and system in open platform
CN103179302B (en) * 2011-12-22 2017-10-10 腾讯科技(深圳)有限公司 Image processing method and system in open platform
CN103714061A (en) * 2012-09-28 2014-04-09 腾讯科技(深圳)有限公司 Method and device for storing webpage images
CN103929446A (en) * 2013-01-11 2014-07-16 北大方正集团有限公司 Method, system and device for operating multimedia files
CN103929446B (en) * 2013-01-11 2017-02-22 北大方正集团有限公司 Method, system and device for operating multimedia files
CN105100230A (en) * 2015-07-09 2015-11-25 无锡天脉聚源传媒科技有限公司 File transmission method and device
CN105677325A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Mobile terminal and image processing method
CN106649510A (en) * 2016-10-12 2017-05-10 珠海市魅族科技有限公司 Method for editing cloud photo album and mobile terminal
CN107909634A (en) * 2017-11-30 2018-04-13 努比亚技术有限公司 Image display method, mobile terminal and computer-readable recording medium
CN110704785A (en) * 2019-10-11 2020-01-17 胥万福 Data processing method for rapidly opening pictures in webpage through Photoshop

Similar Documents

Publication Publication Date Title
CN102201123A (en) Method and device for editing pictures
CN101395838B (en) Data synchronization method, system and apparatus
US7724281B2 (en) Device facilitating efficient transfer of digital content from media capture device
JP2008136190A (en) Method and system for phased retrieval of data
CN100543728C (en) Use the browser file upload
CN107220035B (en) Interface theme updating system and method, client, instrument terminal and server
JP2002526864A (en) System and method for updating a remote database in a network
JP3945985B2 (en) Digital camera device
CN105227610A (en) File uploading and storing method and device
US20040117461A1 (en) Download system and downloading device
CN103559056A (en) File downloading method and device
EP2615563A1 (en) Device for synchronously sharing files and method for synchronously sharing files
WO2015085416A1 (en) System and method for creating and transferring media files
ATE435463T1 (en) ADVANCED FILE SYSTEM
KR100713412B1 (en) Method for searching service by using mobile communication terminal and the mobile communication terminal and server therefor
US20220283678A1 (en) Generating a customized organizational structure for uploading content to a cloud-based storage system
CN105208238A (en) Processing Apparatus, Display System, Display Method, And Computer Program
US6961144B2 (en) Image data transmission device and method, computer-readable storage medium storing program for transmitting image data, and image data transmission and reception system and method
JP2004513361A5 (en)
JP4591096B2 (en) Image file transfer apparatus, image file transfer program, and image reading apparatus
CN110740154A (en) streaming media service upgrading method, device and equipment
JP2011086063A (en) Image providing server apparatus, control method therefor, and program
JP2011087072A (en) Image providing server device, control method thereof, and program
JP2004096580A (en) Data management device
US7937441B2 (en) Data-control device and method of controlling same

Legal Events

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

Application publication date: 20110928