CN110941596A - Disk space release method and device, computing equipment and computer storage medium - Google Patents

Disk space release method and device, computing equipment and computer storage medium Download PDF

Info

Publication number
CN110941596A
CN110941596A CN201811108147.7A CN201811108147A CN110941596A CN 110941596 A CN110941596 A CN 110941596A CN 201811108147 A CN201811108147 A CN 201811108147A CN 110941596 A CN110941596 A CN 110941596A
Authority
CN
China
Prior art keywords
file
compressed
compression
disk space
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811108147.7A
Other languages
Chinese (zh)
Inventor
张志勇
陈耀攀
邹贵强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811108147.7A priority Critical patent/CN110941596A/en
Publication of CN110941596A publication Critical patent/CN110941596A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a disk space release method, a device, a computing device and a computer storage medium, wherein the method comprises the following steps: when the requirement for releasing the disk space is met, displaying an interface for prompting the compression of the disk file; according to the compression instruction received by the interface, executing compression operation on the file to be compressed to obtain a compressed file; and storing the compressed file and releasing the disk space occupied by the file to be compressed. Therefore, by using the scheme of the invention, when the requirement of releasing the disk space is met, the interface for prompting the user to compress the disk file is displayed for the user to select, the compression operation corresponding to the compression instruction is executed on the file to be compressed according to the compression instruction received by the interface, the compressed file is obtained, the compressed file is stored, the disk space occupied by the file to be compressed is released, and the utilization rate of the disk is improved.

Description

