WO2015024390A1 - Image management method, apparatus, and terminal device - Google Patents

Image management method, apparatus, and terminal device Download PDF

Info

Publication number
WO2015024390A1
WO2015024390A1 PCT/CN2014/076106 CN2014076106W WO2015024390A1 WO 2015024390 A1 WO2015024390 A1 WO 2015024390A1 CN 2014076106 W CN2014076106 W CN 2014076106W WO 2015024390 A1 WO2015024390 A1 WO 2015024390A1
Authority
WO
WIPO (PCT)
Prior art keywords
album
picture
cloud
local
thumbnail
Prior art date
Application number
PCT/CN2014/076106
Other languages
French (fr)
Chinese (zh)
Inventor
李棽
郭涛
金凡
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Publication of WO2015024390A1 publication Critical patent/WO2015024390A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor

Definitions

  • the present disclosure relates to the field of terminal equipment technologies, and in particular, to a method, an apparatus, and a terminal device for picture management. Background technique
  • the terminal device When the user browses the local album, the terminal device displays the original image saved locally, and when the user browses the cloud album, the terminal device can have the following two display modes: (1) If the terminal device caches the cloud album The thumbnail corresponding to the original image, when the user browses the cloud album, can display the cached thumbnail; (2) If the terminal device does not cache the cloud album, the user needs to download the cloud album through the network every time the cloud album is browsed. Original Image.
  • the local album stores the original image, which occupies a large amount of storage space of the terminal device, and the cache in the (1) mode also occupies a part of the storage space of the terminal device, causing serious waste of the storage space.
  • the cloud album is required to download the original image every time browsing, which consumes user traffic and wastes storage space, and the browsing speed is also greatly slowed down.
  • an embodiment of the present disclosure provides a method, an apparatus, and a terminal device for picture management.
  • the technical solution is as follows:
  • a method for picture management comprising:
  • the original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album.
  • an apparatus for managing a picture comprising:
  • a scanning module configured to scan a local album corresponding to the cloud album when detecting that the login status of the cloud album is logged in;
  • a terminal device configured to save the original image in the cloud album according to the result of the scanning, and save the thumbnail of the original image in the local album.
  • a terminal device comprising: one or more processors; a memory; and one or more modules, the one or more modules being stored in the memory and Configuring to be executed by the one or more processors, the one or more modules having the following functions: detecting that the login status of the cloud album indicates that the local album corresponding to the cloud album is scanned when the login status is logged in; according to the result of the scanning, The original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album.
  • the local storage space is greatly saved; and the thumbnail corresponding to the original image in the cloud album can be browsed through the local album, and the cloud album is not needed in real time.
  • the original picture in the picture saves user traffic and the browsing speed is also greatly improved.
  • FIG. 1 is a flowchart of a method for picture management according to an exemplary embodiment
  • FIG. 2 is a flowchart of a method for picture management according to an exemplary embodiment
  • FIG. 3 is a schematic diagram of a display interface according to an exemplary embodiment
  • FIG. 4 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment
  • FIG. 5 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment
  • FIG. 6 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment
  • FIG. 7 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment
  • FIG. 8 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment
  • FIG. 9 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment.
  • FIG. 10 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment
  • FIG. 11 is a schematic structural diagram of a terminal device according to an exemplary embodiment.
  • Cloud photo album refers to the album in the cloud corresponding to the terminal device.
  • the cloud photo album is based on the cloud technology and is used to store images uploaded by the terminal device or stored by the user in the cloud.
  • FIG. 1 is a flowchart of a method of picture management according to an exemplary embodiment.
  • the execution body of this embodiment is a terminal device. Referring to FIG. 1, the method includes:
  • the method provided by the embodiment of the present disclosure saves the local storage space by saving the original picture in the local album in the cloud album and saving the thumbnail of the original picture in the local album; and browsing the cloud album through the local album
  • the thumbnail corresponding to the original image does not need to obtain the original image in the cloud album in real time, saving user traffic and greatly improving the browsing speed.
  • scanning the local album corresponding to the cloud album includes: obtaining the picture information of the cloud album when the login status of the cloud album is detected to be logged in;
  • the original picture is saved in the cloud album
  • the thumbnail of the original picture is saved in the local album, including:
  • the comparison result it is determined whether there is a first picture in the local album, and the first picture is an original picture that is not currently saved by the cloud album;
  • the original picture is saved in the cloud album
  • the thumbnail of the original picture is saved in the local album, including:
  • the original picture is saved in the cloud album
  • the thumbnail of the original picture is saved in the local album, including:
  • the comparison result it is determined whether there is a third picture in the cloud album, and the third picture is an original picture that is not currently saved by the local album;
  • the thumbnail of the third picture is obtained from the cloud album and saved.
  • scanning the local album corresponding to the cloud album includes: when detecting that the local album has a newly added original image, and detecting that the login status of the cloud album indicates that the login is logged in , Scan the local album corresponding to the cloud album.
  • the method further includes:
  • the original image and/or thumbnail currently saved in the local album is displayed in the local album.
  • displaying the currently saved thumbnails in the local album in a local album including:
  • the currently saved thumbnails in the local album are displayed, and the cloud album logo is displayed in the preset area of the thumbnail, and the cloud album identifier is used to indicate that the original image corresponding to the thumbnail has been saved in the cloud album.
  • the method further includes:
  • the method further includes:
  • FIG. 2 is a flow chart of a method of picture management, according to an exemplary embodiment.
  • the execution body of this embodiment is a terminal device. Referring to FIG. 2, the method includes:
  • the step 201 when the trigger event of the local album is detected, the original photo and/or the thumbnail are displayed in the local album, and the information of the local album and the cloud album are unified on the display interface of the local album for display, which is convenient for the user to browse. .
  • the above display includes the following three situations:
  • the process of saving the original picture in the cloud album and saving the thumbnail of the original picture in the local album has been performed, and after the process is completed, a new original picture is added to the local album.
  • the local album includes both the original picture and the thumbnail, so when the trigger event of starting the local album is detected, the original picture and the thumbnail are displayed in the local album;
  • the original picture corresponding to the thumbnails saved in the local album is saved in the cloud album corresponding to the terminal device.
  • the page display can be performed according to the number of pictures that can be displayed on each page.
  • the specific manner of the display is not limited in the embodiment of the present disclosure.
  • the number of the pictures that can be displayed on each page can be set by the technicians during the development, and can also be set or adjusted by the user during the use, which is not limited by the embodiment of the disclosure.
  • the cloud album identifier may be displayed in the display area of the thumbnail.
  • the cloud album identifier is used to indicate that the original image corresponding to the thumbnail has been saved in the cloud album.
  • the local logo can also be displayed in the display area of the original picture.
  • the display position of the cloud album identifier or the local identifier in the corresponding display area of the picture is not specifically limited.
  • the cloud album logo or local logo By displaying the cloud album logo or local logo, the user can clearly know which images are thumbnails corresponding to the original images that have been saved in the cloud album, and which images are still saved in the local album but not uploaded to the original album of the cloud album.
  • the cloud album identifier or the local identifier may not be displayed in the display area of the image, which is not limited by the embodiment of the disclosure.
  • the display of the cloud album identifier in the display area of the thumbnail may be set by the technician at the time of development, or may be set or adjusted by the user during use, which is not specifically limited in the embodiment of the present disclosure.
  • the specific form of the cloud album identifier may be a text identifier, a graphic identifier, or the like, such as a "cloud" or a bar identifier in the display area, which is not specifically limited in the embodiment of the present disclosure.
  • the embodiment of the present disclosure does not limit whether to display the local identifier, the shape of the local identifier, and the location where the local identifier is displayed in the original image display area.
  • the user setting whether to display the cloud album identifier and whether to display the local identifier may be implemented by corresponding function options in the operation list provided by the local album, such as the function option may include displaying the cloud album identifier, deleting the cloud album identifier, and displaying the local identifier.
  • the function option may include displaying the cloud album identifier, deleting the cloud album identifier, and displaying the local identifier. The embodiment of the present disclosure does not limit this.
  • the display interface is illustrated by taking 21 pictures per page as an example.
  • the strip pattern in the upper right corner of the display area of the picture 1 is the cloud album identifier
  • the circular pattern in the lower left corner of the picture 6 display area is the local logo
  • the operation list provided by the local album appears in the lower left corner of the entire display page.
  • the area is described as an example. Only some of the function options that may be included in the operation list are listed in the figure.
  • step 201 is an optional step, and in another implementation manner provided by the embodiment of the present disclosure, the terminal device provides a local album entry and a cloud album login entry respectively, and if the user does not currently open the local album, only the login In the cloud album, step 202 can also be directly executed.
  • the picture information of the cloud album is obtained from the cloud, so that the picture information of the cloud album and the local album is compared according to the picture information of the obtained cloud album and the picture information of the local album obtained by scanning the local album.
  • Step 202 may include: when detecting that the login status indication of the cloud album is logged in, the terminal device logs in to the cloud server according to the account of the terminal device, and obtains the picture information of the cloud album corresponding to the local album from the cloud server; according to the acquired cloud album The picture information and the picture information of the local album, compare the picture information of the cloud album and the picture information of the local album.
  • comparing the picture information of the cloud album with the picture information of the local album may result in the following three comparisons.
  • the picture information of the local album includes the picture information not included in the picture information of the cloud album;
  • the picture information of the cloud album includes the picture information already existing in the picture information of the local album;
  • cloud album The picture information includes picture information that is not included in the picture information of the local album.
  • the picture information includes a picture name, a picture summary information, a picture size, and the like, and the picture information is only some information that can be determined according to the picture for comparing the pictures, and does not include the picture itself.
  • the image summary information is generated according to the image itself and a file verification algorithm (for example, SHA (Secure Hash Algorithm); MD5 (Message Digest Algorithm 5). Eigenvalue or string.
  • the process of scanning the local album and the process of comparing the picture information of the cloud album with the picture information of the local album may be either of the following two ways: (1) sequentially, for example, when acquiring the cloud album After the picture information and the picture information of the local album, the picture information of the cloud album and the picture information of the local album are compared; (2) juxtaposed, for example, in the process of scanning the local album, each scanned one original picture is generated, and Recording the picture information of the original picture, and determining, according to the picture information and the picture information of the cloud photo album, whether the picture information of the original picture includes the picture information of the original picture, and recording the original picture included in the picture information of the cloud photo album
  • the picture information of the cloud album is searched for whether there is any picture information that is not in the record; the embodiment of the disclosure does not limit this.
  • an option of whether to perform the cloud album login may be displayed.
  • the cloud album registration is performed, so that the cloud album is found by detecting The login status avoids the traffic consumption caused by being logged in at any time.
  • the step 202 is performed.
  • step 204 If yes, go to step 204;
  • the step 203 may include: determining, according to the result of the scanning, that the picture information that is not included in the picture information of the cloud album includes the first picture in the local photo album; and the cloud photo album is not included in the picture information of the local photo album.
  • the picture information that is not in the picture information determines that the first picture does not exist in the local album.
  • the original picture in any local album can be saved in the cloud album by the user.
  • the picture information of the obtained cloud album includes the picture information of b: picture name b+ picture summary information SHA-b, and picture information of c: picture name c+ picture summary information SHA-c.
  • the picture information of the local album includes the picture information of a: picture name a+ picture summary information SHA-a, and picture information of c: picture name c+ picture summary information SHA-c.
  • the cloud photo album and the local photo album have the same picture c, and the cloud photo album does not include a
  • the picture information, at this time, the picture a in the local album is determined as the first picture.
  • the original picture in the local album is saved in the cloud album backup.
  • the first picture in the local album has been saved in the cloud album, and the first picture in the local album can be replaced with the thumbnail of the first picture, and part of the storage space of the terminal device is recovered.
  • the step 205 may include: after saving the original picture in the local album to the cloud album backup, generating and saving the thumbnail corresponding to the original picture to the local album, and deleting the original picture from the local album.
  • the step 205 may include: after saving the original picture in the local album to the cloud album backup, acquiring the thumbnail corresponding to the original picture from the cloud album to the local album, and deleting the original picture from the local album.
  • the above steps 203-205 are the processing of the first picture, that is, the processing of the original picture that is not saved in the cloud album saved in the local album.
  • the original pictures in the original local album are saved in the cloud album, and only the thumbnail corresponding to the original picture in the cloud album is saved in the current local album.
  • step 207 If yes, go to step 207;
  • the step 206 may include: determining, according to the result of the scanning, that the picture information of the cloud album includes the picture information existing in the picture information of the local album, determining that the second picture exists in the cloud album; and the picture information of the cloud album does not include the local There is already picture information in the picture information of the album, and it is determined that the second picture does not exist in the cloud photo album.
  • the picture information of the obtained cloud album includes the picture information of b: picture name b+ picture summary information SHA-b, and picture information of c: picture name c+ picture summary information SHA-c.
  • the picture information of the local album includes the picture information of a: picture name a+ picture summary information SHA-a, and picture information of c: picture name c+ picture summary information SHA-c.
  • the cloud album includes the picture information of b and the picture information of c
  • the local album includes the same picture information of c, and does not include the picture information of b, at this time, the picture in the local album is c is determined to be the second picture.
  • the second picture in the local album is replaced with the thumbnail of the second picture.
  • step 205 The process of replacing the second picture in the local phase with the thumbnail of the second picture is the same as step 205, and details are not described herein again.
  • steps 206-207 are the processing of the second picture, that is, the processing of the original picture saved in the cloud album and the local album at the same time.
  • the original image saved in the local album with the cloud album is repeated in steps 206-207.
  • the slice is replaced with the thumbnail image corresponding to the original picture, and part of the storage space of the terminal device is recovered.
  • the step 208 may include: according to the result of the scanning, when the picture information of the cloud album includes the picture information that is not included in the picture information of the local album, determining that the third picture exists in the cloud album; when the picture information of the cloud album does not include the local album The picture information is not in the picture information, and the third picture does not exist in the cloud photo album.
  • the picture information of the obtained cloud album has the picture information of b: picture name b+ picture summary information SHA-b, and c picture information: picture name c+ picture summary information SHA-c.
  • the picture information of the local album includes the picture information of a: picture name a+ picture summary information SHA-a, and picture information of c: picture name c+ picture summary information SHA-c.
  • the cloud album includes the picture information of b and the picture information of c, and the local picture does not include the picture information of b, but includes the picture information of the same c, then at this time, the picture in the local album is b is determined to be the third picture.
  • the thumbnail of the original image needs to be saved in the local album for the user to view.
  • steps 208-209 are the processing of the third picture, that is, the processing of the original picture included in the cloud album but not included in the local album.
  • the local album saves thumbnails of all the original images in the cloud album.
  • the above steps 202-209 are a process of synchronizing local albums and cloud albums at one time.
  • the local album and cloud album are synchronized, all current original images are saved in the cloud album, and only the thumbnails are saved in the current local album.
  • the terminal device caches the thumbnail corresponding to the original image in the cloud album, when browsing the cloud album, the cached thumbnail image can be displayed, and the 500 original images in the local album occupy the terminal device by about 1.25G.
  • the storage space, the thumbnail corresponding to the 1000 original pictures in the cloud album occupies about 250M of storage space of the terminal device, and occupies about 1.5G of storage space of the terminal device.
  • the terminal device does not cache the cloud photo album, each time the user browses the cloud photo album, the original image is downloaded through the network to the cloud photo album.
  • the 500 original pictures in the local photo album occupy about 1.25G of the storage space of the terminal device, total It takes up about 1.25G of storage space on the terminal device, but browsing the cloud album requires real-time downloading of the original image in the cloud album, which consumes a lot of traffic and time.
  • 500 original pictures in the local album are saved.
  • the cloud album only the thumbnails corresponding to the 500 original images are saved in the local album, occupying about 125M of storage space of the terminal device, and the thumbnails corresponding to the original 1000 original images in the cloud album are saved in the local album, occupying the terminal
  • the storage space of the device is about 250M, which occupies about 375M of storage space of the terminal device.
  • the technical solution of the embodiment of the present disclosure occupies less storage space, and when browsing the cloud photo album, only browsing the thumbnails in the local photo album does not require a good flow of traffic. Time to download the original image in the cloud album.
  • the foregoing three types of determining and processing are in a side-by-side relationship, and the foregoing determining and processing the first picture (steps 203-205), determining and processing the second picture (step 206-) 207) and the process of determining and processing the third picture (steps 208-209) may also be a sequential relationship.
  • the foregoing determining and processing the first picture (steps 203-205), determining and processing the second picture (step 206-) 207) and the process of determining and processing the third picture (steps 208-209) may also be a sequential relationship.
  • the synchronization process only one of the judgment and processing procedures may be included, or two or three kinds of judgment and processing procedures may be included in the embodiment, and the embodiment of the present disclosure does not limit this.
  • the three judgment processes in the above steps can be obtained by comparing the picture information of the cloud album with the picture information of the local album.
  • By comparing the picture information of the cloud album and the picture information of the local album it is known whether the cloud album exists. Whether there is a third picture in the second picture and the cloud album.
  • the method when it is required to delete a picture in the local album, the method further includes the following steps: when receiving a deletion instruction for any picture in the local album and corresponding to the deletion instruction
  • the picture is a thumbnail
  • the thumbnail indicated by the delete instruction and the original picture corresponding to the thumbnail saved in the cloud album are deleted.
  • a deletion instruction is sent to the cloud server where the cloud album is located, and the cloud server deletes the original image in the cloud album corresponding to the thumbnail according to the deletion instruction.
  • the deletion instruction carries the picture information of the thumbnail to be deleted, and the original picture to be deleted corresponding to the thumbnail in the cloud photo album can be determined according to the picture information of the thumbnail to be deleted.
  • the method when it is required to delete a picture in a local album, the method further includes the following steps: when receiving a deletion instruction for the original picture in the local album, from the local album The original picture corresponding to the deletion instruction is deleted; when the deletion instruction for the thumbnail in the local album is received, only the thumbnail in the local album is deleted, and the original picture corresponding to the thumbnail in the cloud album is retained.
  • the terminal device may provide a function option for deleting a picture for the user to select, when the user needs to delete only the thumbnail in the local album, or when the user needs to delete the local thumbnail and the cloud at the same time.
  • the original image in the album can be set by clicking the corresponding function option, which is not limited by the embodiment of the present disclosure.
  • the fourth picture saved by the local album is deleted; the fourth picture is an original picture or a thumbnail whose browsing times are less than a preset threshold.
  • the preset threshold and the time period for counting the number of times of browsing may be set by the technician at the time of development, and may be set or adjusted by the user during the use, which is not limited by the embodiment of the disclosure.
  • the picture FIG1 when the number of views of the picture FIG1 is less than the preset threshold and the picture is not a frequently viewed photo, the picture FIG1 may be deleted from the local album to recover part of the storage space of the terminal device.
  • the preset threshold may be a length of time from the last time the picture is viewed; at this time, the fourth picture may be a picture that is longer than the preset threshold by the time when the picture was last viewed.
  • the preset threshold may also be defined by other magnitudes, which are not limited by the embodiments of the present disclosure.
  • the picture can be any original picture or thumbnail in the local album.
  • FIG. 4 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment.
  • the device includes: a scanning module 401 and a processing module 402.
  • the scanning module 401 is configured to scan a local album corresponding to the cloud album when detecting that the login status of the cloud album is logged in; the scanning module 401 and the processing module 402 is connected, and the processing module 402 is configured to save the original picture in the cloud album according to the result of the scanning, and save the thumbnail of the original picture in the local album.
  • FIG. 5 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment.
  • the scanning module 401 includes: a first obtaining unit 4011 and a comparing unit 4012.
  • the first obtaining unit 4011 is configured to detect that the login status of the cloud album has been When logging in, the picture information of the cloud album is obtained; the first obtaining unit 4011 is connected to the comparing unit 4012, and the comparing unit 4012 is configured to compare the picture information of the local album and the picture information of the cloud album.
  • FIG. 6 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment.
  • the processing module 402 includes: a first determining unit 4021, an uploading unit 4022, and a first replacing unit 4023; wherein, the first determining unit 4021 is configured to use, according to the result of the comparison, Determining whether there is a first picture in the local album, the first picture is an original picture that is not saved by the cloud album; the first determining unit 4021 is connected to the uploading unit 4022, and the uploading unit 4022 is configured to use the first picture in the local album. Uploading the first picture to the cloud album; the uploading unit 4022 is connected to the first replacing unit 4023, and the first replacing unit 4023 is configured to replace the first picture in the local album with the thumbnail of the first picture.
  • FIG. 7 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment.
  • the processing module 402 further includes: a second determining unit 4024 and a second replacing unit 4025; wherein, the second determining unit 4024 is configured to determine the cloud album according to the comparison result. Whether there is a second picture in the second picture, the second picture is the original picture currently saved in the local album; the second determining unit 4024 is connected to the second replacing unit 4025, and the second replacing unit 4025 is configured to have the second picture in the cloud photo album, The second picture in the local album is replaced with the thumbnail of the second picture.
  • FIG. 8 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment.
  • the processing module 402 further includes: a third determining unit 4026 and a second obtaining unit 4027; wherein the third determining unit 4026 is configured to determine the cloud according to the comparison result. Whether there is a third picture in the album, the third picture is an original picture that is not currently saved by the local album; the third determining unit 4026 and the second obtaining unit 4027 is connected, and the second obtaining unit 4027 is configured to obtain a thumbnail of the third picture from the cloud photo album and save the third picture when the third picture is present in the cloud photo album.
  • the apparatus shown in FIG. 6 to FIG. 8 above may also be based on FIG. 5, that is, the scanning module 401 includes the first obtaining unit 4011 and the comparing unit 4012 in FIGS. 6 to 8.
  • the scanning module 401 may also scan the local album corresponding to the cloud album when detecting that the local album has a newly added original image, and detecting that the login status of the cloud album indicates that the login has been logged in.
  • FIG. 9 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment.
  • the device includes: a display module 403; wherein the display module 403 is connected to the scan module 401, and the display module 403 is configured to detect a trigger event of the local album when the local album is detected.
  • the original pictures and/or thumbnails currently saved in the local album are displayed in the local album.
  • the display module 403 may further display a cloud album identifier in a preset area of the thumbnail, where the cloud album identifier is used to indicate that the original image corresponding to the thumbnail is saved in the cloud. In the album.
  • FIG. 10 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment.
  • the device includes: a first deleting module 404; wherein, the processing module 402 is connected to the first deleting module 404, and the first deleting module 404 is configured to receive the local When the thumbnail of the thumbnail is deleted, the thumbnail for the delete command is deleted, and the corresponding original image in the cloud album is deleted.
  • the apparatus shown in FIG. 10 may further include a second deleting module 405, configured to delete a fourth picture saved by the local album when the fourth picture is included in the local album; the fourth picture is less than the pre-view number Set the original image or thumbnail of the threshold.
  • a second deleting module 405 configured to delete a fourth picture saved by the local album when the fourth picture is included in the local album; the fourth picture is less than the pre-view number Set the original image or thumbnail of the threshold.
  • FIG. 11 is a schematic structural diagram of a terminal device according to an exemplary embodiment, and the terminal device may be used to implement the method for picture management provided in the foregoing embodiment. Specifically:
  • the terminal device 1100 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (wireless fidelity,
  • the Wireless Fidelity module 170 includes a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the terminal device structure shown in Fig. 11 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, receiving and transmitting signals, in particular, After the downlink information is received, it is processed by one or more processors 180; in addition, data related to the uplink is transmitted to the base station.
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • SIM Subscriber Identity Module
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access, Code division multiple access), WCDMA (Wideband Code Division Multiple Access;), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access, Code division multiple access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data (such as audio data, phone book, etc.) created by the use of the terminal device 1100.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • Input unit 130 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 may include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 140 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of terminal device 1100, which can be comprised of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal device 1100 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal device 1100 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest.
  • the terminal device 1100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the terminal device 1100.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal device, for example, by the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 1100.
  • WiFi is a short-range wireless transmission technology
  • the terminal device 1100 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides users with wireless broadband Internet access.
  • FIG. 11 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal device 1100, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the terminal device 1100 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the terminal device 1100 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores.
  • the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 180.
  • the terminal device 1100 further includes a power source 190 (such as a battery) for supplying power to the various components.
  • a power source 190 such as a battery
  • the power source can be logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal device 1100 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal device is a touch screen display, that is,
  • the terminal device includes: one or more processors; a memory; and one or more modules, the one or more modules
  • the block is stored in the memory and configured to be executed by the one or more processors, the one or more modules having the following functions: detecting that the login status of the cloud album indicates that the local album corresponding to the cloud album is scanned when the login is started; Based on the results of the scan, save the original image in a cloud album and save the thumbnail of the original image in a local album.
  • the one or more modules further have the following functions: acquiring picture information of the cloud album;
  • the one or more modules further have the following functions: determining, according to a result of the comparison, whether a first picture exists in the local album, where the first picture is an original picture that is not currently saved by the cloud album;
  • the one or more modules further have the following functions: determining, according to a result of the comparison, whether a second picture exists in the cloud album, and the second picture is an original picture that is currently saved by the local album;
  • the second picture in the local album is replaced with the thumbnail of the second picture.
  • the one or more modules further have the following functions: determining, according to the comparison result, whether a third picture exists in the cloud album, and the third picture is an original picture that is not currently saved by the local album;
  • the thumbnail of the third picture is obtained from the cloud album and saved.
  • the one or more modules further have the following functions: detecting that the local album has a newly added original picture, and detecting that the login status of the cloud album indicates that the local album corresponding to the cloud album is scanned when the login status is logged in.
  • the one or more modules further have the following functions: When a trigger event of starting a local album is detected, the original picture and/or thumbnail currently saved in the local album is displayed in the local album.
  • the one or more modules further have the following functions: displaying a currently saved thumbnail in the local album, and displaying a cloud album identifier in a preset area of the thumbnail, the cloud album identifier being used to indicate the original corresponding to the thumbnail The image has been saved in the cloud album.
  • the one or more modules further have the following functions: when a delete instruction for the thumbnail in the local album is received, the thumbnail for the delete instruction is deleted, and the corresponding original picture in the cloud album is deleted.
  • the one or more modules further have the following functions: when the fourth album is included in the local album, deleting the fourth image saved by the local album; the fourth image is an original image or a thumbnail whose browsing times are less than a preset threshold Sketch map.
  • modules in the embodiments of the present disclosure refer to instructions readable and executable by the processor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention belongs to the field of terminal devices, and provides an image management method, apparatus, and terminal device. The method comprises: when it is detected that a login status of the cloud album indicates that a user has logged on to the cloud album, scanning a local album corresponding to the cloud album (101); and according to a result of the scanning, saving an original image in the cloud album, and saving a thumbnail image of the original image in the local album (102). The apparatus comprises: a scanning module (401) and a processing module (402). The present invention saves, in a cloud album, an original image in a local album, replaces the original image in the local album with a thumbnail image corresponding to the original image, and uses the cloud album to save the original image from the local album, thereby saving storage space of a user; moreover, it is unnecessary to acquire original image in the cloud album in real time, which saves user traffic, and also significantly improves a browsing speed.

