WO2016101757A1 - 一种基于移动设备的图片处理方法和装置 - Google Patents

一种基于移动设备的图片处理方法和装置 Download PDF

Info

Publication number
WO2016101757A1
WO2016101757A1 PCT/CN2015/095503 CN2015095503W WO2016101757A1 WO 2016101757 A1 WO2016101757 A1 WO 2016101757A1 CN 2015095503 W CN2015095503 W CN 2015095503W WO 2016101757 A1 WO2016101757 A1 WO 2016101757A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
mobile device
original
original picture
compressed
Prior art date
Application number
PCT/CN2015/095503
Other languages
English (en)
French (fr)
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 WO2016101757A1 publication Critical patent/WO2016101757A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files

Definitions

  • the present invention relates to the field of mobile device technologies, and in particular, to a mobile device-based image processing method and apparatus.
  • the present invention has been made in order to provide a mobile device-based picture processing method and apparatus that overcomes the above problems or at least partially solves the above problems.
  • a mobile device-based image processing method including:
  • a computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform said mobile device based Image processing method.
  • a mobile device-based picture processing apparatus includes:
  • a compression processing module configured to perform compression processing on the original picture to obtain a corresponding compressed picture; wherein, the quality parameter of the compressed picture conforms to a preset does not affect the display condition;
  • And deleting the module configured to delete the original picture from the mobile device, and retain the compressed picture corresponding to the original picture at a corresponding location.
  • a mobile device-based image processing method and apparatus may perform compression processing on the original picture to obtain a corresponding compressed picture, and delete the original picture from the mobile device, and correspondingly The location retains the compressed picture corresponding to the original picture; since the quality parameter of the compressed picture conforms to the preset does not affect the display condition, the volume of the picture can be reduced while ensuring the display quality of the compressed picture, thereby saving The storage space of the mobile device.
  • FIG. 1 is a flow chart showing the steps of a mobile device-based image processing method according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing the steps of a mobile device-based image processing method according to an embodiment of the present invention
  • FIG. 3 is a flow chart showing the steps of a mobile device-based image processing method according to an embodiment of the present invention
  • FIG. 4 is a flow chart showing the steps of a mobile device-based picture processing method according to an example of the present invention.
  • FIG. 5 is a schematic structural diagram of a mobile device-based image processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a mobile device-based image processing apparatus according to an embodiment of the present invention.
  • Figure 7 shows schematically a block diagram of a computing device for performing the method according to the invention
  • Fig. 8 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 1 is a flow chart showing the steps of a mobile device-based image processing method according to an embodiment of the present invention. Specifically, the method may include the following steps:
  • Step 101 Determine an original picture to be processed in the mobile device.
  • the mobile device may be a variety of portable devices, such as a mobile phone, a tablet computer, a digital camera, and the like.
  • portable devices such as a mobile phone, a tablet computer, a digital camera, and the like.
  • the embodiment of the present invention mainly uses a mobile phone as an example, and other mobile devices are mutually Just refer to it.
  • the original picture can be used to represent various pictures that are original and not compressed in the mobile device.
  • the first solution of the saving of the storage space generated by the user for the one or more original pictures is determined by the first method, and the original picture corresponding to the first instruction is used as the original picture to be processed in the mobile device.
  • the user may be provided with a selection interface for selecting an original picture to be processed: when the user browses the picture on the mobile device, the user may display the thumbnail of each original picture or each original picture. Corresponding check box for saving storage space, the user can use this check box to determine whether to select the corresponding original picture, and click the "confirm" button after selecting the original picture to be processed.
  • the selection interface of the foregoing check box is only an example, and the specific selection interface of the original picture to be processed is not limited in the embodiment of the present invention.
  • the first instruction may determine the one or more original pictures to be processed by using the first instruction, and the determining second item may determine the original picture to be processed in the folder by using the second instruction, so as to satisfy the user to process the original picture in the entire folder.
  • the demand increases the efficiency of determining the original picture to be processed and reduces the operating cost of the user.
  • the process of determining, by the second instruction, the original image to be processed in the folder may include: receiving a second instruction saved by the user for the storage space generated by the folder, and moving the image in the folder corresponding to the second instruction as a mobile The original image to be processed in the device.
  • the first instruction may be used to determine one or more original pictures to be processed by using the first instruction
  • the second determining unit may determine the original picture to be processed in the folder by using the second instruction, and determining that the third item is further carried by the third instruction.
  • the date information determines the original picture to be processed to meet the user's need for processing the original picture corresponding to the date, improves the flexibility and efficiency of determining the original picture to be processed, and reduces the operation cost of the user.
  • the process of determining the original picture to be processed by using the date information carried in the third instruction may include: receiving a third instruction of the user to save the storage space, and using the date information corresponding to the third instruction as the mobile device.
  • the original image to be processed may include: receiving a third instruction of the user to save the storage space, and using the date information corresponding to the third instruction as the mobile device.
  • a user when a user browses a picture on a mobile device, he or she can provide "processing a picture 1 month ago”, “processing a picture 3 months ago”, “processing a picture 1 year ago”, etc. for one or more folders.
  • the user can generate the above third instruction by one of the options.
  • the scheme for determining the original picture to be processed in the mobile device is described in detail above. It can be understood that one or more of the foregoing solutions may be adopted by those skilled in the art according to actual conditions, or Other solutions for determining the original picture to be processed in the mobile device may be used.
  • the embodiment of the present invention does not limit the specific solution for determining the original picture to be processed in the mobile device.
  • first instruction, the second instruction, the third instruction, and the like may be implemented in various manners, and the specific implementation method of the instruction is not limited in the embodiment of the present invention, for example, may be implemented by using an option (may be Use the virtual button on the mobile phone to trigger the right-click option similar to the computer mouse. You can also press and hold, slide, drag, etc. to trigger the option. For example, you can use the specific icon (icon) or pop-up prompt to achieve the above. Instructions, and so on.
  • the foregoing operation of determining the original picture to be processed in the mobile device may be manually triggered by the user, or may be automatically triggered by the processing tool.
  • the operation of determining the original picture to be processed in the mobile device may be triggered, and accordingly, the determining the mobile device Before the step of processing the original image, the method may further include:
  • Step S1 detecting remaining storage space of the mobile device
  • Step S2 when the remaining storage space is lower than the preset capacity threshold, issue a prompt for saving storage space; wherein the prompt of the image storage space may be used to guide triggering the operation of determining the original image to be processed in the mobile device .
  • the preset capacity threshold may be determined by a person skilled in the art according to actual conditions, for example, it may be 100M or the like.
  • the prompt of the picture storage space may be used to guide the operation of determining the original picture to be processed in the mobile device, for example, the inquiry information and the corresponding information that “the current storage space is insufficient, whether the storage space is saved” may be carried in the prompt.
  • the "Accept" and “Reject” buttons when the user selects the "Accept” button, trigger the operation of determining the original picture to be processed in the mobile device.
  • the operation of the boot trigger to determine the original picture to be processed in the mobile device is only an optional embodiment, and is not limited by the application of the embodiment of the present invention.
  • a person skilled in the art may set various trigger conditions for the operation of the original picture to be processed in the mobile device according to actual conditions, for example, the operation of the original picture to be processed in the mobile device may be triggered when a new picture is added to the mobile device, etc. Wait.
  • Step 102 Perform compression processing on the original picture to obtain a corresponding compressed picture;
  • the quality parameter of the compressed picture conforms to the preset does not affect the display condition;
  • the original image may be compressed by using various compression algorithms, so that the quality parameters of the corresponding compressed image conform to the preset does not affect the display condition, thereby reducing the image without affecting the display quality. volume.
  • the quality parameter of the compressed picture conforms to the preset does not affect the display condition, and specifically includes: the size of the compressed picture is the same as the size of the original picture, and the compression The resolution of the picture is between the first resolution threshold and the second resolution threshold.
  • the size of the picture can be used to quantify the size of the picture.
  • the resolution of the picture can be used to indicate the number of pixels in a unit area.
  • the pixel can be used to represent the minimum unit of sensitization on the photosensitive device such as a camera.
  • the size of the compressed picture is the same as the size of the original picture, which can ensure that the compressed picture is consistent with the size of the original picture, and thus does not affect the printing requirements of the compressed picture for the user;
  • the first resolution threshold and the second resolution threshold may be determined according to the distance resolved by the naked eye.
  • the minimum distance that can be resolved by the naked eye is 0.1 mm, and 1 inch is 25.4 mm, so that the resolution is higher than 254 (
  • the resolution of the pixel/inch image is indistinguishable from the naked eye, so the second resolution threshold can be set to 254; for example, a picture with a resolution less than 180 (pixels/inch) is difficult to use. It is distinguishable by the naked eye, so the second resolution threshold can be set to 180, so that the compressed picture between the resolutions 180 and 254 can affect the visual resolution without affecting the display quality of the compressed picture.
  • the foregoing 180 and 254 are only examples of the first resolution threshold and the second resolution threshold, and are not to be construed as limiting the application of the present invention.
  • the first resolution threshold and the second resolution threshold may also be 240 respectively.
  • 254, or the first resolution threshold and the second resolution threshold may also be 254 and 270, respectively, or the first resolution threshold and the second resolution threshold are the same, etc.
  • the embodiment of the present invention is specific to the first The resolution threshold and the second resolution threshold are not limited.
  • the original picture may be compressed using an open source JPEG compression algorithm.
  • JPEG Joint Photographic Experts Group
  • the compression process you can choose the size unchanged, reduce the resolution from 300 to 265, so as to save space but not The effect of viewing and using.
  • the quality parameter of the compressed picture conforms to the preset does not affect the display condition, and may further include: the size of the compressed picture is the same as the size of the original picture, and the compression The resolution of the local pixels in the picture is between the first resolution threshold and the second resolution threshold.
  • the local pixels can be used to represent pixels corresponding to the sensitive information of the naked eye, that is, the resolution of the local pixels corresponding to the naked eye sensitive information can be limited. Therefore, the effect of saving space without affecting viewing and use can be achieved.
  • the information that is not sensitive to the human eye can be removed from the original picture, or the information that is insensitive to the human eye is highly compressed to reduce the volume of the compressed picture.
  • the above describes the preset display conditions that do not affect the display conditions.
  • Those skilled in the art may adopt one or more of the preset presets that do not affect the display conditions according to actual needs, and may also adopt other presets that do not affect the display.
  • the condition of the present invention does not affect the specific preset display conditions and the specific compression processing algorithm without affecting the display quality of the compressed picture.
  • the compression processing on the original picture may be performed one by one, or multiple pictures may be simultaneously performed, or even all pictures may be simultaneously performed, that is, multiple threads may be used for compression processing of batch pictures to improve The speed of compression processing.
  • Step 103 Delete the original picture from the mobile device, and retain the compressed picture corresponding to the original picture in the corresponding location.
  • the embodiment of the present invention may perform compression processing on the original picture to obtain a corresponding compressed picture, and delete the original picture from the mobile device, and retain the compressed picture corresponding to the original picture in a corresponding location; Since the quality parameter of the compressed picture conforms to the preset does not affect the display condition, the volume of the picture can be reduced while ensuring the display quality of the compressed picture, thereby saving the storage space of the mobile device.
  • FIG. 2 a schematic flowchart of a step of a mobile device-based image processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
  • Step 201 Determine an original picture to be processed in the mobile device.
  • Step 202 Perform compression processing on the original picture to obtain a corresponding compressed picture, where the quality parameter of the compressed picture conforms to a preset and does not affect display conditions;
  • Step 203 Upload the original picture to a server, and establish a mapping relationship between the compressed picture in the mobile device and the original picture in the server.
  • Step 204 Delete the original picture from the mobile device, and retain the compressed picture corresponding to the original picture in the corresponding location.
  • the embodiment adds that the original picture is uploaded to the server, and the compressed picture in the mobile device is established.
  • Step 203 of mapping relationship with the original picture in the server on the one hand, adding a function of storing the compressed picture corresponding to the original picture in the server, on the other hand, the established compressed picture in the mobile device and the original in the server. The mapping relationship between the images can ensure that the original image corresponding to the compressed image is retrieved.
  • the server may be a corresponding cloud server such as a cloud disk, a cloud album, a network disk, or the like, or may be a server corresponding to the album client.
  • the embodiment of the present invention does not limit the specific server.
  • the user can trigger the operation corresponding to step 203 after logging in to the cloud account of the user.
  • the specific trigger mode is not limited in the embodiment of the present invention.
  • the specific process of establishing a mapping relationship between the compressed picture in the mobile device and the original picture in the server may be: after the server successfully saves the original picture, The original picture generates a unique record ID (Identity), and returns the record ID to the client; and the client can write the record ID into the file information of the compressed picture, thereby ensuring that the record ID is based on the record ID. Finding the original picture corresponding to the compressed picture from the server.
  • the operation of deleting the original picture from the mobile device involved in the step 204 is mainly an operation of flashing the original picture from the disk of the mobile device.
  • the operation of deleting the original picture from the mobile device may be performed, and the original picture may be placed in a cache and the operation of deleting the original picture from the mobile device may be performed at the same time as step 203 is performed.
  • the embodiment of the present invention ensures that the original image is successfully uploaded. Under the premise, there is no restriction on the specific operation sequence.
  • FIG. 3 a schematic flowchart of a step of a mobile device-based image processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
  • Step 301 Determine an original picture to be processed in the mobile device.
  • Step 302 Perform compression processing on the original picture to obtain a corresponding compressed picture, where the quality parameter of the compressed picture conforms to the preset does not affect the display condition;
  • Step 303 Upload the original picture to a server, and establish a mapping relationship between the compressed picture in the mobile device and the original picture in the server.
  • Step 304 Delete the original picture from the mobile device, and retain the compressed picture corresponding to the original picture in the corresponding location;
  • Step 305 After receiving the view original instruction generated by the user for compressing the picture in the mobile device, using a mapping relationship between the compressed picture in the mobile device and the original picture in the server, searching and downloading the original view The original picture corresponding to the map instruction.
  • the present embodiment adds a step 305 for searching and downloading the original picture for the compressed picture in the mobile device, which can satisfy the requirement of viewing the original picture in the mobile device.
  • the step 305 of uploading the original picture to the server may specifically include:
  • Step 351 Detect a current network connection type of the mobile device.
  • Step 352 When the network connection type is a WiFi (WIreless-FIdelity) network connection, upload the original picture to the server;
  • WiFi WIreless-FIdelity
  • Step 353 When the network connection type is not a wireless fidelity WiFi network connection, return to perform an operation of detecting a current network connection type of the mobile device, or issue a prompt to upload the original picture to the server.
  • the optional embodiment directly uploads the original picture to the server when the network connection type is a WiFi network connection, and avoids spending the user when the network connection type is a non-WiFi network connection.
  • the data traffic may be selected to wait until the network connection type is a WiFi network connection to perform an upload operation, or issue a prompt to upload the original picture to the server, and determine whether to perform the upload operation according to the user's instruction.
  • the original picture may be stored in the cache during the waiting period to avoid occupying the storage space of the mobile device.
  • step 301, step 302, and step 304 when the storage space of the mobile device is insufficient, the operation of step 301, step 302, and step 304 is triggered by the space-saving instruction for some original pictures in the mobile device, which effectively saves the operation.
  • the device, the series of operations performed according to the user operation described above, can flexibly manage the pictures in the mobile device according to the state of the storage space of the mobile device.
  • the original picture and the compressed picture in the same folder may be displayed when the picture is displayed.
  • the two types of pictures are distinguished, for example, the "original” logo can be displayed in the display area of the original picture, and the "compressed” logo or the like is displayed in the display area of the compressed picture.
  • the "view original picture” option for the compressed picture can also be provided, so that the above-mentioned original picture instruction can be triggered according to the "view original picture” option.
  • the method may further include: performing a post-processing operation on the downloaded original picture and/or the corresponding compressed picture; wherein the post-processing operation may specifically include the following operations One or more of them:
  • the post-processing operation 1 may be an operation of replacing the corresponding compressed picture with the downloaded original picture.
  • the following manner of storing the downloaded original image may be provided: the downloaded original image may be stored in a cache of the mobile device, so that the compressed image is still placed in the folder of the mobile device, and the storage method is performed on the mobile device. There is no restriction on the storage space, but there is a risk of losing the original image due to cache cleaning. In addition, if the storage space of the mobile device is sufficient, the storage space can be used. The downloaded original image replaces the compressed image. There is no risk that the original image will be cleaned up, but the mobile device needs sufficient storage space.
  • the above two storage methods can be selected by the user, or one of them can be adopted according to actual conditions.
  • the post-processing operation 2 may be an operation of saving the downloaded original picture to a directory different from the corresponding compressed picture; when the storage space of the mobile device is sufficient and the user has a use requirement for the original picture and the compressed picture, the Post-processing operation two.
  • Post-processing operation 3 may be an operation of sharing the downloaded original picture with the link address of the server and/or the corresponding compressed picture to the friend.
  • the user may be provided with the option of sharing the original picture and/or compressing the picture, so that the user may choose to share only the compressed picture to the friend according to actual needs, or may choose to share the compressed picture while the original picture is in the
  • the link address of the cloud server is shared with the friend, so that when the friend views the compressed image, the original picture can also be viewed by the option of “view original image”.
  • FIG. 4 a flow chart of the steps of a mobile device-based image processing method according to an example of the present invention is shown, which may specifically include the following steps:
  • Step 401 Detecting a remaining storage space of the mobile device.
  • Step 402 When the remaining storage space is lower than the preset capacity threshold, issue a prompt for saving the storage space, where the prompt of the image storage space may be used to guide the operation of determining the original image to be processed in the mobile device. ;
  • Step 403 Receive an instruction for saving storage space generated by the user based on the prompt.
  • Step 404 Determine, according to the instruction for saving storage space, an original picture to be processed in the mobile device.
  • Step 405 Perform compression processing on the original picture to obtain a corresponding compressed picture.
  • the quality parameter of the compressed picture conforms to the preset and does not affect the display condition.
  • Step 406 Detect a current network connection type of the mobile device.
  • Step 407 When the network connection type is a WiFi network connection, upload the original picture to the server, establish a mapping relationship between the compressed picture in the mobile device and the original picture in the server, and execute after the upload is successful.
  • Step 408 when the network connection type is not a WiFi network connection, the original picture is placed in the cache, and steps 406 and 409 are performed;
  • Step 409 Delete the original picture from the mobile device, and retain the compressed picture corresponding to the original picture in the corresponding location;
  • Step 410 After receiving the view original instruction generated by the user for compressing the picture in the mobile device, using a mapping relationship between the compressed picture in the mobile device and the original picture in the server, searching and downloading the original view The original picture corresponding to the map instruction.
  • the above example may perform compression processing on the original picture, obtain a corresponding compressed picture, and delete the original picture from the mobile device, and retain the original picture in a corresponding location (that is, a corresponding position of the original picture).
  • Corresponding compressed picture since the quality parameter of the compressed picture conforms to the preset does not affect the display condition, the volume of the picture can be reduced under the premise of ensuring the display quality of the compressed picture, thereby saving the storage space of the mobile device;
  • the above example can guide a series of operations that trigger the saving of the storage space when the remaining storage space of the mobile device is lower than the preset capacity threshold, so that the intelligence of saving storage space can be realized;
  • the above example may further upload the original picture to the server and establish a relationship between the compressed picture in the mobile device and the original picture in the server before the step of deleting the original picture from the mobile device.
  • the mapping relationship increases the function of storing the compressed picture corresponding to the original picture in the server, and on the other hand, the established mapping relationship between the compressed picture in the mobile device and the original picture in the server can ensure the retrieval of the compressed picture.
  • the above example directly uploads the original picture to the server when the network connection type is a WiFi network connection, and avoids spending when the network connection type is not a WiFi network connection.
  • the data traffic of the user may choose to wait until the network connection type is a WiFi network connection to perform an upload operation, or issue a prompt to upload the original picture to the server, and determine whether to perform the upload operation according to the user's instruction.
  • the original picture may be stored in the cache during the waiting period to avoid occupying the storage space of the mobile device;
  • the user may also search for and download the original image corresponding to the original image instruction by viewing the original image instruction, so as to download the original image corresponding to the compressed image from the server to the server.
  • the mobile device the series of operations performed according to the user operation described above, can flexibly manage the pictures in the mobile device according to the state of the storage space of the mobile device.
  • FIG. 5 a schematic structural diagram of a mobile device-based image processing apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
  • the determining module 501 is configured to determine an original picture to be processed in the mobile device
  • the compression processing module 502 is configured to perform compression processing on the original image to obtain a corresponding compressed image, where the quality parameter of the compressed image conforms to a preset does not affect the display condition;
  • the deleting module 503 is configured to delete the original picture from the mobile device, and retain the compressed picture corresponding to the original picture at a corresponding location.
  • the quality parameter of the compressed picture conforms to the preset does not affect the display condition, and specifically includes: the size of the compressed picture is the same as the size of the original picture, and the compression The resolution of the picture is between the first resolution threshold and the second resolution threshold.
  • the determining module 501 may specifically include:
  • a first determining unit configured to receive a first instruction for saving storage space generated by the user for one or more original pictures, and use one or more original pictures corresponding to the first instruction as an original picture to be processed in the mobile device ;and / or
  • a second determining unit configured to receive a second instruction saved by the user for the storage space generated by the folder, and use the original picture in the folder corresponding to the second instruction as the original picture to be processed in the mobile device;
  • the third determining unit is configured to receive a third instruction of the user to save the storage space, and use the date information carried in the third instruction as the original picture to be processed in the mobile device.
  • the apparatus may further include:
  • a space detecting module configured to detect a remaining storage space of the mobile device before the determining an operation of the original picture to be processed in the mobile device;
  • a prompting module configured to issue a prompt for saving storage space when the remaining storage space is lower than a preset capacity threshold; wherein the prompt of the image storage space is configured to guide triggering to determine the original image to be processed in the mobile device Operation.
  • FIG. 6 a schematic structural diagram of a mobile device-based image processing apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
  • a determining module 601 configured to determine an original picture to be processed in the mobile device
  • the compression processing module 602 is configured to perform compression processing on the original picture to obtain a corresponding compressed picture.
  • the quality parameter of the compressed picture conforms to the preset and does not affect the display condition.
  • the uploading module 603 is configured to: before the operation of deleting the original picture from the mobile device, upload the original picture to a server, and establish a compressed picture between the mobile device and an original picture in the server Mapping relationship;
  • the deleting module 604 is configured to delete the original picture from the mobile device, and retain the compressed picture corresponding to the original picture in a corresponding location.
  • the uploading module 603 may specifically include:
  • a network detecting unit configured to detect a current network connection type of the mobile device
  • the uploading unit is configured to upload the original picture to the server when the network connection type is a wireless fidelity WiFi network connection;
  • Waiting for the prompting unit configured to return to perform an operation of detecting a current network connection type of the mobile device when the network connection type is not a wireless fidelity WiFi network connection, or issue a A prompt to upload the original image to the server.
  • the device may further include:
  • a downloading module configured to: after receiving a viewing original image command generated by a user for compressing a picture in the mobile device, using a mapping relationship between a compressed picture in the mobile device and an original picture in the server, searching and downloading the View the original image corresponding to the original image instruction.
  • the apparatus may further include:
  • a post-processing module configured to perform a post-processing operation on the downloaded original picture and/or the corresponding compressed picture; wherein the post-processing operation includes one or more of the following operations:
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or some of some or all of the components of the mobile device-based image processing method and apparatus in accordance with embodiments of the present invention. All features.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an internet platform, provided on a carrier signal, or provided in any other form.
  • Figure 7 illustrates a computing device, such as a search engine server, that can implement the above described method in accordance with the present invention.
  • the computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 730.
  • the memory 730 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 730 has a storage space 750 that stores program code 751 for performing any of the method steps described above.
  • storage space 750 storing program code may include various program code 751 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 730 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises computer readable code 751' for performing the steps of the method according to the invention, ie code that can be read by a processor such as 710, which when executed by the server causes the server to execute Each step in the described method.

Abstract

本发明实施例提供了一种基于移动设备的图片处理方法和装置,其中的方法具体包括:确定移动设备中待处理的原图片;对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。本发明实施例能够在保证压缩图片的显示质量的前提下减小图片的体积,从而能够节省移动设备的存储空间。

Description

一种基于移动设备的图片处理方法和装置 技术领域
本发明涉及移动设备技术领域,特别是涉及一种基于移动设备的图片处理方法和装置。
背景技术
随着手机、平板电脑等移动设备的发展,移动设备自带相机拍照的质量越来越高,加上移动终端设备便携、易操作等特征,人们使用移动终端设备的拍照功能也越来越多。
例如,日常生活中的照片大多数是用手机来拍摄的,大量的照片占用了手机大量的存储空间,这使得用户经常遇到存储空间不足的问题。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种基于移动设备的图片处理方法和装置。
依据本发明的一个方面,提供了一种基于移动设备的图片处理方法,包括:
确定移动设备中待处理的原图片;
对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;
从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。
根据本发明的另一方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行上文所述的基于移动设备的图片处理方法。
根据本发明的再一方面,提供了一种计算机可读介质,其中存储了上文所述的计算机程序。
根据本发明的又一方面,提供了一种基于移动设备的图片处理装置,包 括:
确定模块,配置为确定移动设备中待处理的原图片;
压缩处理模块,配置为对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;及
删除模块,配置为从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。
根据本发明实施例的一种基于移动设备的图片处理方法和装置,可以对所述原图片进行压缩处理,得到相应的压缩图片,并从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片;由于所述压缩图片的质量参数符合预置的不影响显示条件,因此,能够在保证压缩图片的显示质量的前提下减小图片的体积,从而能够节省移动设备的存储空间。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文可选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出可选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本发明一个实施例的一种基于移动设备的图片处理方法的步骤流程示意图;
图2示出了根据本发明一个实施例的一种基于移动设备的图片处理方法的步骤流程示意图;
图3示出了根据本发明一个实施例的一种基于移动设备的图片处理方法的步骤流程示意图;
图4示出了根据本发明一个示例的一种基于移动设备的图片处理方法的步骤流程示意图;
图5示出了根据本发明一个实施例的一种基于移动设备的图片处理装置的结构示意图;以及
图6示出了根据本发明一个实施例的一种基于移动设备的图片处理装置的结构示意图;
图7示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及
图8示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
实施例一
参照图1,示出了根据本发明一个实施例的一种基于移动设备的图片处理方法的步骤流程示意图,具体可以包括如下步骤:
步骤101、确定移动设备中待处理的原图片;
本发明实施例中,移动设备可以为具备图片存储和图片显示功能的各种便携式设备,如手机、平板电脑、数码相机等等,本发明实施例主要以手机为例进行说明,其它移动设备相互参照即可。
本发明实施例中,原图片可用于表示移动设备中原有的、未经过压缩处理的各种图片。
本发明实施例可以提供如下确定移动设备中待处理的原图片的方案:
确定方案一
确定方案一可以接收用户针对一个或多个原图片产生的节省存储空间的第一指令,将所述第一指令对应的一个或多个原图片作为移动设备中待处理的原图片。
在本发明的一种应用示例中,可以向用户提供选择待处理的原图片的如下选择接口:当用户在移动设备上浏览图片时,可以在各原图片或各原图片的缩略图之上展示相应的节省存储空间的复选框,用户可以通过该复选框确定是否选择对应原图片,并在选择需要处理的原图片后点击“确认”按钮。当然,上述复选框的选择接口只是作为示例,本发明实施例对选择待处理的原图片的具体选择接口不加以限制。
确定方案二
相对于确定方案一可以通过第一指令确定待处理的一个或多个原图片,确定方案二可以通过第二指令确定文件夹中待处理的原图片,以满足用户对于整个文件夹中原图片进行处理的需求,提高确定待处理的原图片的效率,降低用户的操作成本。
上述通过第二指令确定文件夹中待处理的原图片的过程具体可以包括:接收用户针对文件夹产生的节省存储空间的第二指令,并将所述第二指令对应的文件夹中图片作为移动设备中待处理的原图片。
确定方案三
相对于确定方案一可以通过第一指令确定待处理的一个或多个原图片,确定方案二可以通过第二指令确定文件夹中待处理的原图片,确定方案三还可以通过第三指令中携带的日期信息确定待处理的原图片,以满足用户对于日期所对应原图片进行处理的需求,提高确定待处理的原图片的灵活性和效率,降低用户的操作成本。
上述通过第三指令中携带的日期信息确定待处理的原图片的过程具体可以包括:接收用户的节省存储空间的第三指令,将所述第三指令中携带的日期信息对应图片作为移动设备中待处理的原图片。
例如,当用户在移动设备上浏览图片时,可以针对一个或多个文件夹提供“处理1个月前的图片”、“处理3个月前的图片”、“处理1年前的图片”等选项,用户可以通过其中一个选项产生上述第三指令。
以上对确定移动设备中待处理的原图片的方案进行了详细介绍,可以理解,本领域技术人员可以根据实际情况采用上述方案中的一种或多种,或者, 还可以采用其它确定移动设备中待处理的原图片的方案,本发明实施例对具体的确定移动设备中待处理的原图片的方案不加以限制。
需要说明的是,上述第一指令、第二指令、第三指令等指令可以用各种方式实现,本发明实施例对指令的具体实现方法不做限定,例如,可以采用选项的方式实现(可以利用手机上的虚拟按键触发类似电脑鼠标的右键选项,也可以长按、滑动、拖动等手势操作触发选项)上述指令,例如,也可以采用特定icon(图标)或弹窗提示的方式实现上述指令,等等。
另外,需要说明的是,上述确定移动设备中待处理的原图片的操作可由用户手动触发,也可由处理工具自动触发。
在本发明的一种可选实施例中,可以在移动设备的剩余空间低于预置容量阈值时,引导触发确定移动设备中待处理的原图片的操作,相应地,在所述确定移动设备中待处理的原图片的步骤之前,所述方法还可以包括:
步骤S1、检测移动设备的剩余存储空间;
步骤S2、当所述剩余存储空间低于预置容量阈值时,发出节省存储空间的提示;其中,所述图片存储空间的提示可用于引导触发所述确定移动设备中待处理的原图片的操作。
在具体实现中,所述预置容量阈值可由本领域技术人员依据实际情况确定,例如,其可以为100M等。另外,所述图片存储空间的提示可用于引导触发所述确定移动设备中待处理的原图片的操作,如可以在提示中携带“当前存储空间不足,是否节省存储空间”的问询信息及对应的“接受”和“拒绝”按钮,当用户选择“接受”按钮时,即可触发所述确定移动设备中待处理的原图片的操作。
当然上述在移动设备的剩余空间低于预置容量阈值时,引导触发确定移动设备中待处理的原图片的操作只是作为可选实施例,而不作为本发明实施例的应用限制,实际上,本领域技术人员可以根据实际情况设置移动设备中待处理的原图片的操作的各种触发条件,例如,可以在移动设备中新增图片时触发上述移动设备中待处理的原图片的操作,等等。
步骤102、对所述原图片进行压缩处理,得到相应的压缩图片;其中, 所述压缩图片的质量参数符合预置的不影响显示条件;
在实际应用中,可以采用各种压缩算法对所述原图片进行压缩处理,使得对应压缩图片的质量参数符合预置的不影响显示条件,从而实现在不影响显示质量的前提下减小图片的体积。
在本发明的一种可选实施例中,所述压缩图片的质量参数符合预置的不影响显示条件,具体可以包括:所述压缩图片的尺寸与所述原图片的尺寸相同,所述压缩图片的分辨率在第一分辨率阈值和第二分辨率阈值之间。
其中,图片的尺寸可用于表示图片的幅面大小的量化,图片的分辨率可用于表示单位面积内的像素数目,像素可用于表示相机等感光器件上的感光最小单位;本可选实施例中,所述压缩图片的尺寸与所述原图片的尺寸相同,能够保证压缩图片与原图片的幅面大小一致,因此不影响压缩图片对于用户的打印需求;
另外,可以根据肉眼分辨的距离确定所述第一分辨率阈值和第二分辨率阈值,例如,肉眼所能分辨的最小距离是0.1mm,1英寸是25.4mm,这样,分辨率高于254(像素/英寸)的图像的清晰度,在肉眼看来是没有什么区别的,因此,可以设置第二分辨率阈值为254;又如,分辨率小于180(像素/英寸)的图片已很难用肉眼分辨了,故可以设置第二分辨率阈值为180,这样,在分辨率180和254之间的压缩图片能够不影响肉眼分辨,从而不影响压缩图片的显示质量。当然,上述180和254只是作为第一分辨率阈值和第二分辨率阈值的示例,而不理解为本发明的应用限制,例如,第一分辨率阈值和第二分辨率阈值还可以分别为240和254,或者,第一分辨率阈值和第二分辨率阈值还可以分别为254和270,或者,第一分辨率阈值和第二分辨率阈值相同等等,本发明实施例对具体的第一分辨率阈值和第二分辨率阈值不加以限制。
在本发明的一种应用示例中,假设所述原图片的格式为JPEG(联合图像专家小组,Joint Photographic Experts Group),那么,可以使用开源的为JPEG压缩算法对所述原图片进行压缩处理,其中,在压缩处理过程中,可以选择尺寸不变,将分辨率从300降低为265,从而达到可节省空间但不影 响查看和使用的效果。
在本发明的另一种可选实施例中,所述压缩图片的质量参数符合预置的不影响显示条件还可以包括:所述压缩图片的尺寸与所述原图片的尺寸相同,所述压缩图片中局部像素的分辨率在第一分辨率阈值和第二分辨率阈值之间。这里,局部像素可用于表示肉眼敏感信息对应的像素,也即可以仅仅对肉眼敏感信息对应的局部像素进行分辨率的限制,因此,能够达到可节省空间但不影响查看和使用的效果。在具体实现中,可以从原图片中去除人眼不敏感的信息,或者,对人眼不敏感的信息进行高压缩处理,以减小压缩图片的体积。
以上对预置的不影响显示条件进行了详细介绍,本领域技术人员可以根据实际需求采用上述预置的不影响显示条件的一种或多种,并且,还可以采用其它预置的不影响显示条件,在不影响压缩图片的显示质量的前提下,本发明实施例对具体的预置的不影响显示条件以及具体的压缩处理算法不加以限制。
需要说明的是,对所述原图片进行的压缩处理可以逐个图片进行,也可以多个图片同时进行,甚至可以全部图片同时进行,也即,可以利用多线程进行批量图片的压缩处理,以提高压缩处理的速度。
步骤103、从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。
综上,本发明实施例可以对所述原图片进行压缩处理,得到相应的压缩图片,并从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片;由于所述压缩图片的质量参数符合预置的不影响显示条件,因此,能够在保证压缩图片的显示质量的前提下减小图片的体积,从而能够节省移动设备的存储空间。
实施例二
参照图2,示出了根据本发明一个实施例的一种基于移动设备的图片处理方法的步骤流程示意图,具体可以包括如下步骤:
步骤201、确定移动设备中待处理的原图片;
步骤202、对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;
步骤203、将所述原图片上传至服务器,并建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系;
步骤204、从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。
相对于图1所示实施例,本实施例在所述从所述移动设备中删除所述原图片的步骤之前,增加了将所述原图片上传至服务器,并建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系的步骤203,一方面增加了在服务器中存储压缩图片对应原图片的功能,另一方面,所建立的所述移动设备中压缩图片与所述服务器中原图片之间的映射关系能够保证找回压缩图片对应的原图片。
在实际应用中,所述服务器可以为云盘、云相册、网盘等对应的云端服务器,也可以为相册客户端对应的服务器,本发明实施例对具体的服务器不加以限制。用户可以在登陆自身的云端账号后触发步骤203所对应的操作,本发明实施例对具体的触发方式不加以限制。
在本发明的一种可选实施例中,所述建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系的具体过程可以为:服务器在成功保存所述原图片后,针对所述原图片生成唯一的记录ID(标识,Identity),并将该记录ID返回给客户端;而客户端可以将该记录ID写入所述压缩图片的文件信息中,从而保证依据该记录ID从服务器中查找得到所述压缩图片对应的原图片。
需要说明的是,所述步骤204所涉及的从所述移动设备中删除所述原图片的操作主要为从移动设备的磁盘中闪存原图片的操作,在具体实现中,可以在原图片上传成功后执行上述从所述移动设备中删除所述原图片的操作,也可以在执行步骤203的同时,将所述原图片放至缓存,并执行上述从所述移动设备中删除所述原图片的操作,本发明实施例在保证原图片上传成功的 前提下,对具体的操作顺序不加以限制。
实施例三
参照图3,示出了根据本发明一个实施例的一种基于移动设备的图片处理方法的步骤流程示意图,具体可以包括如下步骤:
步骤301、确定移动设备中待处理的原图片;
步骤302、对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;
步骤303、将所述原图片上传至服务器,并建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系;
步骤304、从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片;
步骤305、在接收到用户针对所述移动设备中压缩图片产生的查看原图指令后,利用所述移动设备中压缩图片与所述服务器中原图片之间的映射关系,查找并下载所述查看原图指令对应的原图片。
相对于图2所示实施例,本实施例增加了针对移动设备中压缩图片查找并下载原图片的步骤305,所述查找能够满足在移动设备中查看原图片的需求。
在本发明的一种可选实施例中,所述将所述原图片上传至服务器的步骤305,具体可以包括:
步骤351、检测移动设备当前的网络连接类型;
步骤352、当所述网络连接类型为WiFi(无线保真,WIreless-FIdelity)网络连接时,将所述原图片上传至服务器;
步骤353、当所述网络连接类型并非无线保真WiFi网络连接时,返回执行检测移动设备当前的网络连接类型的操作,或者,发出将所述原图片上传至服务器的提示。
本可选实施例在网络连接类型为WiFi网络连接时直接将所述原图片上传至服务器,而在网络连接类型为非WiFi网络连接时,为了避免花费用户 的数据流量,可以选择等待直至网络连接类型为WiFi网络连接时执行上传操作,或者,发出将所述原图片上传至服务器的提示,根据用户的指令确定是否执行上传的操作。需要说明的是,在等待期间可以将所述原图片存放至缓存中,以避免占用移动设备的存储空间。
在本发明的一种应用示例中,用户在移动设备的存储空间不足时,针对移动设备中一些原图片通过节省空间的指令触发了步骤301、步骤302和步骤304的操作,这些操作有效地节省了移动设备的存储空间;并且,该用户在产生节省空间的指令中携带了“将所述原图片上传至服务器”的信息,也即,还触发了步骤303的操作,该步骤303的操作能够保证找到压缩图片对应的原图片;这样,当移动设备的存储空间充足时,该用户还可以通过查看原图指令触发步骤305的操作,以将所述压缩图片对应的原图片从服务器下载到移动设备,上述根据用户操作执行的一系列操作能够根据移动设备的存储空间的状态灵活地对移动设备中图片进行管理。
在本发明的一种可选实施例中,针对同一文件夹中既存在未经过压缩处理的原图片、又存在压缩图片的情形,可以在显示图片时,对同一文件夹中原图片和压缩图片这两类图片进行区分,例如,可以在原图片的显示区域中显示“原”标识,以及,在压缩图片的显示区域中显示“压缩”标识等等。并且,用户在点击压缩图片时,还可以提供对于压缩图片的“查看原图”选项,从而可以根据该“查看原图”选项触发上述查看原图指令。
在本发明的另一种可选实施例中,所述方法可以还包括:对所下载的原图片和/或对应的压缩图片进行后处理操作;其中,所述后处理操作具体可以包括如下操作中的一种或多种:
后处理操作一、
后处理操作一可以为利用所下载的原图片替换对应的压缩图片的操作。
在具体实现中,可以提供所下载的原图片的如下存放方式:所下载的原图片可以存放在移动设备的缓存中,这样,移动设备的文件夹中依然放压缩图片,该存放方式对移动设备的存储空间不作限制,但存在因缓存清理而丢失原图片的风险;另外,在移动设备的存储空间充足的情况下,还可以用所 下载的原图片替换压缩图片,该存放方式不存在原图片被清理掉的风险,但需要移动设备具备足够的存储空间。上述两种存放方式可以由用户选择,也可以根据实际情况采用其中一种。
后处理操作二、
后处理操作二可以为将所下载的原图片保存至与对应的压缩图片不同的目录的操作;在移动设备的存储空间充足且用户对于原图片和压缩图片均存在用途需求时,可以触发所述后处理操作二。
后处理操作三、
后处理操作三可以为将所下载的原图片在服务器的链接地址和/或对应的压缩图片分享给好友的操作。
在实际应用中,可以向用户提供分享原图片和/或压缩图片的选项,这样,用户可以根据实际需求,选择只将压缩图片分享给好友,也可以选择在分享压缩图片的同时将原图片在云服务器的链接地址一并分享给好友,让好友在查看压缩图片时也可以通过“查看原图”的选项来查看原图片。
当然除了上述三种后处理操作外,本领域技术人员还可以根据实际情况采用其它后处理操作,如美化调色操作、打印操作等等,本发明实施例对具体的后处理操作不加以限制。
为使本领域技术人员更好地理解本发明,参照图4,示出了根据本发明一个示例的一种基于移动设备的图片处理方法的步骤流程示意图,具体可以包括如下步骤:
步骤401、检测移动设备的剩余存储空间;
步骤402、当所述剩余存储空间低于预置容量阈值时,发出节省存储空间的提示;其中,所述图片存储空间的提示可用于引导触发所述确定移动设备中待处理的原图片的操作;
步骤403、接收用户基于所述提示产生的节省存储空间的指令;
步骤404、依据所述节省存储空间的指令,确定移动设备中待处理的原图片;
步骤405、对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;
步骤406、检测移动设备当前的网络连接类型;
步骤407、当所述网络连接类型为WiFi网络连接时,将所述原图片上传至服务器,建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系,并在上传成功后执行步骤409;
步骤408、当所述网络连接类型并非WiFi网络连接时,将所述原图片放至缓存,并执行步骤406和步骤409;
步骤409、从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片;
步骤410、在接收到用户针对所述移动设备中压缩图片产生的查看原图指令后,利用所述移动设备中压缩图片与所述服务器中原图片之间的映射关系,查找并下载所述查看原图指令对应的原图片。
上述示例可以对所述原图片进行压缩处理,得到相应的压缩图片,并从所述移动设备中删除所述原图片,及在对应位置(也即所述原图片对应位置)保留所述原图片对应的压缩图片;由于所述压缩图片的质量参数符合预置的不影响显示条件,因此,能够在保证压缩图片的显示质量的前提下减小图片的体积,从而能够节省移动设备的存储空间;
并且,上述示例可以在移动设备的剩余存储空间低于预置容量阈值时,引导触发节省存储空间的一系列操作,因此能够实现节省存储空间的智能性;
再者,上述示例在从所述移动设备中删除所述原图片的步骤之前,还可以将所述原图片上传至服务器,并建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系,一方面增加了在服务器中存储压缩图片对应原图片的功能,另一方面,所建立的所述移动设备中压缩图片与所述服务器中原图片之间的映射关系能够保证找回压缩图片对应的原图片;
另外,上述示例在网络连接类型为WiFi网络连接时直接将所述原图片上传至服务器,而在网络连接类型并非WiFi网络连接时,为了避免花费用 户的数据流量,可以选择等待直至网络连接类型为WiFi网络连接时执行上传操作,或者,发出将所述原图片上传至服务器的提示,根据用户的指令确定是否执行上传的操作。需要说明的是,在等待期间可以将所述原图片存放至缓存中,以避免占用移动设备的存储空间;
进一步,当移动设备的存储空间充足时,用户还可以通过查看原图指令触发查找并下载所述查看原图指令对应的原图片的操作,以将所述压缩图片对应的原图片从服务器下载到移动设备,上述根据用户操作执行的一系列操作能够根据移动设备的存储空间的状态灵活地对移动设备中图片进行管理。
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作并不一定是本发明实施例所必须的。
参照图5,示出了根据本发明一个实施例的一种基于移动设备的图片处理装置的结构示意图,具体可以包括如下模块:
确定模块501,配置为确定移动设备中待处理的原图片;
压缩处理模块502,配置为对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;及
删除模块503,配置为从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。
在本发明的一种可选实施例中,所述压缩图片的质量参数符合预置的不影响显示条件,具体可以包括:所述压缩图片的尺寸与所述原图片的尺寸相同,所述压缩图片的分辨率在第一分辨率阈值和第二分辨率阈值之间。
在本发明的另一种可选实施例中,所述确定模块501,具体可以包括:
第一确定单元,配置为接收用户针对一个或多个原图片产生的节省存储空间的第一指令,并将所述第一指令对应的一个或多个原图片作为移动设备中待处理的原图片;和/或
第二确定单元,配置为接收用户针对文件夹产生的节省存储空间的第二指令,并将所述第二指令对应的文件夹中原图片作为移动设备中待处理的原图片;和/或
第三确定单元,配置为接收用户的节省存储空间的第三指令,并将所述第三指令中携带的日期信息对应原图片作为移动设备中待处理的原图片。
在本发明的再一种可选实施例中,所述装置还可以包括:
空间检测模块,配置为在所述确定移动设备中待处理的原图片的操作之前,检测移动设备的剩余存储空间;
提示模块,配置为在所述剩余存储空间低于预置容量阈值时,发出节省存储空间的提示;其中,所述图片存储空间的提示配置为引导触发所述确定移动设备中待处理的原图片的操作。
参照图6,示出了根据本发明一个实施例的一种基于移动设备的图片处理装置的结构示意图,具体可以包括如下模块:
确定模块601,配置为确定移动设备中待处理的原图片;
压缩处理模块602,配置为对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;
上传模块603,配置为在所述从所述移动设备中删除所述原图片的操作之前,将所述原图片上传至服务器,并建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系;及
删除模块604,配置为从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。
在本发明的一种可选实施例中,所述上传模块603,具体可以包括:
网络检测单元,配置为检测移动设备当前的网络连接类型;
上传单元,配置为在所述网络连接类型为无线保真WiFi网络连接时,将所述原图片上传至服务器;
等待提示单元,配置为在所述网络连接类型并非无线保真WiFi网络连接时,返回执行检测移动设备当前的网络连接类型的操作,或者,发出将所 述原图片上传至服务器的提示。
在本发明的另一种可选实施例中,所述装置还可以包括:
下载模块,配置为在接收到用户针对所述移动设备中压缩图片产生的查看原图指令后,利用所述移动设备中压缩图片与所述服务器中原图片之间的映射关系,查找并下载所述查看原图指令对应的原图片。
在本发明的再一种可选实施例中,所述装置还可以包括:
后处理模块,配置为对所下载的原图片和/或对应的压缩图片进行后处理操作;其中,所述后处理操作包括如下操作中的一种或多种:
利用所下载的原图片替换对应的压缩图片的操作;
将所下载的原图片保存至与对应的压缩图片不同的目录的操作;
将所下载的原图片在服务器的链接地址和/或对应的压缩图片分享给好友的操作。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的基于移动设备的图片处理方法和装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网平台上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图7示出了可以实现根据本发明上述方法的计算设备,例如搜索引擎服务器。该计算设备传统上包括处理器710和以存储器730形式的计算机程序产品或者计算机可读介质。存储器730可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。 存储器730具有存储用于执行上述方法中的任何方法步骤的程序代码751的存储空间750。例如,存储程序代码的存储空间750可以包括分别用于实现上面的方法中的各种步骤的各个程序代码751。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图8所示的便携式或者固定存储单元。该存储单元可以具有与图7的计算设备中的存储器730类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的计算机可读代码751’,即可以由诸如710之类的处理器读取的代码,当这些代码由服务器运行时,导致该服务器执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的 目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (18)

  1. 一种基于移动设备的图片处理方法,包括:
    确定移动设备中待处理的原图片;
    对所述原图片进行压缩处理,得到相应的压缩图片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;
    从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。
  2. 如权利要求1所述的方法,其特征在于,在所述从所述移动设备中删除所述原图片的步骤之前,所述方法还包括:
    将所述原图片上传至服务器,并建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系。
  3. 如权利要求2所述的方法,其特征在于,所述方法还包括:
    在接收到用户针对所述移动设备中压缩图片产生的查看原图指令后,利用所述移动设备中压缩图片与所述服务器中原图片之间的映射关系,查找并下载所述查看原图指令对应的原图片。
  4. 如权利要求1或2或3所述的方法,其特征在于,所述压缩图片的质量参数符合预置的不影响显示条件,包括:所述压缩图片的尺寸与所述原图片的尺寸相同,所述压缩图片的分辨率在第一分辨率阈值和第二分辨率阈值之间。
  5. 如权利要求4所述的方法,其特征在于,所述方法还包括:
    对所下载的原图片和/或对应的压缩图片进行后处理操作;其中,所述后处理操作包括如下操作中的一种或多种:
    利用所下载的原图片替换对应的压缩图片的操作;
    将所下载的原图片保存至与对应的压缩图片不同的目录的操作;
    将所下载的原图片在服务器的链接地址和/或对应的压缩图片分享给好友的操作。
  6. 如权利要求1或2或3所述的方法,其特征在于,所述确定移动设备中待处理的原图片的步骤,包括:
    接收用户针对一个或多个原图片产生的节省存储空间的第一指令,并将 所述第一指令对应的一个或多个原图片作为移动设备中待处理的原图片;和/或
    接收用户针对文件夹产生的节省存储空间的第二指令,并将所述第二指令对应的文件夹中原图片作为移动设备中待处理的原图片;和/或
    接收用户的节省存储空间的第三指令,并将所述第三指令中携带的日期信息对应原图片作为移动设备中待处理的原图片。
  7. 如权利要求1或2或3所述的方法,其特征在于,在所述确定移动设备中待处理的原图片的步骤之前,所述方法还包括:
    检测移动设备的剩余存储空间;
    当所述剩余存储空间低于预置容量阈值时,发出节省存储空间的提示;其中,所述图片存储空间的提示用于引导触发所述确定移动设备中待处理的原图片的操作。
  8. 如权利要求2所述的方法,其特征在于,所述将所述原图片上传至服务器的步骤,包括:
    检测移动设备当前的网络连接类型;
    当所述网络连接类型为无线保真WiFi网络连接时,将所述原图片上传至服务器;
    当所述网络连接类型并非无线保真WiFi网络连接时,返回执行检测移动设备当前的网络连接类型的操作,或者,发出将所述原图片上传至服务器的提示。
  9. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算机上运行时,将执行根据权利要求1至8中的任一项所述的基于移动设备的图片处理方法。
  10. 一种计算机可读介质,其中存储了如权利要求9所述的计算机程序。
  11. 一种基于移动设备的图片处理装置,包括:
    确定模块,配置为确定移动设备中待处理的原图片;
    压缩处理模块,配置为对所述原图片进行压缩处理,得到相应的压缩图 片;其中,所述压缩图片的质量参数符合预置的不影响显示条件;及
    删除模块,配置为从所述移动设备中删除所述原图片,并在对应位置保留所述原图片对应的压缩图片。
  12. 如权利要求11所述的装置,其特征在于,所述装置还包括:
    上传模块,配置为在所述从所述移动设备中删除所述原图片的操作之前,将所述原图片上传至服务器,并建立所述移动设备中压缩图片与所述服务器中原图片之间的映射关系。
  13. 如权利要求12所述的装置,所述装置还包括:
    下载模块,用于在接收到用户针对所述移动设备中压缩图片产生的查看原图指令后,利用所述移动设备中压缩图片与所述服务器中原图片之间的映射关系,查找并下载所述查看原图指令对应的原图片。
  14. 如权利要求11或12或13所述的装置,所述压缩图片的质量参数符合预置的不影响显示条件,包括:所述压缩图片的尺寸与所述原图片的尺寸相同,所述压缩图片的分辨率在第一分辨率阈值和第二分辨率阈值之间。
  15. 如权利要求13所述的装置,所述装置还包括:
    后处理模块,用于对所下载的原图片和/或对应的压缩图片进行后处理操作;其中,所述后处理操作包括如下操作中的一种或多种:
    利用所下载的原图片替换对应的压缩图片的操作;
    将所下载的原图片保存至与对应的压缩图片不同的目录的操作;
    将所下载的原图片在服务器的链接地址和/或对应的压缩图片分享给好友的操作。
  16. 如权利要求11或12或13所述的装置,所述确定模块,包括:
    第一确定单元,用于接收用户针对一个或多个原图片产生的节省存储空间的第一指令,并将所述第一指令对应的一个或多个原图片作为移动设备中待处理的原图片;和/或
    第二确定单元,用于接收用户针对文件夹产生的节省存储空间的第二指令,并将所述第二指令对应的文件夹中原图片作为移动设备中待处理的原图片;和/或
    第三确定单元,用于接收用户的节省存储空间的第三指令,并将所述第三指令中携带的日期信息对应原图片作为移动设备中待处理的原图片。
  17. 如权利要求11或12或13所述的装置,所述装置还包括:
    空间检测模块,用于在所述确定移动设备中待处理的原图片的操作之前,检测移动设备的剩余存储空间;
    提示模块,用于在所述剩余存储空间低于预置容量阈值时,发出节省存储空间的提示;其中,所述图片存储空间的提示用于引导触发所述确定移动设备中待处理的原图片的操作。
  18. 如权利要求12所述的装置,所述上传模块,包括:
    网络检测单元,用于检测移动设备当前的网络连接类型;
    上传单元,用于在所述网络连接类型为无线保真WiFi网络连接时,将所述原图片上传至服务器;
    等待提示单元,用于在所述网络连接类型并非无线保真WiFi网络连接时,返回执行检测移动设备当前的网络连接类型的操作,或者,发出将所述原图片上传至服务器的提示。
PCT/CN2015/095503 2014-12-27 2015-11-25 一种基于移动设备的图片处理方法和装置 WO2016101757A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410836039.7A CN104572922A (zh) 2014-12-27 2014-12-27 一种基于移动设备的图片处理方法和装置
CN2014108360397 2014-12-27

Publications (1)

Publication Number Publication Date
WO2016101757A1 true WO2016101757A1 (zh) 2016-06-30

Family

ID=53088984

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095503 WO2016101757A1 (zh) 2014-12-27 2015-11-25 一种基于移动设备的图片处理方法和装置

Country Status (2)

Country Link
CN (1) CN104572922A (zh)
WO (1) WO2016101757A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444143A (zh) * 2020-02-26 2020-07-24 车智互联(北京)科技有限公司 图片集中的图片展示方法、装置及移动终端

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572922A (zh) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 一种基于移动设备的图片处理方法和装置
CN104834713A (zh) * 2015-05-08 2015-08-12 武汉网幂科技有限公司 对终端设备的图像数据进行存储及传输处理的方法及系统
CN104966309B (zh) * 2015-06-25 2018-05-22 桂林力港网络科技有限公司 一种带透明度图像的自动压缩的系统及处理方法
CN105005598A (zh) * 2015-07-02 2015-10-28 成都亿邻通科技有限公司 连拍照片的处理方法
CN105045844A (zh) * 2015-07-02 2015-11-11 成都亿邻通科技有限公司 连拍照片的存储方法
CN105007412A (zh) * 2015-07-02 2015-10-28 成都亿邻通科技有限公司 移动终端的照片存储方法
CN105302899A (zh) * 2015-10-23 2016-02-03 努比亚技术有限公司 一种移动终端和实现图片处理的方法
CN105430283A (zh) * 2015-12-24 2016-03-23 广东欧珀移动通信有限公司 控制方法、控制装置及拍照系统
CN106933702A (zh) * 2015-12-30 2017-07-07 深圳创锐思科技有限公司 一种智能终端存储空间管理的方法、装置及智能终端
CN105787868B (zh) * 2016-02-18 2019-04-12 北京金山安全软件有限公司 一种图片压缩方法、装置及电子设备
CN105912572A (zh) * 2016-03-30 2016-08-31 深圳市金立通信设备有限公司 一种数据管理的方法及终端
CN105912657A (zh) * 2016-04-11 2016-08-31 乐视控股(北京)有限公司 应用程序中图片自动检测和压缩方法及系统
CN106060382A (zh) * 2016-05-27 2016-10-26 北京金山安全软件有限公司 一种图像处理方法、装置及电子设备
CN107566861A (zh) * 2016-06-30 2018-01-09 深圳市九洲电器有限公司 一种数字电视设备图片存储方法及系统
CN106528602A (zh) * 2016-09-23 2017-03-22 北京奇虎科技有限公司 节省智能终端存储空间的方法及装置
CN106874444B (zh) * 2017-02-09 2021-03-09 北京小米移动软件有限公司 图片处理方法及装置
CN106874464A (zh) * 2017-02-15 2017-06-20 济南浪潮高新科技投资发展有限公司 一种图片访问方法、装置、可读介质及存储控制器
CN109033311A (zh) * 2018-07-17 2018-12-18 北京东软医疗设备有限公司 图像获取方法及装置、设备及机器可读存储介质
CN115277674A (zh) * 2022-07-19 2022-11-01 广州博冠信息科技有限公司 图片压缩的方法、装置、电子设备、介质及程序产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1519263A2 (en) * 2003-09-29 2005-03-30 Pioneer Corporation Image output apparatus, image output method, and image display system
CN102665039A (zh) * 2012-05-17 2012-09-12 北京工业大学 一种数码相机以及利用云计算平台对相机进行操作的方法
CN103647916A (zh) * 2013-12-06 2014-03-19 北京趣拿信息技术有限公司 图片的存储方法及装置
CN104104995A (zh) * 2014-07-18 2014-10-15 北京网秦天下科技有限公司 图片显示方法和装置
CN104572922A (zh) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 一种基于移动设备的图片处理方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557551A (zh) * 2009-05-11 2009-10-14 成都市华为赛门铁克科技有限公司 一种移动终端访问云服务的方法、装置和通信系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1519263A2 (en) * 2003-09-29 2005-03-30 Pioneer Corporation Image output apparatus, image output method, and image display system
CN102665039A (zh) * 2012-05-17 2012-09-12 北京工业大学 一种数码相机以及利用云计算平台对相机进行操作的方法
CN103647916A (zh) * 2013-12-06 2014-03-19 北京趣拿信息技术有限公司 图片的存储方法及装置
CN104104995A (zh) * 2014-07-18 2014-10-15 北京网秦天下科技有限公司 图片显示方法和装置
CN104572922A (zh) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 一种基于移动设备的图片处理方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444143A (zh) * 2020-02-26 2020-07-24 车智互联(北京)科技有限公司 图片集中的图片展示方法、装置及移动终端
CN111444143B (zh) * 2020-02-26 2024-02-23 车智互联(北京)科技有限公司 图片集中的图片展示方法、装置及移动终端

Also Published As

Publication number Publication date
CN104572922A (zh) 2015-04-29

Similar Documents

Publication Publication Date Title
WO2016101757A1 (zh) 一种基于移动设备的图片处理方法和装置
US10244177B2 (en) Method for processing image to generate relevant data based on user inputs and electronic device supporting the same
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
JP4360381B2 (ja) 情報処理装置、および情報処理方法、並びにコンピュータ・プログラム
JP5658823B2 (ja) 重複画像に関するメタデータの統合
US10430047B2 (en) Managing content on an electronic device
RU2740785C2 (ru) Способ и оборудование обработки изображений, электронное устройство и графический пользовательский интерфейс
CN112770011B (zh) 用于建议供删除的图像文件的系统、方法及计算机可读介质
US20150156247A1 (en) Client-Side Bulk Uploader
US20150169944A1 (en) Image evaluation apparatus, image evaluation method, and non-transitory computer readable medium
WO2019047508A1 (zh) 电子书评论信息的处理方法、电子设备以及存储介质
US20170329502A1 (en) Method and device for processing image
US11036792B2 (en) Method for designating and tagging album of stored photographs in touchscreen terminal, computer-readable recording medium, and terminal
AU2014271204B2 (en) Image recognition of vehicle parts
WO2017107855A1 (zh) 一种图片搜索方法及装置
CN109246467A (zh) 标记待分享视频的方法、装置、摄像机和智能手机
CN109697129A (zh) 一种信息分享方法、设备及计算机可读存储介质
US9113135B2 (en) Image advocacy in portable computing devices
US11132167B2 (en) Managing display of content on one or more secondary device by primary device
US20170123637A1 (en) Electronic device and method for managing image
CN105320514A (zh) 图片处理方法及装置
CN109977247B (zh) 图像处理方法和图像处理装置
US10776314B2 (en) Electronic apparatus and method for temporarily storing data thereof
WO2022127609A1 (zh) 图像处理方法及电子设备
US20240029242A1 (en) System and method for image exploration using areas of interest

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: 15871826

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: 15871826

Country of ref document: EP

Kind code of ref document: A1