Disk space release method and device, computing equipment and computer storage medium
Technical Field
The invention relates to the technical field of information processing, in particular to a disk space release method, a disk space release device, computing equipment and a computer storage medium.
Background
Along with the continuous reinforcing of intelligent terminal equipment function of shooing and making a video recording, the quality of shooing obtains promoting greatly, and meanwhile, the shared disk space of the photo and the video that obtain of shooing also is bigger and bigger. When pictures and videos are stored in computing equipment with a shooting function, such as mobile phones, tablet computers, digital cameras and the like, the storage speed is first, the pictures and the videos are stored in a default storage format, and a disk space with a large proportion of the computing equipment is occupied. When the disk space is seriously insufficient, a user needs to manually transfer or clean the photo and video data, the manual operation mode is complicated and is not timely enough, and the use efficiency of the disk is influenced.
Disclosure of Invention
In view of the above, the present invention has been made to provide a disk space releasing method, apparatus, computing device and computer storage medium that overcome or at least partially solve the above-mentioned problems.
According to an aspect of the invention, there is provided a method comprising: when the requirement for releasing the disk space is met, displaying an interface for prompting the compression of the disk file; according to the compression instruction received by the interface, executing compression operation on the file to be compressed to obtain a compressed file; and storing the compressed file and releasing the disk space occupied by the file to be compressed.
Further, the meeting the disk space release requirement further includes: detecting that the occupancy rate of the disk space is higher than a preset occupancy rate threshold value; alternatively, a user-triggered disk space release command is detected.
Further, the interface comprises: at least one compression level option;
the method comprises the following steps of executing compression operation on a file to be compressed according to a compression instruction received by an interface, and specifically: and executing compression operation corresponding to the selected compression level option on the file to be compressed according to a compression instruction triggered by the user selecting any compression level option received by the interface to obtain the compressed file.
Further, the interface comprises: a file range to be compressed is designated;
the method comprises the following steps of executing compression operation on a file to be compressed according to a compression instruction received by an interface, and specifically: and according to a compression instruction which is received by an interface and is triggered after a user designates the range of the file to be compressed by using the designated option of the range of the file to be compressed, executing compression operation on the file to be compressed belonging to the range of the file to be compressed to obtain a compressed file.
Further, the range of the file to be compressed includes: the method comprises the steps of selecting a shooting time of a file to be compressed, selecting a shooting place of the file to be compressed, selecting a name of the file to be compressed, selecting a size of the file to be compressed and/or selecting a storage directory of the file to be compressed.
Further, the file to be compressed comprises pictures and/or videos.
Further, the executing the compression operation on the file to be compressed specifically includes: and performing lossy compression operation on the file to be compressed.
Further, the storing the compressed file and releasing the disk space occupied by the file to be compressed further includes:
and storing the compressed file in an original storage directory of the file to be compressed, and releasing a disk space occupied by the file to be compressed under the original storage directory.
According to another aspect of the present invention, there is provided a disk space releasing apparatus, comprising: the display module is suitable for displaying an interface for prompting the compression of the disk file when the disk space release requirement is met; the compression module executes compression operation on the file to be compressed according to the compression instruction received by the interface to obtain a compressed file; and the release module is used for storing the compressed file and releasing the disk space occupied by the file to be compressed.
Further, the meeting the disk space release requirement further includes: detecting that the occupancy rate of the disk space is higher than a preset occupancy rate threshold value; alternatively, a user-triggered disk space release command is detected.
Further, the interface comprises: at least one compression level option;
the compression module is further adapted to: and executing compression operation corresponding to the selected compression level option on the file to be compressed according to a compression instruction triggered by the user selecting any compression level option received by the interface to obtain the compressed file.
Further, the interface comprises: a file range to be compressed is designated;
the compression module is further adapted to: and according to a compression instruction which is received by an interface and is triggered after a user designates the range of the file to be compressed by using the designated option of the range of the file to be compressed, executing compression operation on the file to be compressed belonging to the range of the file to be compressed to obtain a compressed file.
Further, the range of the file to be compressed includes: the method comprises the steps of selecting a shooting time of a file to be compressed, selecting a shooting place of the file to be compressed, selecting a name of the file to be compressed, selecting a size of the file to be compressed and/or selecting a storage directory of the file to be compressed.
Further, the file to be compressed comprises pictures and/or videos.
Further, the compression module is further adapted to: and performing lossy compression operation on the file to be compressed.
Further, the compression module is further adapted to: and storing the compressed file in an original storage directory of the file to be compressed, and releasing a disk space occupied by the file to be compressed under the original storage directory.
According to yet another aspect of the present invention, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the disk space releasing method.
According to still another aspect of the present invention, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform operations corresponding to the above-mentioned disk space releasing method.
According to the disk space release method, the disk space release device, the computing equipment and the computer storage medium, when the disk space release requirement is met, an interface for prompting the compression of a disk file is displayed; according to the compression instruction received by the interface, executing compression operation on the file to be compressed to obtain a compressed file; and storing the compressed file and releasing the disk space occupied by the file to be compressed. By using the scheme of the invention, when the requirement of releasing the disk space is met, the compression operation is executed on the file to be compressed according to the compression instruction received by the interface to obtain the compressed file, and the compressed file is stored at the same time, so that the disk space occupied by the file to be compressed is released, and the disk use efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram illustrating a method for freeing disk space according to one embodiment of the present invention;
FIG. 2 is a flow chart of a method for freeing disk space according to another embodiment of the present invention;
FIG. 3 shows a functional block diagram of a disk space freeing device according to one embodiment of the present invention;
FIG. 4 shows a schematic structural diagram of a computing device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 is a flow chart illustrating a method for freeing disk space according to an embodiment of the present invention. The method can be applied to but not limited to intelligent mobile terminals, such as smart phones and tablet computers with photographing/shooting functions, and can also be applied to other computing devices with storage and processing functions, such as personal computers, servers and the like. As shown in fig. 1, the method comprises the steps of:
step S101: and when the requirement of releasing the disk space is met, displaying an interface for prompting the compression of the disk file.
In this step, when it is detected that the disk space release requirement is met, an interface for prompting to compress the disk file is displayed for a user to select.
Wherein, satisfying the disk space release requirement further comprises: and detecting that the occupancy rate of the disk space is higher than a preset occupancy rate threshold value, or detecting a disk space release command triggered by a user. For example, it is periodically checked whether the occupancy of the disk space is higher than a preset occupancy threshold. Alternatively, the detection is triggered manually by the user, for example, when it is detected that the user actively triggers a disk space release command, then the disk space release requirement is satisfied. The user can decide whether to compress the disk file according to the usage situation, for example, when the user sees that the disk remaining space is small, or when the user feels that the system runs slowly, the user can issue a disk space release command.
In one embodiment of the present invention, the interface comprises: at least one compression level option. And when the condition that the disk space release requirement is met is detected, displaying an interface containing at least one compression level option for a user to select so as to generate a compression instruction. For example, a 50% reduction in mass of a compression object releases 70% of the disk space or a 30% reduction in mass of a compression object releases 50% of the disk space. The compression level option may be preset, for example, a setting interface for setting the compression level option is displayed, and the compression level option is determined according to compression level setting information received by the setting interface. The compression level option may also be fixedly set in the program in advance. When the requirement of releasing the disk space is met, an interface containing at least one compression level option is displayed, a user is prompted to select the compression level option, and different levels of compression are performed on the disk file according to the requirement of the user.
In another embodiment of the present invention, the interface comprises: and (5) selecting a range specification option of the file to be compressed. The range designation options of the file to be compressed comprise: the method comprises the steps of selecting a shooting time of a file to be compressed, selecting a shooting place of the file to be compressed, selecting a name of the file to be compressed, selecting a size of the file to be compressed and/or selecting a storage directory of the file to be compressed. The file to be compressed comprises pictures and/or videos. When the requirement for releasing the disk space is met, displaying an interface containing a file range designation option to be compressed, prompting a user to select the file range designation option to be compressed, and compressing the disk file according to the file range to be compressed selected by the user.
In a further embodiment of the invention, the interface includes at least one compression level option and a file range designation option to be compressed. And when the requirement of releasing the disk space is met, displaying an interface containing at least one compression grade option and a file range specification option to be compressed, and prompting a user to select the compression grade option and the file range specification option to be compressed according to the requirement.
Step S102: and executing compression operation on the file to be compressed according to the compression instruction received by the interface to obtain the compressed file.
In this step, the compression instruction received by the interface includes a compression instruction triggered by the user selecting any compression level option and/or a compression instruction triggered by the user specifying the range of the file to be compressed according to the range specification option of the file to be compressed.
In a specific embodiment of the present invention, according to a compression instruction triggered by a user selecting any compression level option received by an interface, a compression operation corresponding to the selected compression level option is performed on a file to be compressed, so as to obtain a compressed file.
In another specific embodiment of the present invention, according to a compression instruction triggered after a user specifies a range of a file to be compressed by using a file range specification option received by an interface, a compression operation is performed on the file to be compressed belonging to the range of the file to be compressed, so as to obtain a compressed file.
In another specific embodiment of the present invention, according to a compression instruction received by the interface and triggered by a user selecting any compression level option and a compression instruction triggered by a user specifying a range of a file to be compressed by using a file range specification option, a compression operation corresponding to the selected compression level option is performed on the file to be compressed belonging to the range of the file to be compressed, so as to obtain a compressed file.
The method specifically comprises the following steps of: and performing lossy compression operation on the file to be compressed. For pictures, the quality of a compressed object is sacrificed to release the disk space of a corresponding proportion under the condition that the visual quality of the naked eyes is not reduced in the lossy compression operation. For video, lossy compression operation needs to sacrifice the quality of the compressed object to release the corresponding proportion of disk space without reducing the visual quality of the naked eye and the audio-visual effect of the ear.
Step S103: and storing the compressed file and releasing the disk space occupied by the file to be compressed.
In this step, the compressed file is stored in the original storage directory of the file to be compressed, and the disk space occupied by the file to be compressed in the original storage directory is released.
According to the disk space release method provided by the embodiment of the invention, when the disk space release requirement is met, the corresponding compression operation is executed on the file to be compressed according to the compression instruction received by the interface, the compressed file is obtained, the compressed file is stored at the same time, the disk space occupied by the file to be compressed is released, and the disk utilization rate is improved.
FIG. 2 is a flow chart of a method for freeing disk space according to another embodiment of the present invention. The method can be applied to but not limited to intelligent mobile terminals, such as smart phones and tablet computers with photographing/shooting functions, and can also be applied to other computing devices with storage and processing functions, such as personal computers, servers and the like. As shown in fig. 2, the method comprises the steps of:
step S201: and detecting whether the occupancy rate of the disk space is higher than a preset occupancy rate threshold value at regular time.
In this step, it is automatically detected at a set time point whether the occupancy rate of the disk space is higher than a preset occupancy rate threshold, and when it is detected that the occupancy rate of the disk space is higher than the preset occupancy rate threshold, the disk space release requirement is met. The set point in time may be a fixed time, such as 09:00 a day, or 09:00 a monday, or 09:00 a first day of a month. It is also possible that the automatic detection of the occupancy of the disk space is performed every fixed time (for example, one week, one month, one half year, etc.) from the day of starting the use of the computing device. The preset occupancy rate threshold value can be a default value of a system, and can also be customized by a user. The value may be a higher value to avoid frequent compression, such as a higher value of 80% or 90% for the preset occupancy threshold.
Step S202: and when the occupancy rate of the disk space is detected to be higher than the preset occupancy rate threshold value, displaying an interface containing a compression grade option and a file range designation option to be compressed for a user to select.
When the requirement for releasing the disk space is met, an interface containing a plurality of compression grade options and a to-be-compressed file range designation option is displayed, and a user is prompted to select the compression grade option and the to-be-compressed file range designation option as required so as to compress the disk file. The compression level is related to the compression rate and the disk space released after compression, for example, a 50% reduction in the mass of a compression object releases a 70% reduction in the disk space, a 30% reduction in the mass of a compression object releases a 50% reduction in the disk space, and the like.
The options for specifying the range of the file to be compressed comprise: the method comprises the steps of selecting a shooting time specification option of a file to be compressed, a shooting place specification option of the file to be compressed, a name specification option of the file to be compressed, a size specification option of the file to be compressed, a storage directory specification option of the file to be compressed and the like.
Step S203: and according to the compression instruction received by the interface, executing lossy compression operation on the file to be compressed to obtain a compressed file.
In this step, according to a compression instruction received by the interface and triggered by the user selecting a certain compression level option and a compression instruction triggered by the user specifying the range of the file to be compressed by using the range specification option of the file to be compressed, the lossy compression operation corresponding to the selected compression level option is performed on the file to be compressed belonging to the range of the file to be compressed, and the compressed file is obtained.
The lossy compression operation can sacrifice the quality of the compressed object to release the corresponding proportion of disk space without degrading the visual quality of the eye or the audio-visual effect of the ear.
Step S204: and storing the compressed file and releasing the disk space occupied by the file to be compressed.
In this step, the compressed file is stored in the original storage directory of the file to be compressed, and the disk space occupied by the file to be compressed in the original storage directory is released.
According to the disk space release method provided by the embodiment of the invention, when the disk space release requirement is met, the corresponding compression operation is executed on the file to be compressed according to the compression instruction received by the interface, the compressed file is obtained, the compressed file is stored at the same time, the disk space occupied by the file to be compressed is released, and the disk utilization rate is improved.
FIG. 3 shows a functional block diagram of a disk space freeing device according to one embodiment of the present invention. The device comprises: a display module 301, a compression module 302, and a release module 303.
The display module 301 is adapted to display an interface for prompting to compress a disk file when a disk space release requirement is met.
The compression module 302 executes a compression operation on the file to be compressed according to the compression instruction received by the interface, so as to obtain a compressed file.
The release module 303 stores the compressed file and releases the disk space occupied by the file to be compressed.
In an optional manner, satisfying the disk space release requirement further comprises:
detecting that the occupancy rate of the disk space is higher than a preset occupancy rate threshold value;
alternatively, a user-triggered disk space release command is detected.
In an alternative form, the interface comprises: at least one compression level option;
the compression module 302 is further adapted to: and executing compression operation corresponding to the selected compression level option on the file to be compressed according to a compression instruction triggered by the user selecting any compression level option received by the interface to obtain the compressed file.
In an alternative form, the interface comprises: a file range to be compressed is designated;
the compression module 302 is further adapted to: and according to a compression instruction which is received by the interface and is triggered after the user designates the range of the file to be compressed by using the designated option of the range of the file to be compressed, executing compression operation on the file to be compressed belonging to the range of the file to be compressed to obtain the compressed file.
In an alternative mode, the file range to be compressed specifying options include: the method comprises the steps of selecting a shooting time of a file to be compressed, selecting a shooting place of the file to be compressed, selecting a name of the file to be compressed, selecting a size of the file to be compressed and/or selecting a storage directory of the file to be compressed.
In an alternative, the file to be compressed comprises pictures and/or video.
In an alternative approach, the compression module 302 is further adapted to: and performing lossy compression operation on the file to be compressed.
In an alternative approach, the compression module 302 is further adapted to: and storing the compressed file in an original storage directory of the file to be compressed, and releasing the disk space occupied by the file to be compressed under the original storage directory.
The specific structure and operation principle of each module described above may refer to the description of the corresponding step in the method embodiment, and are not described herein again.
According to the disk space release device provided by the embodiment of the invention, when the disk space release requirement is met, the corresponding compression operation is executed on the file to be compressed according to the compression instruction received by the interface, so that the compressed file is obtained, the compressed file is stored at the same time, the disk space occupied by the file to be compressed is released, and the disk utilization rate is improved.
The embodiment of the application provides a non-volatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the disk space releasing method in any method embodiment.
Fig. 4 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein:
the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408.
A communication interface 404 for communicating with network elements of other devices, such as clients or other servers.
The processor 402 is configured to execute the program 410, and may specifically perform relevant steps in the above-described embodiment of the disk space releasing method.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to perform the following operations:
when the requirement for releasing the disk space is met, displaying an interface for prompting the compression of the disk file;
executing compression operation on a file to be compressed according to a compression instruction received by an interface to obtain a compressed file; the file to be compressed comprises pictures and/or videos;
and storing the compressed file and releasing the disk space occupied by the file to be compressed.
In an optional manner, satisfying the disk space release requirement further comprises:
detecting that the occupancy rate of the disk space is higher than a preset occupancy rate threshold value;
alternatively, a user-triggered disk space release command is detected.
In an alternative form, the interface comprises: at least one compression level option; the program 410 may be further specifically configured to cause the processor 402 to perform the following operations: and executing compression operation corresponding to the selected compression level option on the file to be compressed according to a compression instruction triggered by the user selecting any compression level option received by the interface to obtain the compressed file.
In an alternative form, the interface comprises: a file range to be compressed is designated; the program 410 may be further specifically configured to cause the processor 402 to perform the following operations: and according to a compression instruction which is received by the interface and is triggered after the user designates the range of the file to be compressed by using the designated option of the range of the file to be compressed, executing compression operation on the file to be compressed belonging to the range of the file to be compressed to obtain the compressed file.
In an alternative mode, the file range to be compressed specifying options include: the method comprises the steps of selecting a shooting time of a file to be compressed, selecting a shooting place of the file to be compressed, selecting a name of the file to be compressed, selecting a size of the file to be compressed and/or selecting a storage directory of the file to be compressed.
In an alternative manner, the program 410 may be further specifically configured to cause the processor 402 to perform the following operations: and performing lossy compression operation on the file to be compressed.
In an alternative manner, the program 410 may be further specifically configured to cause the processor 402 to perform the following operations: and storing the compressed file in an original storage directory of the file to be compressed, and releasing the disk space occupied by the file to be compressed under the original storage directory.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a disk space freeing device according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses:
A1. a method for freeing disk space, wherein the method comprises:
when the requirement for releasing the disk space is met, displaying an interface for prompting the compression of the disk file;
according to the compression instruction received by the interface, executing compression operation on the file to be compressed to obtain a compressed file;
and storing the compressed file and releasing the disk space occupied by the file to be compressed.
The method according to A1, wherein the meeting of the disk space release requirement further includes:
detecting that the occupancy rate of the disk space is higher than a preset occupancy rate threshold value;
alternatively, a user-triggered disk space release command is detected.
The method of A1, wherein the interface comprises: at least one compression level option;
the method comprises the following steps of executing compression operation on a file to be compressed according to a compression instruction received by an interface, and specifically: and executing compression operation corresponding to the selected compression level option on the file to be compressed according to a compression instruction triggered by the user selecting any compression level option received by the interface to obtain the compressed file.
The method of A1 or A3, wherein the interface comprises: a file range to be compressed is designated;
the method comprises the following steps of executing compression operation on a file to be compressed according to a compression instruction received by an interface, and specifically: and according to a compression instruction which is received by an interface and is triggered after a user designates the range of the file to be compressed by using the designated option of the range of the file to be compressed, executing compression operation on the file to be compressed belonging to the range of the file to be compressed to obtain a compressed file.
The method of A4, wherein the file range to be compressed is selected from the following options: the method comprises the steps of selecting a shooting time of a file to be compressed, selecting a shooting place of the file to be compressed, selecting a name of the file to be compressed, selecting a size of the file to be compressed and/or selecting a storage directory of the file to be compressed.
A6, the method according to A1 or A2, wherein the file to be compressed comprises pictures and/or videos.
A7, according to the method in A1, wherein the compressing operation performed on the file to be compressed specifically comprises: and performing lossy compression operation on the file to be compressed.
The method according to A1, wherein the storing the compressed file and releasing the disk space occupied by the file to be compressed further comprises:
and storing the compressed file in an original storage directory of the file to be compressed, and releasing a disk space occupied by the file to be compressed under the original storage directory.
B9. A disk space releasing apparatus, wherein the apparatus comprises:
the display module is suitable for displaying an interface for prompting the compression of the disk file when the disk space release requirement is met;
the compression module executes compression operation on the file to be compressed according to the compression instruction received by the interface to obtain a compressed file;
and the release module is used for storing the compressed file and releasing the disk space occupied by the file to be compressed.
The apparatus of B10, wherein the meeting the disk space release requirement further comprises:
detecting that the occupancy rate of the disk space is higher than a preset occupancy rate threshold value;
alternatively, a user-triggered disk space release command is detected.
The apparatus of B11, wherein the interface comprises: at least one compression level option;
the compression module is further adapted to: and executing compression operation corresponding to the selected compression level option on the file to be compressed according to a compression instruction triggered by the user selecting any compression level option received by the interface to obtain the compressed file.
The device of B12. B9 or B11, wherein the interface comprises: a file range to be compressed is designated;
the compression module is further adapted to: and according to a compression instruction which is received by an interface and is triggered after a user designates the range of the file to be compressed by using the designated option of the range of the file to be compressed, executing compression operation on the file to be compressed belonging to the range of the file to be compressed to obtain a compressed file.
B13, the device according to B12, wherein the file range to be compressed specifying options include: the method comprises the steps of selecting a shooting time of a file to be compressed, selecting a shooting place of the file to be compressed, selecting a name of the file to be compressed, selecting a size of the file to be compressed and/or selecting a storage directory of the file to be compressed.
B14. the device according to B9 or B10, wherein the file to be compressed comprises pictures and/or videos.
The apparatus of B15, wherein the compression module is further adapted to: and performing lossy compression operation on the file to be compressed.
The apparatus of B16, wherein the compression module is further adapted to: and storing the compressed file in an original storage directory of the file to be compressed, and releasing a disk space occupied by the file to be compressed under the original storage directory.
C17. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the disk space freeing method of any one of A1-A8.
D18. A computer storage medium having stored therein at least one executable instruction that causes a processor to perform a method of disk space release as described in any of a 1-A8.