Description

图片管理的方法、 装置及终端设备 本申请基于申请号为 201310367641.6、 申请日为 2013年 8月 21 日的中国专利申请提 出, 并要求该中国专利申请的优先权, 该中国专利申请的全部内容在此引入本申请作为参 考。 技术领域  The present invention is based on a Chinese patent application with the application number 201310367641.6 and the application date being August 21, 2013, and claims the priority of the Chinese patent application, the entire contents of which are This application is hereby incorporated by reference. Technical field
本公开涉及终端设备技术领域, 特别涉及一种图片管理的方法、 装置及终端设备。 背景技术  The present disclosure relates to the field of terminal equipment technologies, and in particular, to a method, an apparatus, and a terminal device for picture management. Background technique
随着手机等移动终端设备的发展, 移动终端自带相机拍照的质量越来越高, 加上移动 终端设备便携、 易操作等特征, 人们使用移动终端设备的拍照功能也越来越多。 为实现不 同移动终端设备之间照片的同步、 共享, 云相册应运而生。  With the development of mobile terminal devices such as mobile phones, the quality of mobile cameras with their own cameras is getting higher and higher, and the characteristics of portable and easy-to-operate mobile terminal devices are increasing. In order to realize the synchronization and sharing of photos between different mobile terminal devices, cloud photo albums came into being.
用户在对本地相册进行浏览时, 终端设备展示的是本地保存的原图, 而用户在对云相 册进行浏览时, 终端设备可以有以下两种展示方式: (1 ) 如果终端设备缓存云相册中的 原始图片对应的缩略图, 当用户浏览云相册时, 可以展示缓存的缩略图; (2) 如果终端 设备不对云相册进行缓存,当用户每次浏览云相册时,都需通过网络到云端下载原始图片。  When the user browses the local album, the terminal device displays the original image saved locally, and when the user browses the cloud album, the terminal device can have the following two display modes: (1) If the terminal device caches the cloud album The thumbnail corresponding to the original image, when the user browses the cloud album, can display the cached thumbnail; (2) If the terminal device does not cache the cloud album, the user needs to download the cloud album through the network every time the cloud album is browsed. Original Image.
发明人在实现本公开的过程中, 发现上述两种方式至少存在如下问题:  In the process of implementing the present disclosure, the inventors found that the above two methods have at least the following problems:
上述两种方式中, 本地相册存储的均是原始图片, 占用终端设备大量的存储空间, 且 第(1 )种方式中的缓存也会占用终端设备的一部分存储空间, 造成存储空间的严重浪费。 第 (2) 种方式, 虽然不进行缓存, 但是每次浏览, 均需要云相册下载原始图片, 消耗用 户流量、 浪费存储空间的同时, 浏览速度也大幅减慢。 发明内容  In the above two modes, the local album stores the original image, which occupies a large amount of storage space of the terminal device, and the cache in the (1) mode also occupies a part of the storage space of the terminal device, causing serious waste of the storage space. In the second (2) method, although the cache is not performed, the cloud album is required to download the original image every time browsing, which consumes user traffic and wastes storage space, and the browsing speed is also greatly slowed down. Summary of the invention
为了解决上述问题, 本公开实施例提供了一种图片管理的方法、 装置及终端设备。 该 技术方案如下:  In order to solve the above problem, an embodiment of the present disclosure provides a method, an apparatus, and a terminal device for picture management. The technical solution is as follows:
根据本公开实施例的第一方面, 提供一种图片管理的方法, 该方法包括:  According to a first aspect of the embodiments of the present disclosure, a method for picture management is provided, the method comprising:
检测到云相册的登录状态指示已登录时, 扫描该云相册对应的本地相册;  When detecting that the login status of the cloud album indicates that the login status is logged in, scanning the local album corresponding to the cloud album;
根据该扫描的结果, 将原始图片保存在该云相册中, 并将该原始图片的缩略图保存在 该本地相册中。  Based on the result of the scan, the original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album.
根据本公开实施例的第二方面, 提供一种图片管理的装置, 该装置包括:  According to a second aspect of the embodiments of the present disclosure, an apparatus for managing a picture is provided, the apparatus comprising:
扫描模块, 用于在检测到云相册的登录状态指示已登录时, 扫描该云相册对应的本地 相册;  a scanning module, configured to scan a local album corresponding to the cloud album when detecting that the login status of the cloud album is logged in;
处理模块, 用于根据该扫描的结果, 将原始图片保存在该云相册中, 并将该原始图片 的缩略图保存在该本地相册中。 根据本公开实施例的第三方面, 提供一种终端设备, 该终端设备包括: 一个或多个处 理器; 存储器; 和一个或多个模块, 该一个或多个模块存储于该存储器中并被配置成由该 一个或多个处理器执行, 该一个或多个模块具有如下功能: 检测到云相册的登录状态指示 已登录时, 扫描该云相册对应的本地相册; 根据该扫描的结果, 将原始图片保存在该云相 册中, 并将该原始图片的缩略图保存在该本地相册中。 And a processing module, configured to save the original image in the cloud album according to the result of the scanning, and save the thumbnail of the original image in the local album. According to a third aspect of embodiments of the present disclosure, a terminal device is provided, the terminal device comprising: one or more processors; a memory; and one or more modules, the one or more modules being stored in the memory and Configuring to be executed by the one or more processors, the one or more modules having the following functions: detecting that the login status of the cloud album indicates that the local album corresponding to the cloud album is scanned when the login status is logged in; according to the result of the scanning, The original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album.
本公开的实施例提供的技术方案可以包括以下有益效果:  The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过将原始图片保存在云相册, 并将原始图片的缩略图保存在本地相册, 大大节省本 地的存储空间; 且通过本地相册可以浏览到云相册中原始图片对应的缩略图, 不用实时获 取云相册中的原始图片, 节省用户流量, 浏览速度也大幅提高。  By saving the original image in the cloud album and saving the thumbnail of the original image in the local album, the local storage space is greatly saved; and the thumbnail corresponding to the original image in the cloud album can be browsed through the local album, and the cloud album is not needed in real time. The original picture in the picture saves user traffic and the browsing speed is also greatly improved.
应当理解的是, 以上的一般描述和后文的细节描述仅是示例性和解释性的, 并不能限 制本发明。 附图说明  The above general description and the following detailed description are intended to be illustrative and not restrictive. DRAWINGS
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的 附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本公开实施例的一些举例, 对 于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其 他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only examples of the embodiments of the present disclosure. For those skilled in the art, other drawings may be obtained based on these drawings without any creative work.
图 1是根据一示例性实施例示出的图片管理的方法流程图;  FIG. 1 is a flowchart of a method for picture management according to an exemplary embodiment;
图 2是根据一示例性实施例示出的图片管理的方法流程图;  2 is a flowchart of a method for picture management according to an exemplary embodiment;
图 3是根据一示例性实施例示出的显示界面示意图;  FIG. 3 is a schematic diagram of a display interface according to an exemplary embodiment; FIG.
图 4是根据一示例性实施例示出的图片管理的装置结构示意图;  FIG. 4 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment; FIG.
图 5是根据一示例性实施例示出的图片管理的装置结构示意图;  FIG. 5 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment; FIG.
图 6是根据一示例性实施例示出的图片管理的装置结构示意图;  FIG. 6 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment; FIG.
图 7是根据一示例性实施例示出的图片管理的装置结构示意图;  FIG. 7 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment; FIG.
图 8是根据一示例性实施例示出的图片管理的装置结构示意图;  FIG. 8 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment; FIG.
图 9是根据一示例性实施例示出的图片管理的装置结构示意图;  FIG. 9 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment; FIG.
图 10是根据一示例性实施例示出的图片管理的装置结构示意图;  FIG. 10 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment; FIG.
图 11是根据一示例性实施例示出的终端设备的结构示意图。  FIG. 11 is a schematic structural diagram of a terminal device according to an exemplary embodiment.
此处的附图被并入说明书中并构成本说明书的一部分, 示出了符合本发明的实施例, 并与说明书一起用于解释本发明的原理。 具体实施方式  The accompanying drawings, which are incorporated in the specification of FIG detailed description
为使本发明的目的、技术方案和优点更加清楚, 下面将结合附图对本发明作进一步地 详细描述。  In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings.
为了便于对后续内容的理解, 在此对本公开实施例中所涉及到的名词进行解释如下: 云相册, 是指终端设备对应的位于云端的相册。 该云相册基于云端技术, 用于存储终 端设备上传的或是用户存储于云端的图片。 In order to facilitate the understanding of the subsequent content, the nouns involved in the embodiments of the present disclosure are explained as follows: Cloud photo album refers to the album in the cloud corresponding to the terminal device. The cloud photo album is based on the cloud technology and is used to store images uploaded by the terminal device or stored by the user in the cloud.
本地相册, 是指终端设备中用于存储图片的文件夹。 图 1是根据一示例性实施例示出的图片管理的方法的流程图。该实施例的执行主体为 终端设备, 参见图 1, 该方法包括:  A local album is a folder in a terminal device for storing pictures. FIG. 1 is a flowchart of a method of picture management according to an exemplary embodiment. The execution body of this embodiment is a terminal device. Referring to FIG. 1, the method includes:
101、 检测到云相册的登录状态指示已登录时, 扫描云相册对应的本地相册;  101. When detecting that the login status of the cloud album indicates that the login status is logged in, scanning the local album corresponding to the cloud album;
102、 根据扫描的结果, 将原始图片保存在云相册中, 并将原始图片的缩略图保存在 本地相册中。  102. Save the original picture in the cloud album according to the result of the scan, and save the thumbnail of the original picture in the local album.
本公开实施例提供的方法, 通过将本地相册中的原始图片保存在云相册, 并将原始图 片的缩略图保存在本地相册, 大大节省了本地的存储空间; 且通过本地相册可以浏览到云 相册中原始图片对应的缩略图, 不用实时获取云相册中的原始图片, 节省用户流量, 浏览 速度也大幅提高。  The method provided by the embodiment of the present disclosure saves the local storage space by saving the original picture in the local album in the cloud album and saving the thumbnail of the original picture in the local album; and browsing the cloud album through the local album The thumbnail corresponding to the original image does not need to obtain the original image in the cloud album in real time, saving user traffic and greatly improving the browsing speed.
可选地,检测到云相册的登录状态指示已登录时,扫描云相册对应的本地相册,包括: 检测到云相册的登录状态指示已登录时, 获取云相册的图片信息;  Optionally, when detecting that the login status of the cloud album indicates that the login has been logged in, scanning the local album corresponding to the cloud album includes: obtaining the picture information of the cloud album when the login status of the cloud album is detected to be logged in;
比较本地相册的图片信息和云相册的图片信息。  Compare the picture information of the local album with the picture information of the cloud album.
可选地, 根据扫描的结果, 将原始图片保存在云相册中, 并将原始图片的缩略图保存 在本地相册中, 包括:  Optionally, according to the result of the scanning, the original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album, including:
根据比较的结果, 判断本地相册中是否存在第一图片, 第一图片为云相册当前未保存 的原始图片;  According to the comparison result, it is determined whether there is a first picture in the local album, and the first picture is an original picture that is not currently saved by the cloud album;
如果存在第一图片, 则将第一图片上传至云相册;  If the first picture exists, upload the first picture to the cloud album;
将本地相册中的第一图片替换为第一图片的缩略图。  Replace the first picture in the local album with the thumbnail of the first picture.
可选地, 根据扫描的结果, 将原始图片保存在云相册中, 并将原始图片的缩略图保存 在本地相册中, 包括:  Optionally, according to the result of the scanning, the original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album, including:
根据比较的结果, 判断云相册中是否存在第二图片, 第二图片为本地相册当前已保存 的原始图片;  According to the comparison result, it is determined whether there is a second picture in the cloud album, and the second picture is the original picture currently saved by the local album;
如果存在第二图片, 从云相册中获取第二图片的缩略图;  If there is a second picture, obtain a thumbnail of the second picture from the cloud album;
将本地相册中的第二图片替换为第二图片的缩略图。  Replace the second picture in the local album with the thumbnail of the second picture.
可选地, 根据扫描的结果, 将原始图片保存在云相册中, 并将原始图片的缩略图保存 在本地相册中, 包括:  Optionally, according to the result of the scanning, the original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album, including:
根据比较的结果, 判断云相册中是否存在第三图片, 第三图片为本地相册当前未保存 的原始图片;  According to the comparison result, it is determined whether there is a third picture in the cloud album, and the third picture is an original picture that is not currently saved by the local album;
如果存在第三图片, 从云相册中获取第三图片的缩略图并保存。  If there is a third picture, the thumbnail of the third picture is obtained from the cloud album and saved.
可选地,检测到云相册的登录状态指示已登录时,扫描云相册对应的本地相册,包括: 当检测到本地相册有新加入的原始图片, 且检测到云相册的登录状态指示已登录时, 扫描云相册对应的本地相册。 Optionally, when detecting that the login status of the cloud album indicates that the login has been logged in, scanning the local album corresponding to the cloud album includes: when detecting that the local album has a newly added original image, and detecting that the login status of the cloud album indicates that the login is logged in , Scan the local album corresponding to the cloud album.
可选地, 该方法还包括:  Optionally, the method further includes:
检测到启动本地相册的触发事件时,在本地相册中显示本地相册中当前保存的原始图 片和 /或缩略图。  When a trigger event to start a local album is detected, the original image and/or thumbnail currently saved in the local album is displayed in the local album.
可选地, 在本地相册中显示本地相册中当前保存的缩略图, 包括:  Optionally, displaying the currently saved thumbnails in the local album in a local album, including:
显示本地相册中当前保存的缩略图, 并在缩略图的预设区域显示云相册标识, 云相册 标识用于标示缩略图对应的原始图片已保存在云相册中。  The currently saved thumbnails in the local album are displayed, and the cloud album logo is displayed in the preset area of the thumbnail, and the cloud album identifier is used to indicate that the original image corresponding to the thumbnail has been saved in the cloud album.
可选地, 该方法还包括:  Optionally, the method further includes:
当接收到对本地相册中的缩略图的删除指令时, 删除该删除指令针对的缩略图, 并删 除云相册中的对应的原始图片。  When a delete instruction for a thumbnail in the local album is received, the thumbnail for the delete instruction is deleted, and the corresponding original picture in the cloud album is deleted.
可选地, 该方法还包括:  Optionally, the method further includes:
当本地相册中包括第四图片时, 删除本地相册保存的第四图片; 第四图片为浏览次数 小于预设阈值的原始图片或缩略图。 图 2是根据一示例性实施例示出的图片管理的方法的流程图。该实施例的执行主体为 终端设备, 参见图 2, 该方法包括:  When the fourth picture is included in the local album, the fourth picture saved by the local album is deleted; the fourth picture is the original picture or thumbnail whose browsing times are smaller than the preset threshold. 2 is a flow chart of a method of picture management, according to an exemplary embodiment. The execution body of this embodiment is a terminal device. Referring to FIG. 2, the method includes:
201、 检测到启动本地相册的触发事件时, 在本地相册中显示本地相册中当前保存的 原始图片和 /或缩略图;  201. When a trigger event of starting a local album is detected, the original image and/or thumbnail currently saved in the local album is displayed in the local album;
在该步骤 201 中, 检测到启动本地相册的触发事件时, 本地相册中显示原始图片和 / 或缩略图, 即将本地相册和云相册的信息统一在本地相册的显示界面上做展示, 方便用户 浏览。  In the step 201, when the trigger event of the local album is detected, the original photo and/or the thumbnail are displayed in the local album, and the information of the local album and the cloud album are unified on the display interface of the local album for display, which is convenient for the user to browse. .
上述展示包括如下三种情况:  The above display includes the following three situations:
第一、在执行当前流程之前, 已执行过将原始图片保存在云相册及将原始图片的缩略 图保存在本地相册的过程, 且在该过程完成之后, 有新的原始图片被添加到本地相册中, 此时本地相册中既包括原始图片, 还包括缩略图, 因此在检测到启动本地相册的触发事件 时, 将在本地相册中显示原始图片以及缩略图;  First, before the current process is executed, the process of saving the original picture in the cloud album and saving the thumbnail of the original picture in the local album has been performed, and after the process is completed, a new original picture is added to the local album. In this case, the local album includes both the original picture and the thumbnail, so when the trigger event of starting the local album is detected, the original picture and the thumbnail are displayed in the local album;
第二、在执行当前流程之前, 从未执行过将原始图片保存在云相册及将原始图片的缩 略图保存在本地相册的过程, 此时本地相册中仅包括原始图片, 在检测到启动本地相册的 触发事件时, 将在本地相册中显示原始图片;  Second, before the current process is executed, the process of saving the original image in the cloud album and saving the thumbnail of the original image in the local album has never been performed. At this time, only the original image is included in the local album, and the local album is detected to be activated. When the event is triggered, the original image will be displayed in the local album;
第三、在执行当前流程之前, 已执行过将原始图片保存在云相册及将原始图片的缩略 图保存在本地相册的过程, 且在该过程完成之后, 本地相册还未增加任何原始图片, 此时 本地相册中仅包括缩略图, 在检测到启动本地相册的触发事件时, 将在本地相册中显示缩 略图。  Third, before the current process is executed, the process of saving the original picture in the cloud album and saving the thumbnail of the original picture in the local album has been performed, and after the process is completed, the local album has not added any original picture, When only the thumbnail is included in the local album, the thumbnail will be displayed in the local album when the trigger event for starting the local album is detected.
其中,上述本地相册中所保存的缩略图所对应的原始图片均保存在该终端设备对应的 云相册中。 需要说明的是, 在显示图片时, 可以按照每页可显示图片数进行分页显示, 本公开实 施例对该显示的具体方式不作限定。其中, 每页可显示图片数可以为技术人员在开发时设 置, 还可以由用户在使用过程中自行设置或调整, 本公开实施例对此不作限定。 The original picture corresponding to the thumbnails saved in the local album is saved in the cloud album corresponding to the terminal device. It should be noted that, when displaying a picture, the page display can be performed according to the number of pictures that can be displayed on each page. The specific manner of the display is not limited in the embodiment of the present disclosure. The number of the pictures that can be displayed on each page can be set by the technicians during the development, and can also be set or adjusted by the user during the use, which is not limited by the embodiment of the disclosure.
在显示时,为了对本地相册中所保存的原始图片与云相册的原始图片对应的缩略图加 以区分,对于保存在本地相册中的缩略图,可以在该缩略图的显示区域中显示云相册标识, 该云相册标识用于标示该缩略图对应的原始图片已保存在云相册中。 同理, 对于本地相册 所保存的原始图片, 也可以在该原始图片的显示区域中显示本地标识。本公开实施例对云 相册标识或本地标识在图片对应显示区域中的显示位置不作具体限定。通过显示云相册标 识或本地标识,用户可以清楚地知道哪些图片是已经保存在云相册的原始图片对应的缩略 图, 哪些图片是仍保存在本地相册而未上传至云相册的原始图片。 当然, 也可以不在图片 的显示区域显示该云相册标识或该本地标识, 本公开实施例对此不做限定。  In the display, in order to distinguish the original image saved in the local album from the thumbnail corresponding to the original image of the cloud album, for the thumbnail saved in the local album, the cloud album identifier may be displayed in the display area of the thumbnail. The cloud album identifier is used to indicate that the original image corresponding to the thumbnail has been saved in the cloud album. Similarly, for the original picture saved by the local album, the local logo can also be displayed in the display area of the original picture. The display position of the cloud album identifier or the local identifier in the corresponding display area of the picture is not specifically limited. By displaying the cloud album logo or local logo, the user can clearly know which images are thumbnails corresponding to the original images that have been saved in the cloud album, and which images are still saved in the local album but not uploaded to the original album of the cloud album. Of course, the cloud album identifier or the local identifier may not be displayed in the display area of the image, which is not limited by the embodiment of the disclosure.
其中, 是否在缩略图的显示区域显示该云相册标识可以由技术人员在开发时设置, 或 由用户在使用过程中设置或调整, 本公开实施例对此不作具体限定。 另外, 该云相册标识 的具体形式可以为文字标识、 图形标识等, 如 "云"或在显示区域中的条形标识, 本公开 实施例对此不作具体限定。 同理, 本公开实施例对是否显示本地标识、 本地标识的形状、 以及该本地标识显示在该原始图片显示区域的位置不做限定。  The display of the cloud album identifier in the display area of the thumbnail may be set by the technician at the time of development, or may be set or adjusted by the user during use, which is not specifically limited in the embodiment of the present disclosure. In addition, the specific form of the cloud album identifier may be a text identifier, a graphic identifier, or the like, such as a "cloud" or a bar identifier in the display area, which is not specifically limited in the embodiment of the present disclosure. Similarly, the embodiment of the present disclosure does not limit whether to display the local identifier, the shape of the local identifier, and the location where the local identifier is displayed in the original image display area.
另外,用户设定是否显示云相册标识和是否显示本地标识可以通过本地相册所提供的 操作列表中相应的功能选项实现, 如该功能选项可以包括显示云相册标识、 删除云相册标 识、 显示本地标识和删除本地标识等, 本公开实施例对此不做限定。  In addition, the user setting whether to display the cloud album identifier and whether to display the local identifier may be implemented by corresponding function options in the operation list provided by the local album, such as the function option may include displaying the cloud album identifier, deleting the cloud album identifier, and displaying the local identifier. The embodiment of the present disclosure does not limit this.
例如, 参见图 3, 图中以每页可显示 21张图片为例, 对显示界面进行说明。 其中, 以 图片 1的显示区域的右上角的条形图案为云相册标识, 图片 6显示区域的左下角的圆形图 案为本地标识,本地相册所提供的操作列表出现在整个显示页面的左下角区域为例进行说 明, 图中仅列出操作列表中可能包括的部分功能选项。  For example, referring to Figure 3, the display interface is illustrated by taking 21 pictures per page as an example. The strip pattern in the upper right corner of the display area of the picture 1 is the cloud album identifier, and the circular pattern in the lower left corner of the picture 6 display area is the local logo, and the operation list provided by the local album appears in the lower left corner of the entire display page. The area is described as an example. Only some of the function options that may be included in the operation list are listed in the figure.
另外, 步骤 201为一个可选步骤, 而在本公开实施例提供的另一种实施方式中, 终端 设备分别提供了本地相册入口以及云相册登录入口, 如果用户当前没有打开本地相册, 仅 仅是登录了云相册, 此时也可以直接执行步骤 202。  In addition, the step 201 is an optional step, and in another implementation manner provided by the embodiment of the present disclosure, the terminal device provides a local album entry and a cloud album login entry respectively, and if the user does not currently open the local album, only the login In the cloud album, step 202 can also be directly executed.
202、 检测到云相册的登录状态指示已登录时, 扫描该云相册对应的本地相册; 当云相册未登录时, 无法获取云相册的图片信息, 而当云相册处于已登录的状态时, 可以从云端获取云相册的图片信息, 从而根据获取到的云相册的图片信息, 以及通过扫描 本地相册得到的本地相册的图片信息, 比对云相册和本地相册的图片信息。  202. When detecting that the login status of the cloud album indicates that the login is performed, scanning the local album corresponding to the cloud album; when the cloud album is not logged in, the image information of the cloud album cannot be obtained, and when the cloud album is in the logged in state, The picture information of the cloud album is obtained from the cloud, so that the picture information of the cloud album and the local album is compared according to the picture information of the obtained cloud album and the picture information of the local album obtained by scanning the local album.
步骤 202可以包括: 当检测到云相册的登录状态指示已登录时, 终端设备根据终端设 备的账号登录云端服务器, 并从云端服务器获取本地相册对应的云相册的图片信息; 根据 获取到的云相册的图片信息和本地相册的图片信息, 比较云相册的图片信息和本地相册的 图片信息。  Step 202 may include: when detecting that the login status indication of the cloud album is logged in, the terminal device logs in to the cloud server according to the account of the terminal device, and obtains the picture information of the cloud album corresponding to the local album from the cloud server; according to the acquired cloud album The picture information and the picture information of the local album, compare the picture information of the cloud album and the picture information of the local album.
进一步地, 比较云相册的图片信息和本地相册的图片信息可能得到以下三种比较结 果: (1 )本地相册的图片信息中包括云相册的图片信息中没有的图片信息; (2) 云相册 的图片信息中包括本地相册的图片信息中已有的图片信息; ( 3 ) 云相册的图片信息中包 括本地相册的图片信息中没有的图片信息。 Further, comparing the picture information of the cloud album with the picture information of the local album may result in the following three comparisons. (1) The picture information of the local album includes the picture information not included in the picture information of the cloud album; (2) the picture information of the cloud album includes the picture information already existing in the picture information of the local album; (3) cloud album The picture information includes picture information that is not included in the picture information of the local album.
其中, 图片信息包括图片名称、 图片摘要信息、 图片大小等, 该图片信息仅是根据图 片能够确定的一些用于进行图片比对的信息, 而不包括图片本身。 其中, 图片摘要信息是 指根据图片本身以及文件校验算法 (如, SHA(Secure Hash Algorithm, 安全散列算法;)、 MD5 (Message Digest Algorithm 5, 消息摘要算法第五版)等)等生成的特征值或字符串。  The picture information includes a picture name, a picture summary information, a picture size, and the like, and the picture information is only some information that can be determined according to the picture for comparing the pictures, and does not include the picture itself. The image summary information is generated according to the image itself and a file verification algorithm (for example, SHA (Secure Hash Algorithm); MD5 (Message Digest Algorithm 5). Eigenvalue or string.
需要说明的是,扫描本地相册的过程与比较云相册的图片信息和本地相册的图片信息 的过程可以为以下两种方式中任一种: (1 ) 顺序进行, 如, 当获取到云相册的图片信息 和本地相册的图片信息后, 比较该云相册的图片信息和该本地相册的图片信息; (2) 并 列进行, 如, 扫描本地相册的过程中, 每扫描到一张原始图片, 生成并记录该原始图片的 图片信息, 并根据该图片信息和云相册的图片信息, 判断云相册的图片信息中是否包括该 原始图片的图片信息, 并记录该云相册的图片信息中包括的该原始图片的图片信息, 当对 本地相册中的所有图片均已扫描过之后,査找该云相册的图片信息中是否有该记录中没有 的图片信息; 本公开实施例对此不做限定。  It should be noted that the process of scanning the local album and the process of comparing the picture information of the cloud album with the picture information of the local album may be either of the following two ways: (1) sequentially, for example, when acquiring the cloud album After the picture information and the picture information of the local album, the picture information of the cloud album and the picture information of the local album are compared; (2) juxtaposed, for example, in the process of scanning the local album, each scanned one original picture is generated, and Recording the picture information of the original picture, and determining, according to the picture information and the picture information of the cloud photo album, whether the picture information of the original picture includes the picture information of the original picture, and recording the original picture included in the picture information of the cloud photo album The picture information, after the all the pictures in the local album have been scanned, the picture information of the cloud album is searched for whether there is any picture information that is not in the record; the embodiment of the disclosure does not limit this.
可选地, 当从终端设备上打开本地相册时, 可以显示是否进行云相册登录的选项, 当 检测到用户对该选项的选择操作时, 则进行云相册登录, 从而可以通过检测获知云相册处 于登录状态, 避免了由于随时处于登录状态而造成的流量消耗。  Optionally, when the local album is opened from the terminal device, an option of whether to perform the cloud album login may be displayed. When the user selects the selection operation of the option, the cloud album registration is performed, so that the cloud album is found by detecting The login status avoids the traffic consumption caused by being logged in at any time.
另外, 作为一种可选的实施方式, 也可以在检测到本地相册中有新加入的原始图片, 且检测到云相册的登录状态指示已登录时, 再执行本步骤 202。  In addition, as an optional implementation manner, when the newly added original picture is detected in the local album, and the login status indication of the cloud album is detected to be logged in, the step 202 is performed.
203、 根据扫描的结果, 判断本地相册中是否存在第一图片, 第一图片为云相册当前 未保存的原始图片; 203. Determine, according to the result of the scanning, whether a first picture exists in the local album, where the first picture is an original picture that is not currently saved by the cloud album;
如果是, 执行步骤 204;  If yes, go to step 204;
如果否, 结束;  If no, end;
该步骤 203可以包括: 根据扫描的结果, 当本地相册的图片信息中包括云相册的图片 信息中没有的图片信息, 确定本地相册中存在第一图片; 当本地相册的图片信息中不包括 云相册的图片信息中没有的图片信息, 确定本地相册中不存在第一图片。  The step 203 may include: determining, according to the result of the scanning, that the picture information that is not included in the picture information of the cloud album includes the first picture in the local photo album; and the cloud photo album is not included in the picture information of the local photo album. The picture information that is not in the picture information determines that the first picture does not exist in the local album.
另外, 因为用户可以通过图片的本地标识或云相册标识观察到本地相册中哪些原始图 片还未保存在云相册, 则可以通过用户指定将任一本地相册中的原始图片保存在云相册。  In addition, because the user can observe which original pictures in the local album have not been saved in the cloud album through the local logo of the picture or the cloud album identifier, the original picture in any local album can be saved in the cloud album by the user.
例如, 获取到的云相册的图片信息包括 b 的图片信息: 图片名称 b+图片摘要信息 SHA-b, 以及 c的图片信息: 图片名称 c+图片摘要信息 SHA-c。  For example, the picture information of the obtained cloud album includes the picture information of b: picture name b+ picture summary information SHA-b, and picture information of c: picture name c+ picture summary information SHA-c.
本地相册的图片信息包括 a的图片信息: 图片名称 a+图片摘要信息 SHA-a, 以及 c 的图片信息: 图片名称 c+图片摘要信息 SHA-c。  The picture information of the local album includes the picture information of a: picture name a+ picture summary information SHA-a, and picture information of c: picture name c+ picture summary information SHA-c.
通过比较, 可以获知, 云相册和本地相册中具有相同的图片 c, 而云相册中不包括 a 的图片信息, 则此时, 将本地相册中的图片 a确定为第一图片。 By comparison, it can be known that the cloud photo album and the local photo album have the same picture c, and the cloud photo album does not include a The picture information, at this time, the picture a in the local album is determined as the first picture.
204、 将第一图片上传至云相册;  204. Upload the first picture to the cloud album;
如果确定本地相册中存在第一图片, 即本地相册中保存有云相册中未保存的原始图 片, 将本地相册中的原始图片保存在云相册备份。  If it is determined that the first picture exists in the local album, that is, the original picture that is not saved in the cloud album is saved in the local album, the original picture in the local album is saved in the cloud album backup.
205、 将本地相册中的第一图片替换为第一图片的缩略图;  205. Replace the first picture in the local album with the thumbnail of the first picture.
在上述步骤 204中, 本地相册中的第一图片已经保存在云相册, 可以将本地相册中的 第一图片替换为第一图片的缩略图, 回收终端设备的部分存储空间。  In the above step 204, the first picture in the local album has been saved in the cloud album, and the first picture in the local album can be replaced with the thumbnail of the first picture, and part of the storage space of the terminal device is recovered.
该步骤 205可以包括: 将本地相册中的原始图片保存到云相册备份后, 生成并保存该 原始图片对应的缩略图到本地相册, 从本地相册中删除该原始图片。 或者, 该步骤 205可 以包括: 将本地相册中的原始图片保存到云相册备份后, 从云相册获取该原始图片对应的 缩略图到本地相册, 从本地相册中删除该原始图片。  The step 205 may include: after saving the original picture in the local album to the cloud album backup, generating and saving the thumbnail corresponding to the original picture to the local album, and deleting the original picture from the local album. Alternatively, the step 205 may include: after saving the original picture in the local album to the cloud album backup, acquiring the thumbnail corresponding to the original picture from the cloud album to the local album, and deleting the original picture from the local album.
上述步骤 203-205是对第一图片的处理过程, 也即是对本地相册中保存的云相册中未 保存的原始图片的处理过程。 经过步骤 203-205后, 原来本地相册中的原始图片均已保存 在云相册中, 当前本地相册中仅保存有云相册中原始图片对应的缩略图。  The above steps 203-205 are the processing of the first picture, that is, the processing of the original picture that is not saved in the cloud album saved in the local album. After the steps 203-205, the original pictures in the original local album are saved in the cloud album, and only the thumbnail corresponding to the original picture in the cloud album is saved in the current local album.
206、 根据扫描的结果, 判断云相册中是否存在第二图片, 第二图片为本地相册当前 已保存的原始图片;  206. Determine, according to the result of the scanning, whether a second picture exists in the cloud photo album, and the second picture is an original picture that is currently saved by the local album;
如果是, 执行步骤 207;  If yes, go to step 207;
如果否, 结束;  If no, end;
该步骤 206可以包括: 根据扫描的结果, 当云相册的图片信息中包括本地相册的图片 信息中已有的图片信息, 确定云相册中存在第二图片; 当云相册的图片信息中不包括本地 相册的图片信息中已有图片信息, 确定云相册中不存在第二图片。  The step 206 may include: determining, according to the result of the scanning, that the picture information of the cloud album includes the picture information existing in the picture information of the local album, determining that the second picture exists in the cloud album; and the picture information of the cloud album does not include the local There is already picture information in the picture information of the album, and it is determined that the second picture does not exist in the cloud photo album.
例如, 获取到的云相册的图片信息包括 b 的图片信息: 图片名称 b+图片摘要信息 SHA-b , 以及 c的图片信息: 图片名称 c+图片摘要信息 SHA-c。  For example, the picture information of the obtained cloud album includes the picture information of b: picture name b+ picture summary information SHA-b, and picture information of c: picture name c+ picture summary information SHA-c.
本地相册的图片信息包括 a的图片信息: 图片名称 a+图片摘要信息 SHA-a, 以及 c 的图片信息: 图片名称 c+图片摘要信息 SHA-c。  The picture information of the local album includes the picture information of a: picture name a+ picture summary information SHA-a, and picture information of c: picture name c+ picture summary information SHA-c.
通过比较, 可以获知, 云相册中包括 b的图片信息和 c的图片信息, 而本地相册中包 括相同的 c的图片信息, 而不包括 b的图片信息, 则此时, 将本地相册中的图片 c确定为 第二图片。  By comparison, it can be known that the cloud album includes the picture information of b and the picture information of c, and the local album includes the same picture information of c, and does not include the picture information of b, at this time, the picture in the local album is c is determined to be the second picture.
207、 将本地相册中的第二图片替换为该第二图片的缩略图;  207. Replace the second picture in the local album with the thumbnail of the second picture.
如果判定云相册中存在第二图片,也即是第二图片是同时保存在云相册和本地相册中 的原始图片, 将本地相册中的第二图片替换为该第二图片的缩略图。  If it is determined that there is a second picture in the cloud album, that is, the second picture is the original picture saved in both the cloud album and the local album, the second picture in the local album is replaced with the thumbnail of the second picture.
其中, 将本地相中的第二图片替换为该第二图片的缩略图的过程与步骤 205相同, 在 此不再赘述。  The process of replacing the second picture in the local phase with the thumbnail of the second picture is the same as step 205, and details are not described herein again.
上述步骤 206-207是对第二图片的处理过程, 也即是对同时保存在云相册和本地相册 中的原始图片的处理过程。 通过步骤 206-207, 将本地相册中与云相册重复保存的原始图 片替换为该原始图片对应的缩略图片, 回收了终端设备的部分存储空间。 The above steps 206-207 are the processing of the second picture, that is, the processing of the original picture saved in the cloud album and the local album at the same time. The original image saved in the local album with the cloud album is repeated in steps 206-207. The slice is replaced with the thumbnail image corresponding to the original picture, and part of the storage space of the terminal device is recovered.
208、 根据扫描的结果, 判断云相册中是否存在第三图片, 第三图片为本地相册当前 未保存的原始图片;  208. Determine, according to the result of the scanning, whether there is a third picture in the cloud photo album, where the third picture is an original picture that is not currently saved by the local album;
如果是, 执行步骤 209;  If yes, go to step 209;
如果否, 结束;  If no, end;
该步骤 208可以包括: 根据扫描的结果, 当云相册的图片信息中包括本地相册的图片 信息中没有的图片信息, 确定云相册中存在第三图片; 当云相册的图片信息中不包括本地 相册的图片信息中没有的图片信息, 确定云相册中不存在第三图片。  The step 208 may include: according to the result of the scanning, when the picture information of the cloud album includes the picture information that is not included in the picture information of the local album, determining that the third picture exists in the cloud album; when the picture information of the cloud album does not include the local album The picture information is not in the picture information, and the third picture does not exist in the cloud photo album.
例如, 获取到的云相册的图片信息存在 b 的图片信息: 图片名称 b+图片摘要信息 SHA-b , 以及 c的图片信息: 图片名称 c+图片摘要信息 SHA-c。  For example, the picture information of the obtained cloud album has the picture information of b: picture name b+ picture summary information SHA-b, and c picture information: picture name c+ picture summary information SHA-c.
本地相册的图片信息包括 a的图片信息: 图片名称 a+图片摘要信息 SHA-a, 以及 c 的图片信息: 图片名称 c+图片摘要信息 SHA-c。  The picture information of the local album includes the picture information of a: picture name a+ picture summary information SHA-a, and picture information of c: picture name c+ picture summary information SHA-c.
通过比较, 可以获知, 云相册中包括 b的图片信息和 c的图片信息, 而本地相册中不 包括 b的图片信息, 而包括相同的 c的图片信息, 则此时, 将本地相册中的图片 b确定为 第三图片。  By comparison, it can be known that the cloud album includes the picture information of b and the picture information of c, and the local picture does not include the picture information of b, but includes the picture information of the same c, then at this time, the picture in the local album is b is determined to be the third picture.
209、 从云相册中获取第三图片的缩略图并保存在本地相册;  209. Obtain a thumbnail of the third picture from the cloud album and save the local album;
如果云相册中存在第三图片, 即当前云相册中包括有本地相册中未保存的原始图片, 需将该原始图片的缩略图保存在本地相册, 以便用户査看。  If there is a third picture in the cloud album, that is, the current cloud album includes the original image that is not saved in the local album, the thumbnail of the original image needs to be saved in the local album for the user to view.
上述步骤 208-209是对第三图片的处理过程, 也即是对云相册中包括而本地相册中未 包括的原始图片的处理过程。 通过步骤 208-209, 本地相册保存了云相册中所有原始图片 的缩略图。  The above steps 208-209 are the processing of the third picture, that is, the processing of the original picture included in the cloud album but not included in the local album. Through steps 208-209, the local album saves thumbnails of all the original images in the cloud album.
上述步骤 202-209是一次同步本地相册和云相册的过程。 当同步本地相册和云相册结 束时, 当前所有的原始图片均保存在云相册, 当前的本地相册中只保存了缩略图。  The above steps 202-209 are a process of synchronizing local albums and cloud albums at one time. When the local album and cloud album are synchronized, all current original images are saved in the cloud album, and only the thumbnails are saved in the current local album.
例如, 以云相册保存有 1000个原始图片, 本地相册有 500个原始图片, 每个原始图 片大小为 2.5M, 每个原始图片对应的缩略图大小为 250k为例进行说明, 如果采用背景技 术中的两种云相册技术, 可以得到以下结论:  For example, there are 1000 original pictures saved in the cloud album, 500 original pictures in the local album, each original picture size is 2.5M, and the thumbnail size corresponding to each original picture is 250k as an example, if using the background technology The two cloud photo album technologies can get the following conclusions:
(一) 如果采用终端设备缓存云相册中的原始图片对应的缩略图, 当浏览云相册时, 可以展示缓存的缩略图片的方式,则本地相册中 500个原始图片占用终端设备约 1.25G的 存储空间, 云相册中的 1000个原始图片对应的缩略图占用终端设备约 250M的存储空间, 合计占用终端设备约 1.5G的存储空间。  (1) If the terminal device caches the thumbnail corresponding to the original image in the cloud album, when browsing the cloud album, the cached thumbnail image can be displayed, and the 500 original images in the local album occupy the terminal device by about 1.25G. The storage space, the thumbnail corresponding to the 1000 original pictures in the cloud album occupies about 250M of storage space of the terminal device, and occupies about 1.5G of storage space of the terminal device.
(二)如果采用终端设备不对云相册进行缓存, 用户每次浏览云相册都需通过网络到 云相册下载原始图片的方式,本地相册中 500个原始图片占用终端设备约 1.25G的存储空 间, 合计占用终端设备约 1.25G的存储空间, 但浏览云相册需要实时下载云相册中的原始 图片, 耗费大量的流量和时间。  (2) If the terminal device does not cache the cloud photo album, each time the user browses the cloud photo album, the original image is downloaded through the network to the cloud photo album. The 500 original pictures in the local photo album occupy about 1.25G of the storage space of the terminal device, total It takes up about 1.25G of storage space on the terminal device, but browsing the cloud album requires real-time downloading of the original image in the cloud album, which consumes a lot of traffic and time.
而相比之下, 如果采用本公开实施例提供的方法, 本地相册中的 500个原始图片保存 在云相册后, 本地相册中仅保存该 500个原始图片对应的缩略图, 占用终端设备约 125M 的存储空间, 将云相册中原有的 1000个原始图片对应的缩略图保存在本地相册, 占用终 端设备约 250M的存储空间,合计占用终端设备约 375M的存储空间。与以上(一)、 (二) 两种技术方案比较, 本公开实施例的技术方案中占用的存储空间较少, 且浏览云相册时, 只需浏览本地相册中的缩略图, 无需耗费流量好时间下载云相册中的原始图片。 In contrast, if the method provided by the embodiment of the present disclosure is adopted, 500 original pictures in the local album are saved. After the cloud album, only the thumbnails corresponding to the 500 original images are saved in the local album, occupying about 125M of storage space of the terminal device, and the thumbnails corresponding to the original 1000 original images in the cloud album are saved in the local album, occupying the terminal The storage space of the device is about 250M, which occupies about 375M of storage space of the terminal device. Compared with the above two (1) and (2) technical solutions, the technical solution of the embodiment of the present disclosure occupies less storage space, and when browsing the cloud photo album, only browsing the thumbnails in the local photo album does not require a good flow of traffic. Time to download the original image in the cloud album.
可选地, 上述三种判断和处理过程为并列关系, 需要说明的是, 上述对第一图片的判 断和处理过程(步骤 203-205 ) 、 对第二图片的判断和处理过程(步骤 206-207)和对第三 图片的判断和处理过程 (步骤 208-209) 还可以为顺序关系。 另外, 在该同步过程中, 可 以只包括其中一种判断和处理过程, 或同时包括两种或三种判断和处理过程, 本公开实施 例对此不做限定。  Optionally, the foregoing three types of determining and processing are in a side-by-side relationship, and the foregoing determining and processing the first picture (steps 203-205), determining and processing the second picture (step 206-) 207) and the process of determining and processing the third picture (steps 208-209) may also be a sequential relationship. In addition, in the synchronization process, only one of the judgment and processing procedures may be included, or two or three kinds of judgment and processing procedures may be included in the embodiment, and the embodiment of the present disclosure does not limit this.
上述步骤中的三次判断过程事实上可以通过对云相册的图片信息和本地相册的图片 信息的一次比对获知, 通过比对云相册的图片信息和本地相册的图片信息, 获知云相册中 是否存在第二图片以及云相册中是否存在第三图片。而为了更清晰的说明本公开实施例的 可选方式, 在此仅以不同的判断过程为例进行说明。  The three judgment processes in the above steps can be obtained by comparing the picture information of the cloud album with the picture information of the local album. By comparing the picture information of the cloud album and the picture information of the local album, it is known whether the cloud album exists. Whether there is a third picture in the second picture and the cloud album. In order to more clearly illustrate the alternative manners of the embodiments of the present disclosure, only different determination processes are taken as an example for illustration.
进一步地, 作为一种可选的实施方式, 当需要对本地相册中的图片进行删除时, 该方 法还包括以下步骤: 当接收到对本地相册中任一图片的删除指令且该删除指令对应的图片 为缩略图时, 删除该删除指令指示的缩略图以及云相册中保存的该缩略图对应的原始图 片。在删除云相册中保存的该缩略图对应的原始图片时, 向云相册所在的云端服务器发送 删除指令,由该云端服务器根据该删除指令,将该缩略图对应的云相册中的原始图片删除。 其中, 该删除指令携带有待删除缩略图的图片信息, 根据该待删除缩略图的图片信息可以 确定云相册中与该缩略图对应的待删除原始图片。  Further, as an optional implementation manner, when it is required to delete a picture in the local album, the method further includes the following steps: when receiving a deletion instruction for any picture in the local album and corresponding to the deletion instruction When the picture is a thumbnail, the thumbnail indicated by the delete instruction and the original picture corresponding to the thumbnail saved in the cloud album are deleted. When the original image corresponding to the thumbnail saved in the cloud album is deleted, a deletion instruction is sent to the cloud server where the cloud album is located, and the cloud server deletes the original image in the cloud album corresponding to the thumbnail according to the deletion instruction. The deletion instruction carries the picture information of the thumbnail to be deleted, and the original picture to be deleted corresponding to the thumbnail in the cloud photo album can be determined according to the picture information of the thumbnail to be deleted.
进一步地, 作为另一种可选的实施方式, 当需要对本地相册中的图片进行删除时, 该 方法还包括以下步骤: 当接收到对本地相册中的原始图片的删除指令时, 从本地相册中删 除该删除指令对应的原始图片; 当接收到对本地相册中的缩略图的删除指令时, 仅仅删除 本地相册中的该缩略图, 保留云相册中该缩略图对应的原始图片。  Further, as another optional implementation manner, when it is required to delete a picture in a local album, the method further includes the following steps: when receiving a deletion instruction for the original picture in the local album, from the local album The original picture corresponding to the deletion instruction is deleted; when the deletion instruction for the thumbnail in the local album is received, only the thumbnail in the local album is deleted, and the original picture corresponding to the thumbnail in the cloud album is retained.
针对上述两种实施方式, 终端设备可以提供用于删除图片的功能选项供用户选择, 当 用户需要仅对本地相册中的缩略图进行删除操作时,或者当用户需要同时删除本地的缩略 图和云相册中的原始图片时, 都可通过点击相应的功能选项来设定, 本公开实施例对此不 做限定。  For the above two embodiments, the terminal device may provide a function option for deleting a picture for the user to select, when the user needs to delete only the thumbnail in the local album, or when the user needs to delete the local thumbnail and the cloud at the same time. The original image in the album can be set by clicking the corresponding function option, which is not limited by the embodiment of the present disclosure.
可选地, 当本地相册中包括第四图片时, 删除本地相册保存的第四图片; 第四图片为 浏览次数小于预设阈值的原始图片或缩略图。  Optionally, when the fourth picture is included in the local album, the fourth picture saved by the local album is deleted; the fourth picture is an original picture or a thumbnail whose browsing times are less than a preset threshold.
其中, 该预设阈值和统计该浏览次数的时间段可以为技术人员在开发时设置, 还可以 由用户在使用过程中自行设置或调整, 本公开实施例对此不作限定。  The preset threshold and the time period for counting the number of times of browsing may be set by the technician at the time of development, and may be set or adjusted by the user during the use, which is not limited by the embodiment of the disclosure.
例如, 当图片 FIG1 的浏览次数小于该预设阈值, 认为该图片不是经常浏览的照片, 可将从本地相册中删除该图片 FIG1, 以回收终端设备的部分存储空间。 可选地, 该预设阈值还可以为距离上次浏览该图片的时间长度; 此时, 第四图片可以 为距离上次浏览该图片的时间大于该预设阈值的图片。 该预设阈值还可以用其他量值定 义, 本公开实施例对此不做限定。 其中, 该图片可以为本地相册中的任一原始图片或缩略 图。 For example, when the number of views of the picture FIG1 is less than the preset threshold and the picture is not a frequently viewed photo, the picture FIG1 may be deleted from the local album to recover part of the storage space of the terminal device. Optionally, the preset threshold may be a length of time from the last time the picture is viewed; at this time, the fourth picture may be a picture that is longer than the preset threshold by the time when the picture was last viewed. The preset threshold may also be defined by other magnitudes, which are not limited by the embodiments of the present disclosure. The picture can be any original picture or thumbnail in the local album.
本公开实施例提供的方法, 通过将原始图片保存到云相册, 将原始图片的缩略图保存 到本地相册, 大大节省了本地的存储空间; 且通过本地相册可以浏览到云相册中原始图片 对应的缩略图,不用实时获取云相册中的原始图片,节省用户流量,浏览速度也大幅提高。 图 4是根据一示例性实施例示出的图片管理的装置的结构示意图。 参见图 4, 该装置 包括: 扫描模块 401和处理模块 402; 其中, 扫描模块 401用于在检测到云相册的登录状 态指示已登录时, 扫描云相册对应的本地相册; 扫描模块 401与处理模块 402连接, 处理 模块 402用于根据扫描的结果, 将原始图片保存在云相册中, 并将原始图片的缩略图保存 在本地相册中。  The method provided by the embodiment of the present disclosure saves the original image to the local album by saving the original image to the cloud album, which greatly saves the local storage space; and the local album can browse to the original image in the cloud album. Thumbnails, you don't need to get the original image in the cloud album in real time, saving user traffic and greatly improving the browsing speed. FIG. 4 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment. Referring to FIG. 4, the device includes: a scanning module 401 and a processing module 402. The scanning module 401 is configured to scan a local album corresponding to the cloud album when detecting that the login status of the cloud album is logged in; the scanning module 401 and the processing module 402 is connected, and the processing module 402 is configured to save the original picture in the cloud album according to the result of the scanning, and save the thumbnail of the original picture in the local album.
可选地, 图 5是根据一示例性实施例示出的图片管理的装置的结构示意图。参见图 5, 在图 4所示装置结构的基础上,该扫描模块 401包括:第一获取单元 4011和比较单元 4012; 其中, 第一获取单元 4011 用于在检测到云相册的登录状态指示已登录时, 获取云相册的 图片信息; 第一获取单元 4011与比较单元 4012连接, 比较单元 4012用于比较本地相册 的图片信息和云相册的图片信息。  Optionally, FIG. 5 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment. Referring to FIG. 5, on the basis of the device structure shown in FIG. 4, the scanning module 401 includes: a first obtaining unit 4011 and a comparing unit 4012. The first obtaining unit 4011 is configured to detect that the login status of the cloud album has been When logging in, the picture information of the cloud album is obtained; the first obtaining unit 4011 is connected to the comparing unit 4012, and the comparing unit 4012 is configured to compare the picture information of the local album and the picture information of the cloud album.
可选地, 图 6是根据一示例性实施例示出的图片管理的装置的结构示意图。参见图 6, 在图 4所示装置结构的基础上, 处理模块 402包括: 第一判断单元 4021、 上传单元 4022 和第一替换单元 4023 ; 其中, 第一判断单元 4021用于根据比较的结果, 判断本地相册中 是否存在第一图片, 该第一图片为云相册当前未保存的原始图片; 第一判断单元 4021与 上传单元 4022连接, 上传单元 4022用于在本地相册中存在第一图片时, 将第一图片上传 至该云相册; 上传单元 4022与第一替换单元 4023连接, 第一替换单元 4023用于将本地 相册中的第一图片替换为第一图片的缩略图。  Optionally, FIG. 6 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment. Referring to FIG. 6, on the basis of the device structure shown in FIG. 4, the processing module 402 includes: a first determining unit 4021, an uploading unit 4022, and a first replacing unit 4023; wherein, the first determining unit 4021 is configured to use, according to the result of the comparison, Determining whether there is a first picture in the local album, the first picture is an original picture that is not saved by the cloud album; the first determining unit 4021 is connected to the uploading unit 4022, and the uploading unit 4022 is configured to use the first picture in the local album. Uploading the first picture to the cloud album; the uploading unit 4022 is connected to the first replacing unit 4023, and the first replacing unit 4023 is configured to replace the first picture in the local album with the thumbnail of the first picture.
可选地, 图 7是根据一示例性实施例示出的图片管理的装置的结构示意图。参见图 7, 在图 4所示装置结构的基础上, 处理模块 402还包括: 第二判断单元 4024和第二替换单 元 4025 ; 其中, 第二判断单元 4024用于根据比较的结果, 判断云相册中是否存在第二图 片,第二图片为本地相册当前已保存的原始图片;第二判断单元 4024与第二替换单元 4025 连接, 第二替换单元 4025用于在云相册中存在第二图片, 将本地相册中的第二图片替换 为第二图片的缩略图。  Optionally, FIG. 7 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment. Referring to FIG. 7, on the basis of the device structure shown in FIG. 4, the processing module 402 further includes: a second determining unit 4024 and a second replacing unit 4025; wherein, the second determining unit 4024 is configured to determine the cloud album according to the comparison result. Whether there is a second picture in the second picture, the second picture is the original picture currently saved in the local album; the second determining unit 4024 is connected to the second replacing unit 4025, and the second replacing unit 4025 is configured to have the second picture in the cloud photo album, The second picture in the local album is replaced with the thumbnail of the second picture.
可选地, 图 8是根据一示例性实施例示出的图片管理的装置的结构示意图。参见图 8, 在图 4所示装置结构的基础上, 该处理模块 402还包括: 第三判断单元 4026和第二获取 单元 4027; 其中, 第三判断单元 4026用于根据比较的结果, 判断云相册中是否存在第三 图片, 第三图片为本地相册当前未保存的原始图片; 第三判断单元 4026和第二获取单元 4027连接, 第二获取单元 4027用于在云相册中存在第三图片时, 从云相册中获取第三图 片的缩略图并保存。 Optionally, FIG. 8 is a schematic structural diagram of an apparatus for picture management according to an exemplary embodiment. Referring to FIG. 8, on the basis of the device structure shown in FIG. 4, the processing module 402 further includes: a third determining unit 4026 and a second obtaining unit 4027; wherein the third determining unit 4026 is configured to determine the cloud according to the comparison result. Whether there is a third picture in the album, the third picture is an original picture that is not currently saved by the local album; the third determining unit 4026 and the second obtaining unit 4027 is connected, and the second obtaining unit 4027 is configured to obtain a thumbnail of the third picture from the cloud photo album and save the third picture when the third picture is present in the cloud photo album.
当然, 上述图 6至图 8所示的装置也可以基于图 5所示, 即在图 6至图 8中扫描模块 401包括第一获取单元 4011和比较单元 4012。  Of course, the apparatus shown in FIG. 6 to FIG. 8 above may also be based on FIG. 5, that is, the scanning module 401 includes the first obtaining unit 4011 and the comparing unit 4012 in FIGS. 6 to 8.
可选地, 扫描模块 401还可以在检测到该本地相册有新加入的原始图片, 且检测到云 相册的登录状态指示已登录时, 扫描云相册对应的本地相册。  Optionally, the scanning module 401 may also scan the local album corresponding to the cloud album when detecting that the local album has a newly added original image, and detecting that the login status of the cloud album indicates that the login has been logged in.
可选地, 图 9是根据一示例性实施例示出的图片管理的装置的结构示意图。参见图 9, 在图 4所示装置结构的基础上, 该装置包括: 显示模块 403 ; 其中, 显示模块 403与扫描 模块 401连接, 显示模块 403用于在检测到启动本地相册的触发事件时, 在本地相册中显 示本地相册中当前保存的原始图片和 /或缩略图。  Optionally, FIG. 9 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment. Referring to FIG. 9, on the basis of the device structure shown in FIG. 4, the device includes: a display module 403; wherein the display module 403 is connected to the scan module 401, and the display module 403 is configured to detect a trigger event of the local album when the local album is detected. The original pictures and/or thumbnails currently saved in the local album are displayed in the local album.
可选地, 显示模块 403在显示本地相册中当前保存的缩略图时, 还可以在缩略图的预 设区域显示云相册标识, 该云相册标识用于标示缩略图对应的原始图片已保存在云相册 中。  Optionally, when displaying the thumbnail currently saved in the local album, the display module 403 may further display a cloud album identifier in a preset area of the thumbnail, where the cloud album identifier is used to indicate that the original image corresponding to the thumbnail is saved in the cloud. In the album.
可选地, 图 10是根据一示例性实施例示出的图片管理的装置的结构示意图。 参见图 10, 在图 4所示装置结构的基础上, 该装置包括: 第一删除模块 404; 其中, 处理模块 402 与第一删除模块 404连接,第一删除模块 404用于在接收到对本地相册中的缩略图的删除 指令时, 删除该删除指令针对的缩略图, 并删除云相册中的对应的原始图片。  Optionally, FIG. 10 is a schematic structural diagram of an apparatus for managing a picture according to an exemplary embodiment. Referring to FIG. 10, on the basis of the device structure shown in FIG. 4, the device includes: a first deleting module 404; wherein, the processing module 402 is connected to the first deleting module 404, and the first deleting module 404 is configured to receive the local When the thumbnail of the thumbnail is deleted, the thumbnail for the delete command is deleted, and the corresponding original image in the cloud album is deleted.
可选地, 图 10所示的装置中还可以包括第二删除模块 405,用于在本地相册中包括第 四图片时, 删除本地相册保存的第四图片; 该第四图片为浏览次数小于预设阈值的原始图 片或缩略图。  Optionally, the apparatus shown in FIG. 10 may further include a second deleting module 405, configured to delete a fourth picture saved by the local album when the fourth picture is included in the local album; the fourth picture is less than the pre-view number Set the original image or thumbnail of the threshold.
需要说明的是: 上述实施例提供的图片管理的装置在管理图片时, 仅以上述各功能模 块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分配由不同的功能模块 完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。 另外, 上述实施例提供的图片管理的方法实施例属于同一构思, 其实现过程详见方法实施 例, 这里不再赘述。 图 11为根据一示例性实施例示出的终端设备的结构示意图, 该终端设备可以用于实 施上述实施例中提供的图片管理的方法。 具体来讲:  It should be noted that, in the management of the picture, the device for managing the picture in the foregoing embodiment is only illustrated by the division of the foregoing functional modules. In actual applications, the function allocation may be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the method embodiment of the picture management provided by the foregoing embodiment belongs to the same concept, and the implementation process thereof is described in detail in the method embodiment, and details are not described herein again. FIG. 11 is a schematic structural diagram of a terminal device according to an exemplary embodiment, and the terminal device may be used to implement the method for picture management provided in the foregoing embodiment. Specifically:
终端设备 1100可以包括 RF (Radio Frequency, 射频) 电路 110、 包括有一个或一个 以上计算机可读存储介质的存储器 120、 输入单元 130、 显示单元 140、 传感器 150、 音频 电路 160、 WiFi(wireless fidelity, 无线保真)模块 170、 包括有一个或者一个以上处理核心 的处理器 180、 以及电源 190等部件。本领域技术人员可以理解, 图 11中示出的终端设备 结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件, 或者不同的部件布置。 其中:  The terminal device 1100 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (wireless fidelity, The Wireless Fidelity module 170 includes a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the terminal device structure shown in Fig. 11 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
RF电路 110可用于收发信息或通话过程中, 信号的接收和发送, 特别地, 将基站的 下行信息接收后, 交由一个或者一个以上处理器 180处理; 另外, 将涉及上行的数据发送 给基站。 通常, RF电路 110包括但不限于天线、 至少一个放大器、 调谐器、 一个或多个 振荡器、 用户身份模块 (SIM) 卡、 收发信机、 耦合器、 LNA (Low Noise Amplifier, 低 噪声放大器) 、 双工器等。 此外, RF电路 110还可以通过无线通信与网络和其他设备通 信。该无线通信可以使用任一通信标准或协议,包括但不限于 GSM(Global System of Mobile communication, 全球移动通讯系统)、 GPRS(General Packet Radio Service, 通用分组无线 服务)、 CDMA(Code Division Multiple Access,码分多址)、 WCDMA(Wideband Code Division Multiple Access, 宽带码分多址;)、 LTE(Long Term Evolution,长期演进;)、 电子邮件、 SMS(Short Messaging Service, 短消息服务)等。 The RF circuit 110 can be used for transmitting and receiving information or during a call, receiving and transmitting signals, in particular, After the downlink information is received, it is processed by one or more processors 180; in addition, data related to the uplink is transmitted to the base station. Generally, the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc. In addition, RF circuitry 110 can also communicate with the network and other devices via wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access, Code division multiple access), WCDMA (Wideband Code Division Multiple Access;), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
存储器 120可用于存储软件程序以及模块,处理器 180通过运行存储在存储器 120的 软件程序以及模块, 从而执行各种功能应用以及数据处理。存储器 120可主要包括存储程 序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比 如声音播放功能、 图像播放功能等) 等; 存储数据区可存储根据终端设备 1100的使用所 创建的数据 (比如音频数据、 电话本等)等。 此外, 存储器 120可以包括高速随机存取存 储器, 还可以包括非易失性存储器, 例如至少一个磁盘存储器件、 闪存器件、 或其他易失 性固态存储器件。 相应地, 存储器 120还可以包括存储器控制器, 以提供处理器 180和输 入单元 130对存储器 120的访问。  The memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data (such as audio data, phone book, etc.) created by the use of the terminal device 1100. Moreover, memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
输入单元 130可用于接收输入的数字或字符信息, 以及产生与用户设置以及功能控制 有关的键盘、 鼠标、 操作杆、 光学或者轨迹球信号输入。 具体地, 输入单元 130可包括触 敏表面 131 以及其他输入设备 132。 触敏表面 131, 也称为触摸显示屏或者触控板, 可收 集用户在其上或附近的触摸操作(比如用户使用手指、 触笔等任何适合的物体或附件在触 敏表面 131上或在触敏表面 131附近的操作), 并根据预先设定的程式驱动相应的连接装 置。 可选的, 触敏表面 131可包括触摸检测装置和触摸控制器两个部分。 其中, 触摸检测 装置检测用户的触摸方位, 并检测触摸操作带来的信号, 将信号传送给触摸控制器; 触摸 控制器从触摸检测装置上接收触摸信息, 并将它转换成触点坐标, 再送给处理器 180, 并 能接收处理器 180发来的命令并加以执行。 此外, 可以采用电阻式、 电容式、 红外线以及 表面声波等多种类型实现触敏表面 131。 除了触敏表面 131, 输入单元 130还可以包括其 他输入设备 132。 具体地, 其他输入设备 132可以包括但不限于物理键盘、 功能键 (比如 音量控制按键、 开关按键等) 、 轨迹球、 鼠标、 操作杆等中的一种或多种。  Input unit 130 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 130 can include touch sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 131 may include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information The processor 180 is provided and can receive commands from the processor 180 and execute them. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元 140可用于显示由用户输入的信息或提供给用户的信息以及终端设备 1100 的各种图形用户接口, 这些图形用户接口可以由图形、 文本、 图标、 视频和其任意组合来 构成。 显示单元 140可包括显示面板 141, 可选的, 可以采用 LCD(Liquid Crystal Display, 液晶显示器)、 OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板 Display unit 140 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of terminal device 1100, which can be comprised of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141. Alternatively, the display panel may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
141。进一步的, 触敏表面 131可覆盖显示面板 141, 当触敏表面 131检测到在其上或附近 的触摸操作后, 传送给处理器 180以确定触摸事件的类型, 随后处理器 180根据触摸事件 的类型在显示面板 141上提供相应的视觉输出。 虽然在图 11中, 触敏表面 131与显示面 板 141是作为两个独立的部件来实现输入和输入功能, 但是在某些实施例中, 可以将触敏 表面 131与显示面板 141集成而实现输入和输出功能。 141. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141. Although in FIG. 11, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
终端设备 1100还可包括至少一种传感器 150, 比如光传感器、运动传感器以及其他传 感器。 具体地, 光传感器可包括环境光传感器及接近传感器, 其中, 环境光传感器可根据 环境光线的明暗来调节显示面板 141的亮度, 接近传感器可在终端设备 1100移动到耳边 时, 关闭显示面板 141 和 /或背光。 作为运动传感器的一种, 重力加速度传感器可检测各 个方向上(一般为三轴)加速度的大小, 静止时可检测出重力的大小及方向, 可用于识别 手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比 如计步器、 敲击) 等; 至于终端设备 1100还可配置的陀螺仪、 气压计、 湿度计、 温度计、 红外线传感器等其他传感器, 在此不再赘述。  Terminal device 1100 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal device 1100 moves to the ear. And / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal device 1100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
音频电路 160、扬声器 161,传声器 162可提供用户与终端设备 1100之间的音频接口。 音频电路 160可将接收到的音频数据转换后的电信号, 传输到扬声器 161, 由扬声器 161 转换为声音信号输出; 另一方面, 传声器 162将收集的声音信号转换为电信号, 由音频电 路 160接收后转换为音频数据, 再将音频数据输出处理器 180处理后, 经 RF电路 110以 发送给比如另一终端设备, 或者将音频数据输出至存储器 120以便进一步处理。 音频电路 160还可能包括耳塞插孔, 以提供外设耳机与终端设备 1100的通信。  The audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the terminal device 1100. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal device, for example, by the RF circuit 110, or outputted to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 1100.
WiFi属于短距离无线传输技术, 终端设备 1100通过 WiFi模块 170可以帮助用户收 发电子邮件、 浏览网页和访问流式媒体等, 它为用户提供了无线的宽带互联网访问。 虽然 图 11示出了 WiFi模块 170, 但是可以理解的是, 其并不属于终端设备 1100的必须构成, 完全可以根据需要在不改变发明的本质的范围内而省略。  WiFi is a short-range wireless transmission technology, and the terminal device 1100 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides users with wireless broadband Internet access. Although FIG. 11 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal device 1100, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器 180是终端设备 1100的控制中心, 利用各种接口和线路连接整个手机的各个 部分, 通过运行或执行存储在存储器 120 内的软件程序和 /或模块, 以及调用存储在存储 器 120内的数据, 执行终端设备 1100的各种功能和处理数据, 从而对手机进行整体监控。 可选的, 处理器 180可包括一个或多个处理核心; 优选的, 处理器 180可集成应用处理器 和调制解调处理器, 其中, 应用处理器主要处理操作系统、 用户界面和应用程序等, 调制 解调处理器主要处理无线通信。可以理解的是, 上述调制解调处理器也可以不集成到处理 器 180中。  The processor 180 is a control center of the terminal device 1100 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120. The various functions and processing data of the terminal device 1100 are executed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores. Preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 180.
终端设备 1100还包括给各个部件供电的电源 190 (比如电池), 优选的, 电源可以通 过电源管理系统与处理器 180逻辑相连, 从而通过电源管理系统实现管理充电、 放电、 以 及功耗管理等功能。电源 190还可以包括一个或一个以上的直流或交流电源、再充电系统、 电源故障检测电路、 电源转换器或者逆变器、 电源状态指示器等任意组件。  The terminal device 1100 further includes a power source 190 (such as a battery) for supplying power to the various components. Preferably, the power source can be logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system. . Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出, 终端设备 1100还可以包括摄像头、 蓝牙模块等, 在此不再赘述。 具体 在本实施例中, 终端设备的显示单元是触摸屏显示器, 也即是,  Although not shown, the terminal device 1100 may further include a camera, a Bluetooth module, and the like, and details are not described herein again. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, that is,
该终端设备包括: 一个或多个处理器; 存储器; 和一个或多个模块, 该一个或多个模 块存储于该存储器中并被配置成由该一个或多个处理器执行,该一个或多个模块具有如下 功能: 检测到云相册的登录状态指示已登录时, 扫描云相册对应的本地相册; 根据扫描的 结果, 将原始图片保存在云相册中, 并将原始图片的缩略图保存在本地相册中。 The terminal device includes: one or more processors; a memory; and one or more modules, the one or more modules The block is stored in the memory and configured to be executed by the one or more processors, the one or more modules having the following functions: detecting that the login status of the cloud album indicates that the local album corresponding to the cloud album is scanned when the login is started; Based on the results of the scan, save the original image in a cloud album and save the thumbnail of the original image in a local album.
可选地, 该一个或多个模块还具有如下功能: 获取云相册的图片信息;  Optionally, the one or more modules further have the following functions: acquiring picture information of the cloud album;
比较本地相册的图片信息和云相册的图片信息。  Compare the picture information of the local album with the picture information of the cloud album.
可选地, 该一个或多个模块还具有如下功能: 根据比较的结果, 判断本地相册中是否 存在第一图片, 第一图片为云相册当前未保存的原始图片;  Optionally, the one or more modules further have the following functions: determining, according to a result of the comparison, whether a first picture exists in the local album, where the first picture is an original picture that is not currently saved by the cloud album;
如果存在第一图片, 则将第一图片上传至云相册;  If the first picture exists, upload the first picture to the cloud album;
本地相册中的第一图片替换为第一图片的缩略图 ( Replace the first image in the local album with the thumbnail of the first image (
可选地, 该一个或多个模块还具有如下功能: 根据比较的结果, 判断云相册中是否存 在第二图片, 第二图片为本地相册当前已保存的原始图片;  Optionally, the one or more modules further have the following functions: determining, according to a result of the comparison, whether a second picture exists in the cloud album, and the second picture is an original picture that is currently saved by the local album;
如果存在第二图片, 将本地相册中的第二图片替换为第二图片的缩略图。  If there is a second picture, the second picture in the local album is replaced with the thumbnail of the second picture.
可选地, 该一个或多个模块还具有如下功能: 根据比较的结果, 判断云相册中是否存 在第三图片, 第三图片为本地相册当前未保存的原始图片;  Optionally, the one or more modules further have the following functions: determining, according to the comparison result, whether a third picture exists in the cloud album, and the third picture is an original picture that is not currently saved by the local album;
如果存在第三图片, 从云相册中获取第三图片的缩略图并保存。  If there is a third picture, the thumbnail of the third picture is obtained from the cloud album and saved.
可选地, 该一个或多个模块还具有如下功能: 检测到本地相册有新加入的原始图片, 且检测到云相册的登录状态指示已登录时, 扫描云相册对应的本地相册。  Optionally, the one or more modules further have the following functions: detecting that the local album has a newly added original picture, and detecting that the login status of the cloud album indicates that the local album corresponding to the cloud album is scanned when the login status is logged in.
可选地, 该一个或多个模块还具有如下功能: 检测到启动本地相册的触发事件时, 在 本地相册中显示本地相册中当前保存的原始图片和 /或缩略图。  Optionally, the one or more modules further have the following functions: When a trigger event of starting a local album is detected, the original picture and/or thumbnail currently saved in the local album is displayed in the local album.
可选地, 该一个或多个模块还具有如下功能: 显示本地相册中当前保存的缩略图, 并 在缩略图的预设区域显示云相册标识,该云相册标识用于标示缩略图对应的原始图片已保 存在云相册中。  Optionally, the one or more modules further have the following functions: displaying a currently saved thumbnail in the local album, and displaying a cloud album identifier in a preset area of the thumbnail, the cloud album identifier being used to indicate the original corresponding to the thumbnail The image has been saved in the cloud album.
可选地, 该一个或多个模块还具有如下功能: 当接收到对本地相册中的缩略图的删除 指令时, 删除该删除指令针对的缩略图, 并删除云相册中的对应的原始图片。  Optionally, the one or more modules further have the following functions: when a delete instruction for the thumbnail in the local album is received, the thumbnail for the delete instruction is deleted, and the corresponding original picture in the cloud album is deleted.
可选地, 该一个或多个模块还具有如下功能: 当本地相册中包括第四图片时, 删除本 地相册保存的第四图片; 该第四图片为浏览次数小于预设阈值的原始图片或缩略图。  Optionally, the one or more modules further have the following functions: when the fourth album is included in the local album, deleting the fourth image saved by the local album; the fourth image is an original image or a thumbnail whose browsing times are less than a preset threshold Sketch map.
需要说明的是, 本公开实施例中的模块指的是处理器可读及可执行的指令。  It should be noted that the modules in the embodiments of the present disclosure refer to instructions readable and executable by the processor.
上述所有可选技术方案, 可以采用任意结合形成本公开实施例, 在此不再一一赘述。 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完 成, 也可以通过程序来指令相关的硬件完成, 该的程序可以存储于一种计算机可读存储介 质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。  All the above optional technical solutions may be used in any combination to form an embodiment of the present disclosure, and details are not described herein again. A person skilled in the art can understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium to which it is obtained may be a read only memory, a magnetic disk or an optical disk or the like.
以上该仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则之 内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the scope of the present invention. within.

Claims

权利要求 Rights request
1、 一种图片管理的方法, 其特征在于, 所述方法包括: 1. A method of image management, characterized in that the method includes:
检测到云相册的登录状态指示已登录时, 扫描所述云相册对应的本地相册; 根据所述扫描的结果,将原始图片保存在所述云相册中,并将所述原始图片的缩略图 保存在所述本地相册中。 When it is detected that the login status of the cloud photo album indicates that you have logged in, scan the local photo album corresponding to the cloud photo album; according to the result of the scan, save the original picture in the cloud photo album, and save the thumbnail of the original picture in said local photo album.
2、 根据权利要求 1所述的方法, 其特征在于, 所述检测到云相册的登录状态指示已 登录时, 扫描所述云相册对应的本地相册, 包括: 2. The method according to claim 1, characterized in that, when it is detected that the login status of the cloud photo album indicates that the cloud photo album has been logged in, scanning the local photo album corresponding to the cloud photo album includes:
检测到云相册的登录状态指示已登录时, 获取所述云相册的图片信息; When detecting that the login status of the cloud photo album indicates that you have logged in, obtain the picture information of the cloud photo album;
比较所述本地相册的图片信息和所述云相册的图片信息。 Compare the picture information of the local photo album and the picture information of the cloud photo album.
3、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述扫描的结果, 将原始图 片保存在所述云相册中, 并将原始图片的缩略图保存在所述本地相册中, 包括: 3. The method according to claim 2, characterized in that, according to the scanning result, the original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album, include:
根据所述比较的结果,判断所述本地相册中是否存在第一图片,所述第一图片为所述 云相册当前未保存的原始图片; According to the result of the comparison, determine whether there is a first picture in the local album, and the first picture is an original picture that is not currently saved in the cloud album;
如果存在所述第一图片, 则将所述第一图片上传至所述云相册; If the first picture exists, upload the first picture to the cloud album;
将所述本地相册中的所述第一图片替换为所述第一图片的缩略图。 Replace the first picture in the local photo album with the thumbnail of the first picture.
4、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述扫描的结果, 将原始图 片保存在所述云相册中, 并将原始图片的缩略图保存在所述本地相册中, 包括: 4. The method according to claim 2, characterized in that, according to the scanning result, the original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album, include:
根据所述比较的结果,判断所述云相册中是否存在第二图片,所述第二图片为所述本 地相册当前已保存的原始图片; According to the result of the comparison, determine whether there is a second picture in the cloud album, and the second picture is the original picture currently saved in the local album;
如果存在所述第二图片,将所述本地相册中的所述第二图片替换为所述第二图片的缩 略图。 If the second picture exists, replace the second picture in the local album with the thumbnail of the second picture.
5、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述扫描的结果, 将原始图 片保存在所述云相册中, 并将原始图片的缩略图保存在所述本地相册中, 包括: 5. The method according to claim 2, characterized in that, according to the scanning result, the original picture is saved in the cloud album, and the thumbnail of the original picture is saved in the local album, include:
根据所述比较的结果,判断所述云相册中是否存在第三图片,所述第三图片为所述本 地相册当前未保存的原始图片; According to the result of the comparison, determine whether there is a third picture in the cloud album, and the third picture is an original picture that is not currently saved in the local album;
如果存在所述第三图片, 从所述云相册中获取所述第三图片的缩略图并保存。 If the third picture exists, obtain the thumbnail of the third picture from the cloud album and save it.
6、 根据权利要求 1所述的方法, 其特征在于, 检测到云相册的登录状态指示已登录 时, 扫描所述云相册对应的本地相册包括: 6. The method according to claim 1, wherein when it is detected that the login status of the cloud photo album indicates that the cloud photo album has been logged in, scanning the local photo album corresponding to the cloud photo album includes:
当检测到所述本地相册有新加入的原始图片,且检测到所述云相册的登录状态指示已 登录时, 扫描所述云相册对应的本地相册。 When it is detected that the local photo album has a newly added original picture, and it is detected that the login status of the cloud photo album indicates that the cloud photo album has been logged in, the local photo album corresponding to the cloud photo album is scanned.
7、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 7. The method according to claim 1, characterized in that, the method further includes:
检测到启动所述本地相册的触发事件时,在所述本地相册中显示所述本地相册中当前 保存的原始图片和 /或缩略图。 When a trigger event that starts the local photo album is detected, the original pictures and/or thumbnails currently saved in the local photo album are displayed in the local photo album.
8、 根据权利要求 7所述的方法, 其特征在于, 所述在所述本地相册中显示所述本地 相册中当前保存的缩略图, 包括: 显示所述本地相册中当前保存的缩略图, 并在所述缩略图的预设区域显示云相册标 识, 所述云相册标识用于标示所述缩略图对应的原始图片已保存在所述云相册中。 8. The method according to claim 7, wherein displaying the thumbnails currently saved in the local album in the local album includes: Display the thumbnails currently saved in the local album, and display a cloud album logo in a preset area of the thumbnail. The cloud album logo is used to indicate that the original picture corresponding to the thumbnail has been saved in the cloud album. middle.
9、 根据权利要求 1至 8任一项所述的方法, 其特征在于, 所述方法还包括: 当接收到对所述本地相册中的缩略图的删除指令时, 删除所述删除指令针对的缩略 图, 并删除所述云相册中的对应的原始图片。 9. The method according to any one of claims 1 to 8, characterized in that, the method further includes: when receiving a deletion instruction for a thumbnail in the local album, deleting the thumbnail for which the deletion instruction is directed. thumbnail, and delete the corresponding original picture in the cloud album.
10、 根据权利要求 1至 8任一项所述的方法, 其特征在于, 所述方法还包括: 当所述本地相册中包括第四图片时,删除所述本地相册保存的第四图片;所述第四图 片为浏览次数小于预设阈值的原始图片或缩略图。 10. The method according to any one of claims 1 to 8, characterized in that, the method further includes: when the local photo album includes a fourth picture, deleting the fourth picture saved in the local photo album; The fourth picture is an original picture or a thumbnail whose number of views is less than the preset threshold.
11、 一种图片管理的装置, 其特征在于, 所述装置包括- 扫描模块,用于在检测到云相册的登录状态指示已登录时,扫描所述云相册对应的本 地相册; 11. A device for picture management, characterized in that the device includes a scanning module for scanning the local photo album corresponding to the cloud photo album when it is detected that the login status of the cloud photo album indicates that the cloud photo album has been logged in;
处理模块, 用于根据所述扫描的结果, 将原始图片保存在所述云相册中, 并将所述原 始图片的缩略图保存在所述本地相册中。 A processing module, configured to save the original picture in the cloud album according to the scanning result, and save the thumbnail of the original picture in the local album.
12、 根据权利要求 11所述的装置, 其特征在于, 所述扫描模块包括: 12. The device according to claim 11, characterized in that the scanning module includes:
第一获取单元,用于在检测到云相册的登录状态指示已登录时,获取所述云相册的图 片信息; The first acquisition unit is used to acquire the picture information of the cloud album when detecting that the login status of the cloud album indicates that the cloud album has been logged in;
比较单元, 用于比较所述本地相册的图片信息和所述云相册的图片信息。 A comparison unit configured to compare the picture information of the local photo album with the picture information of the cloud photo album.
13、 根据权利要求 12所述的装置, 其特征在于, 所述处理模块包括: 13. The device according to claim 12, characterized in that the processing module includes:
第一判断单元, 用于根据所述比较的结果, 判断所述本地相册中是否存在第一图片, 所述第一图片为所述云相册当前未保存的原始图片; A first judgment unit, configured to judge whether there is a first picture in the local album according to the comparison result, where the first picture is an original picture that is not currently saved in the cloud album;
上传单元, 用于在存在所述第一图片时, 则将所述第一图片上传至所述云相册; 第一替换单元, 用于将所述本地相册中的所述第一图片替换为所述第一图片的缩略 图。 The upload unit is used to upload the first picture to the cloud album when the first picture exists; the first replacement unit is used to replace the first picture in the local album with the A thumbnail of the first image.
14、 根据权利要求 12所述的装置, 其特征在于, 所述处理模块包括: 14. The device according to claim 12, characterized in that the processing module includes:
第二判断单元, 用于根据所述比较的结果, 判断所述云相册中是否存在第二图片, 所 述第二图片为所述本地相册当前已保存的原始图片; The second judgment unit is used to judge whether there is a second picture in the cloud album according to the comparison result, and the second picture is the original picture currently saved in the local album;
第二替换单元,用于在存在所述第二图片时,将所述本地相册中的所述第二图片替换 为所述第二图片的缩略图。 A second replacement unit, configured to replace the second picture in the local album with a thumbnail of the second picture when the second picture exists.
15、 根据权利要求 12所述的装置, 其特征在于, 所述处理模块包括: 15. The device according to claim 12, characterized in that the processing module includes:
第三判断单元, 用于根据所述比较的结果, 判断所述云相册中是否存在第三图片, 所 述第三图片为所述本地相册当前未保存的原始图片; A third judgment unit, configured to judge whether there is a third picture in the cloud album based on the comparison result, where the third picture is an original picture that is not currently saved in the local album;
第二获取单元,用于在存在所述第三图片时,从所述云相册中获取所述第三图片的缩 略图并保存。 The second obtaining unit is configured to obtain the thumbnail of the third picture from the cloud album and save it when the third picture exists.
16、 根据权利要求 11所述的装置, 其特征在于, 所述扫描模块在检测到所述本地相 册有新加入的原始图片,且检测到所述云相册的登录状态指示已登录时,扫描所述云相册 对应的本地相册。 16. The device according to claim 11, wherein when the scanning module detects that there are newly added original pictures in the local photo album and detects that the login status of the cloud photo album indicates that the cloud photo album has been logged in, it scans all the original pictures. Shuyun photo album The corresponding local photo album.
17、 根据权利要求 11所述的装置, 其特征在于, 所述装置还包括: 17. The device according to claim 11, characterized in that, the device further includes:
显示模块,用于在检测到启动所述本地相册的触发事件时,在所述本地相册中显示所 述本地相册中当前保存的原始图片和 /或缩略图。 A display module, configured to display the original pictures and/or thumbnails currently saved in the local photo album in the local photo album when a trigger event that starts the local photo album is detected.
18、 根据权利要求 17所述的装置, 其特征在于, 所述显示模块在显示所述本地相册 中当前保存的缩略图时,还在所述缩略图的预设区域显示云相册标识,所述云相册标识用 于标示所述缩略图对应的原始图片已保存在所述云相册中。 18. The device according to claim 17, wherein when the display module displays the thumbnails currently saved in the local album, it also displays a cloud album logo in a preset area of the thumbnails, and the The cloud album identifier is used to indicate that the original picture corresponding to the thumbnail image has been saved in the cloud album.
19、 根据权利要求 11至 18任一项所述的装置, 其特征在于, 所述装置还包括: 第一删除模块,用于在接收到对所述本地相册中的缩略图的删除指令时,删除所述删 除指令针对的缩略图, 并删除所述云相册中的对应的原始图片。 19. The device according to any one of claims 11 to 18, characterized in that, the device further includes: a first deletion module, configured to, when receiving a deletion instruction for a thumbnail in the local album, Delete the thumbnail targeted by the deletion instruction, and delete the corresponding original picture in the cloud album.
20、 根据权利要求 11至 18任一项所述的装置, 其特征在于, 所述装置还包括: 第二删除模块,用于在所述本地相册中包括第四图片时,删除所述本地相册保存的第 四图片; 所述第四图片为浏览次数小于预设阈值的原始图片或缩略图。 20. The device according to any one of claims 11 to 18, characterized in that, the device further includes: a second deletion module, configured to delete the local photo album when the fourth picture is included in the local photo album. The fourth saved picture; The fourth picture is an original picture or a thumbnail whose number of views is less than a preset threshold.
21、 一种终端设备, 其特征在于, 所述终端设备包括: 21. A terminal device, characterized in that the terminal device includes:
一个或多个处理器; one or more processors;
存储器; 和 memory; and
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 所述一个或多个模块具有如下功能: One or more modules, the one or more modules are stored in the memory and configured to be executed by the one or more processors, the one or more modules have the following functions:
检测到云相册的登录状态指示已登录时, 扫描所述云相册对应的本地相册; 根据所述扫描的结果,将原始图片保存在所述云相册中,并将所述原始图片的缩略图 保存在所述本地相册中。 When it is detected that the login status of the cloud photo album indicates that you have logged in, scan the local photo album corresponding to the cloud photo album; according to the result of the scan, save the original picture in the cloud photo album, and save the thumbnail of the original picture in said local photo album.
PCT/CN2014/076106 2013-08-21 2014-04-24 Image management method, apparatus, and terminal device WO2015024390A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2013103676416A CN103458016A (en) 2013-08-21 2013-08-21 Method and device for picture management and terminal device
CN201310367641.6 2013-08-21

Publications (1)

Publication Number Publication Date
WO2015024390A1 true WO2015024390A1 (en) 2015-02-26

Family

ID=49739958

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076106 WO2015024390A1 (en) 2013-08-21 2014-04-24 Image management method, apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN103458016A (en)
WO (1) WO2015024390A1 (en)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458016A (en) * 2013-08-21 2013-12-18 小米科技有限责任公司 Method and device for picture management and terminal device
CN103995706A (en) * 2014-06-06 2014-08-20 广州金山网络科技有限公司 Method and device for displaying picture thumbnail
CN104053016B (en) * 2014-06-24 2018-09-28 深圳市江波龙电子有限公司 A kind of image preview method and device
CN105335047B (en) * 2014-08-14 2024-05-28 小米科技有限责任公司 Picture display method and device
CN104348832A (en) * 2014-10-10 2015-02-11 叶春林 Cloud base structure of mobile phone or computer
CN104317534A (en) * 2014-10-29 2015-01-28 小米科技有限责任公司 Method and device for cleaning data storage space
CN104540000B (en) * 2014-12-04 2017-10-17 广东欧珀移动通信有限公司 The generation method and terminal of a kind of dynamic thumbnail
CN105808586B (en) * 2014-12-29 2021-04-06 北京奇虎科技有限公司 Picture data processing method and device
CN106332556B (en) * 2015-04-30 2021-11-19 华为技术有限公司 Method and terminal for transmitting cloud files and cloud server
CN104834713A (en) * 2015-05-08 2015-08-12 武汉网幂科技有限公司 Method and system for storing and transmitting image data of terminal equipment
CN105007412A (en) * 2015-07-02 2015-10-28 成都亿邻通科技有限公司 Photo storage method for mobile terminal
CN105740455B (en) * 2016-02-04 2019-09-17 北京金山安全软件有限公司 Picture deleting method and device and electronic equipment
CN105760490B (en) * 2016-02-17 2019-07-23 北京金山安全软件有限公司 Resource storage method and device and electronic equipment
CN105868353A (en) * 2016-03-29 2016-08-17 努比亚技术有限公司 Photograph clearing method and terminal
CN106649472B (en) * 2016-09-27 2020-04-17 维沃移动通信有限公司 Picture management method and mobile terminal
CN106649510A (en) * 2016-10-12 2017-05-10 珠海市魅族科技有限公司 Method for editing cloud photo album and mobile terminal
CN106933975B (en) * 2017-02-14 2019-09-17 北京安云世纪科技有限公司 A kind of display methods of media file, device and mobile terminal
CN106874464A (en) * 2017-02-15 2017-06-20 济南浪潮高新科技投资发展有限公司 A kind of picture access method, device, computer-readable recording medium and storage control
CN107025059B (en) * 2017-04-20 2020-12-11 三星电子(中国)研发中心 Thumbnail viewing method and device
CN107169060A (en) * 2017-04-28 2017-09-15 北京小米移动软件有限公司 Image processing method, device and terminal in terminal
CN107277117A (en) 2017-05-27 2017-10-20 广东欧珀移动通信有限公司 Image synchronization method, device, server, storage medium and terminal
CN108170787A (en) * 2017-12-27 2018-06-15 努比亚技术有限公司 A kind of image file delet method, mobile terminal and computer readable storage medium
CN108573044A (en) * 2018-04-16 2018-09-25 上海与德科技有限公司 A kind of photograph album processing method, device, terminal and storage medium
CN109739813A (en) * 2018-12-27 2019-05-10 深圳小辣椒科技有限责任公司 The method and cloud photograph album platform of cloud photograph album deletion photo
CN109710573B (en) * 2018-12-29 2021-03-30 广州易宝信息技术有限公司 Electronic archive informatization management system
CN112449099B (en) * 2019-08-30 2022-08-19 华为技术有限公司 Image processing method, electronic equipment and cloud server
CN112416239B (en) * 2020-12-04 2023-06-16 网易(杭州)网络有限公司 Media object interaction method and device in media library and electronic equipment
CN113590027B (en) * 2021-06-30 2022-10-11 展讯半导体(南京)有限公司 Data storage method, data acquisition method, system, device and medium
CN115098026B (en) * 2022-06-27 2024-04-30 四三九九网络股份有限公司 Photo album picture non-duplication saving method based on iOS system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100100531A1 (en) * 2008-10-20 2010-04-22 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd Electronic device and method for managing medias
CN101751445A (en) * 2008-12-16 2010-06-23 鸿富锦精密工业(深圳)有限公司 Picture management system
CN102760131A (en) * 2011-04-28 2012-10-31 腾讯科技(深圳)有限公司 Exhibition method and system of network album
CN102761612A (en) * 2012-06-29 2012-10-31 惠州Tcl移动通信有限公司 Method and system for photographing and automatic uploading based on wireless communication equipment
CN102841896A (en) * 2011-06-22 2012-12-26 腾讯科技(深圳)有限公司 Mobile terminal picture and text information displaying method and system and mobile terminal
CN103458016A (en) * 2013-08-21 2013-12-18 小米科技有限责任公司 Method and device for picture management and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202261557U (en) * 2011-06-27 2012-05-30 谈天霆 System of utilizing cloud storage via wireless WIFI technology by digital camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100100531A1 (en) * 2008-10-20 2010-04-22 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd Electronic device and method for managing medias
CN101751445A (en) * 2008-12-16 2010-06-23 鸿富锦精密工业(深圳)有限公司 Picture management system
CN102760131A (en) * 2011-04-28 2012-10-31 腾讯科技(深圳)有限公司 Exhibition method and system of network album
CN102841896A (en) * 2011-06-22 2012-12-26 腾讯科技(深圳)有限公司 Mobile terminal picture and text information displaying method and system and mobile terminal
CN102761612A (en) * 2012-06-29 2012-10-31 惠州Tcl移动通信有限公司 Method and system for photographing and automatic uploading based on wireless communication equipment
CN103458016A (en) * 2013-08-21 2013-12-18 小米科技有限责任公司 Method and device for picture management and terminal device

Also Published As

Publication number Publication date
CN103458016A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
WO2015024390A1 (en) Image management method, apparatus, and terminal device
US10635449B2 (en) Method and apparatus for running game client
JP6511541B2 (en) Message updating method, apparatus and terminal
WO2019137429A1 (en) Picture processing method and mobile terminal
WO2018010512A1 (en) Method and device for uploading phtograph file
CN108566332B (en) Instant messaging information processing method, device and storage medium
CN103327189B (en) Method and device for uploading, browsing and deleting pictures
CN109597556B (en) Screen capturing method and terminal
WO2017088377A1 (en) Message revoking method and apparatus thereof
TWI512525B (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium
US11481357B2 (en) Album display method, electronic device, and storage medium
US20140365892A1 (en) Method, apparatus and computer readable storage medium for displaying video preview picture
WO2015035796A1 (en) Tabletop display method, apparatus, and terminal
WO2019101043A1 (en) Image processing method, terminal, computer storage medium and computer program
WO2015131768A1 (en) Video processing method, apparatus and system
CN107589901A (en) Page display method, device, terminal and computer-readable recording medium
US20140351212A1 (en) Method and apparatus for processing reading history
WO2014190830A1 (en) Sound recording synchronization method, apparatus, and device
WO2017050090A1 (en) Method and device for generating gif file, and computer readable storage medium
WO2019076377A1 (en) Image viewing method and mobile terminal
WO2015014135A1 (en) Mouse pointer control method and apparatus, and terminal device
WO2018161788A1 (en) Multimedia data sharing method and device
CN107229618A (en) A kind of method and device for showing the page
CN107423050A (en) A kind of method and apparatus for penetrating operation
CN107770449B (en) Continuous shooting method, electronic device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14837968

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14837968

Country of ref document: EP

Kind code of ref document: A1