Claims (10)

1. A method for freeing disk space, wherein the method comprises:
when the requirement for releasing the disk space is met, displaying an interface for prompting the compression of the disk file;
according to the compression instruction received by the interface, executing compression operation on the file to be compressed to obtain a compressed file;
and storing the compressed file and releasing the disk space occupied by the file to be compressed.
2. The method of claim 1, wherein said satisfying disk space release requirements further comprises:
detecting that the occupancy rate of the disk space is higher than a preset occupancy rate threshold value;
alternatively, a user-triggered disk space release command is detected.
3. The method of claim 1, wherein the interface comprises: at least one compression level option;
the method comprises the following steps of executing compression operation on a file to be compressed according to a compression instruction received by an interface, and specifically: and executing compression operation corresponding to the selected compression level option on the file to be compressed according to a compression instruction triggered by the user selecting any compression level option received by the interface to obtain the compressed file.
4. The method of claim 1 or 3, wherein the interface comprises: a file range to be compressed is designated;
the method comprises the following steps of executing compression operation on a file to be compressed according to a compression instruction received by an interface, and specifically: and according to a compression instruction which is received by an interface and is triggered after a user designates the range of the file to be compressed by using the designated option of the range of the file to be compressed, executing compression operation on the file to be compressed belonging to the range of the file to be compressed to obtain a compressed file.
5. The method of claim 4, wherein the file range to be compressed specifying options comprise: the method comprises the steps of selecting a shooting time of a file to be compressed, selecting a shooting place of the file to be compressed, selecting a name of the file to be compressed, selecting a size of the file to be compressed and/or selecting a storage directory of the file to be compressed.
6. The method according to claim 1 or 2, wherein the file to be compressed comprises a picture and/or a video.
7. The method according to claim 1, wherein the performing compression operation on the file to be compressed specifically comprises: and performing lossy compression operation on the file to be compressed.
8. A disk space releasing apparatus, wherein the apparatus comprises:
the display module is suitable for displaying an interface for prompting the compression of the disk file when the disk space release requirement is met;
the compression module executes compression operation on the file to be compressed according to the compression instruction received by the interface to obtain a compressed file;
and the release module is used for storing the compressed file and releasing the disk space occupied by the file to be compressed.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the disk space releasing method according to any one of claims 1-7.
10. A computer storage medium having stored therein at least one executable instruction that causes a processor to perform the method of disk space release according to any of claims 1-7.
CN201811108147.7A 2018-09-21 2018-09-21 Disk space release method and device, computing equipment and computer storage medium Pending CN110941596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811108147.7A CN110941596A (en) 2018-09-21 2018-09-21 Disk space release method and device, computing equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811108147.7A CN110941596A (en) 2018-09-21 2018-09-21 Disk space release method and device, computing equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN110941596A true CN110941596A (en) 2020-03-31

Family

ID=69905318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811108147.7A Pending CN110941596A (en) 2018-09-21 2018-09-21 Disk space release method and device, computing equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110941596A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113346909A (en) * 2021-05-11 2021-09-03 清华大学 Data compression method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070065032A1 (en) * 2005-09-22 2007-03-22 Hernandez Albert A Method and apparatus for boundary-based image compression
CN102684705A (en) * 2012-05-30 2012-09-19 奇智软件(北京)有限公司 Method and device for data compression
CN105025166A (en) * 2015-07-09 2015-11-04 深圳市金立通信设备有限公司 File processing method and terminal
CN106066770A (en) * 2016-05-25 2016-11-02 北京小米移动软件有限公司 Memory space management and device
CN107395716A (en) * 2017-07-19 2017-11-24 河南神州数码索贝科技有限公司 A kind of mobile terminal picture compression method for uploading and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070065032A1 (en) * 2005-09-22 2007-03-22 Hernandez Albert A Method and apparatus for boundary-based image compression
CN102684705A (en) * 2012-05-30 2012-09-19 奇智软件(北京)有限公司 Method and device for data compression
CN105025166A (en) * 2015-07-09 2015-11-04 深圳市金立通信设备有限公司 File processing method and terminal
CN106066770A (en) * 2016-05-25 2016-11-02 北京小米移动软件有限公司 Memory space management and device
CN107395716A (en) * 2017-07-19 2017-11-24 河南神州数码索贝科技有限公司 A kind of mobile terminal picture compression method for uploading and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113346909A (en) * 2021-05-11 2021-09-03 清华大学 Data compression method and device

Similar Documents

Publication Publication Date Title
EP2722850B1 (en) Method for generating thumbnail image and electronic device thereof
CN104869305B (en) Method and apparatus for processing image data
CN108845861B (en) Method and device for realizing virtual camera
CN107633541B (en) Method and device for generating image special effect
EP3200446A1 (en) Method and apparatus for generating high dynamic range image
CN108829469B (en) Application page display method and device
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
CN105320695A (en) Picture processing method and device
CN111447370B (en) Camera access method, camera access device, terminal equipment and readable storage medium
US9064349B2 (en) Computer-implemented image composition method and apparatus using the same
CN103702032A (en) Image processing method, device and terminal equipment
EP3239922A1 (en) Picture processing method and device
CN103826064A (en) Image processing method, device and handheld electronic equipment
CN108228278B (en) Method and device for loading video desktop
CN109791703B (en) Generating three-dimensional user experience based on two-dimensional media content
WO2020006859A1 (en) Image cache cleaning method and device, terminal device and medium
CN114286117A (en) Multi-platform multi-application live broadcast method and system, live broadcast equipment and storage medium
CN106610828B (en) Android system-based GIF animation playing method and device
CN110941596A (en) Disk space release method and device, computing equipment and computer storage medium
US9076207B1 (en) Image processing method, system and electronic device
CN106933702A (en) A kind of method of intelligent terminal storage space management, device and intelligent terminal
CN108876782A (en) Recall video creation method and relevant apparatus
CN111045576B (en) Display control method, display control device, terminal equipment and electronic equipment
US10958955B1 (en) System for generating modified video output
CN103338299A (en) Image processing method, image processing device and image processing terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination