CN107515704A - Method and device for previewing compressed file - Google Patents
Method and device for previewing compressed file Download PDFInfo
- Publication number
- CN107515704A CN107515704A CN201710661806.9A CN201710661806A CN107515704A CN 107515704 A CN107515704 A CN 107515704A CN 201710661806 A CN201710661806 A CN 201710661806A CN 107515704 A CN107515704 A CN 107515704A
- Authority
- CN
- China
- Prior art keywords
- file
- type
- preview image
- upper limit
- file type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 230000006837 decompression Effects 0.000 claims abstract description 47
- 230000006835 compression Effects 0.000 claims description 7
- 238000007906 compression Methods 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 238000009434 installation Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 230000015572 biosynthetic process Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- MKIMSXGUTQTKJU-UHFFFAOYSA-N Propamocarb hydrochloride Chemical compound [Cl-].CCCOC(=O)NCCC[NH+](C)C MKIMSXGUTQTKJU-UHFFFAOYSA-N 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to a computer technology, in particular to a method and a device for previewing a compressed file, which are used for improving the identifiability of the compressed file and improving the operation efficiency of a user. The method comprises the following steps: the intelligent terminal firstly determines the file types and the total number of the file types of all files contained in the compressed file through scanning, then determines the total number upper limit of display files preset corresponding to the total number of the file types, respectively determines the sub-number upper limit of the display files preset corresponding to each file type, and finally partially decompresses the files with corresponding numbers in the corresponding file types according to the sub-number upper limit of the display files corresponding to each file type, so as to generate corresponding preview images. Therefore, the preview image of each file is generated in a partial decompression mode, the identification of the compressed file is improved, too long operation time is not occupied, a user can confirm the content of the compressed file in the shortest time, and the operation efficiency of the user is effectively improved.
Description
Technical field
The present invention relates to computer technology, more particularly to a kind of method and device of preview compressed file.
Background technology
With the development of internet, the function of intelligent terminal is stronger and stronger so that and the transmission between file is more convenient,
Intelligent terminal (e.g., mobile phone) is treated as a mobile hard disk by many people, for storing or transmitting the instrument of file.
Because excessive file can not be sent directly on intelligent terminal, but need that after compressing intelligent terminal could be sent
On, therefore user is needed first to download compressed package, and file can be just checked after decompression.During compressed package is downloaded, if with
Family forget to compressed package carry out renaming, then user can not subsequently know when in use in compressed package have compressed actually which kind of text
Part is, it is necessary to which decompression is checked that this influences whether the next step operation of user, so as to reduce the operating efficiency of user, shadow one by one
Ring Consumer's Experience.
The content of the invention
The embodiment of the present invention provides a kind of method of preview compressed file, to improve the identification of compressed file, improves
The operating efficiency of user.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
A kind of method of preview compressed file, including:
When intelligent terminal determines to occur to specify trigger event for the compressed file preserved, the compressed file of stating is entered
Row scanning, and the file type for each file for determining to include in the compressed file based on scanning result and file type are total
Number;
Intelligent terminal determines the corresponding default displaying total number of files mesh upper limit of the file type total number, and true respectively
Surely the default displaying file subnumber mesh upper limit of each file type is corresponded to;Wherein, each displaying file subnumber mesh upper limit sum
For the displaying total number of files mesh upper limit;
Intelligent terminal is respectively according to the file subnumber mesh upper limit is shown corresponding to each file type, in corresponding document type
Lower part decompresses the file of respective number, generates corresponding preview image.
Optionally, intelligent terminal determines to occur to specify trigger event for the compressed file preserved, including:
If intelligent terminal determines that user has used the operating gesture specified, it is determined that occurs to specify trigger event;Or
If intelligent terminal determines that user has used the multimedia instruction specified, it is determined that occurs to specify trigger event.
Optionally, intelligent terminal is according to the file subnumber mesh upper limit is shown corresponding to any one file type, in corresponding text
Part type lower part decompresses the file of respective number, generates corresponding preview image, including:
Intelligent terminal is based on the scanning result, judges whether the number of files under any one described file type reaches
The displaying file subnumber mesh upper limit;
If so, respective counts are then selected under any one described file type based on the displaying file subdata upper limit
Purpose file at least carries out file name decompression, and the file name based on acquisition and any one described file type of sign
Icon, generate corresponding preview image;
Otherwise, whole files is selected under any one described file type and at least carries out file name decompression, and
The icon of file name and sign any one file type based on acquisition, generates corresponding preview image.
Optionally, file name decompression is at least carried out to any one file under any one described file type,
And the file name based on acquisition and the icon for characterizing any one file type, corresponding preview image is generated, including:
File name decompression is carried out to any one described file, any one corresponding described file type is obtained and presets
Icon, corresponding preview image is generated based on the file name and the icon;Or
Judge whether any one described file type is file types, if so, then to any one described file
File name decompression is carried out, and the corresponding icon of decompression generation, and base are carried out to the partial document data of the file
Corresponding preview image is generated in the file name and the icon, otherwise, filename is carried out to any one described file
Claim decompression, obtain the default icon of any one corresponding described file type, given birth to based on the file name and the icon
Into corresponding preview image.
Optionally, after generating preview image, further comprise:
For preview image corresponding to the file of identical file type, according to default displaying priority from high to low suitable
Sequence is ranked up;Or/and
For preview image corresponding to the file of different file types, according to default file type priority from high to low
Order be ranked up.
A kind of device of preview compressed file, it is characterised in that including:
Scanning element, when occurring to specify trigger event for the compressed file preserved for determination, compression is stated to described
File is scanned, and the file type and file for each file for determining to include in the compressed file based on scanning result
Type total number;
Determining unit, for determining the corresponding default displaying total number of files mesh upper limit of the file type total number, and
The default displaying file subnumber mesh upper limit of each corresponding file type is determined respectively;Wherein, on each displaying file subnumber mesh
Sum is limited as the displaying total number of files mesh upper limit;
Generation unit, for not according to corresponding to each file type show the file subnumber mesh upper limit, in corresponding document
Type lower part decompresses the file of respective number, generates corresponding preview image.
Optionally, it is determined that when occurring to specify trigger event for the compressed file preserved, the scanning element is used for:
If it is determined that user has used the operating gesture specified, it is determined that occurs to specify trigger event;Or
If it is determined that user has used the multimedia instruction specified, it is determined that occurs to specify trigger event.
Optionally, according to the displaying file subnumber mesh upper limit corresponding to any one file type, under corresponding document type
The file of partial decompressing respective number, when generating corresponding preview image, the generation unit is used for:
Based on the scanning result, judge whether the number of files under any one described file type reaches the displaying
The file subnumber mesh upper limit;
If so, respective counts are then selected under any one described file type based on the displaying file subdata upper limit
Purpose file at least carries out file name decompression, and the file name based on acquisition and any one described file type of sign
Icon, generate corresponding preview image;
Otherwise, whole files is selected under any one described file type and at least carries out file name decompression, and
The icon of file name and sign any one file type based on acquisition, generates corresponding preview image.
Optionally, file name decompression is at least carried out to any one file under any one described file type,
And the file name based on acquisition and the icon for characterizing any one file type, when generating corresponding preview image, institute
Generation unit is stated to be used for:
File name decompression is carried out to any one described file, any one corresponding described file type is obtained and presets
Icon, corresponding preview image is generated based on the file name and the icon;Or
Judge whether any one described file type is file types, if so, then to any one described file
File name decompression is carried out, and the corresponding icon of decompression generation, and base are carried out to the partial document data of the file
Corresponding preview image is generated in the file name and the icon, otherwise, filename is carried out to any one described file
Claim decompression, obtain the default icon of any one corresponding described file type, given birth to based on the file name and the icon
Into corresponding preview image.
Optionally, after generating preview image, the generation unit is further used for:
For preview image corresponding to the file of identical file type, according to default displaying priority from high to low suitable
Sequence is ranked up;Or/and
For preview image corresponding to the file of different file types, according to default file type priority from high to low
Order be ranked up.
In the embodiment of the present invention, intelligent terminal can first pass through the file of each file included in scanning determination compressed file
Type and file type total number, then the corresponding default displaying total number of files mesh upper limit of the file type total number is determined,
And the default displaying file subnumber mesh upper limit of each corresponding file type is determined respectively, finally, then respectively according to each
The displaying file subnumber mesh upper limit corresponding to file type, it is raw in the file of corresponding document type lower part decompression respective number
Into corresponding preview image.So, the preview image that partial decompressing mode generates each file is will pass through, both improves pressure
The identification of contracting file, the long operating time will not be taken again, make user to confirm compressed file within the shortest time
Content, and then effectively improve the operating efficiency of user.
Brief description of the drawings
Fig. 1 is preview compressed file flow chart in the embodiment of the present invention;
Fig. 2 is trigger event schematic diagram in the embodiment of the present invention;
Fig. 3 is the scanning result schematic diagram of compressed file in the embodiment of the present invention;
Fig. 4 A- Fig. 4 D are preview image schematic diagram corresponding to different file type numbers in the embodiment of the present invention;
Fig. 5 is intelligent terminal illustrative view of functional configuration in the embodiment of the present invention.
Embodiment
In order to improve the identification of compressed file, the operating efficiency of user is improved, in the embodiment of the present invention, for compression text
Part with the addition of the function of rapid preview, make user on the premise of not decompressed to compressed file, can smoothly preview it is literary to compressing
The content included in part, so as to make compressed file that there is intuitively identification.
Further description is made to the preferred embodiment of the present invention below in conjunction with the accompanying drawings.
Improve the identification of compressed file so that display is more directly perceived, and user can preview compression text without decompression
Part, the time of decompressing files is saved, improves service speed.
As shown in fig.1, in the embodiment of the present invention, the detailed process that preview is carried out to compressed file is as follows:
Step 100:The compressed file of intelligent terminal for reception transmission is simultaneously preserved.
Specifically, intelligent terminal can receive other-end wirelessly or wired mode transmission compressed file.
Such as, intelligent terminal receives the compressed file of PC transmission by data wire.
And for example, intelligent terminal receives the compressed file of mobile phone other intelligent terminals transmission by MSN.
Step 110:When intelligent terminal determines to occur to specify trigger event for the compressed file preserved, to above-mentioned compression
File is scanned, and the file type for each file for determining to include in compressed file based on scanning result and file type are total
Number.
Specifically, so-called specified trigger event can be according to practical situations and pre- by the developer of intelligent terminal
First set.
For example, the operating gesture specified can be set as trigger event is specified, e.g., the icon of long-press compressed file is (i.e.
Click on duration and exceed given threshold), or, double-click the icon of compressed file.
In another example the multimedia instruction specified can be set to specify trigger event, e.g., it is " pre- that user inputs audio instructions
Look at XX files ".
So that specified trigger event is " long-press " icon as an example, as shown in fig.2, user can pass through in grey hot-zone
" long-press " this operation, to trigger the preview image of intelligent terminal generation compressed file (also known as compressed package).
On the other hand, when being compressed to file, as long as filename is not encrypted, the intelligence of compressed file is obtained
Terminal can be with by being scanned, so as to tentatively know the text for including which type in compressed file actually to compressed file
Part, that is, know the file type of each file, and knows the file that how many kinds of difference file type be present, also known as files classes
Type total number, these information are properly termed as obtaining scanning result, can specifically refer to shown in Fig. 3.
Certainly, only it is to illustrate in Fig. 3, in practical application, user may cannot be directly viewed the scanning result shown in Fig. 3,
Intelligent terminal is voluntarily known, will not be repeated here.
Step 120:Intelligent terminal determines the corresponding default displaying total number of files mesh upper limit of above-mentioned file type total number, with
And the default displaying file subnumber mesh upper limit of each corresponding file type is determined respectively;Wherein, each displaying file subnumber mesh
Upper limit sum is the above-mentioned displaying total number of files mesh upper limit.
In the embodiment of the present invention, different file type total numbers corresponds to the different displaying total number of files mesh upper limits, because
File type is more, corresponding to show that the total number of files mesh upper limit be fewer in order to save the generation time of preview image, without
Under same file type total number, each file type corresponds to different displaying file subnumber mesh respectively again, wherein, it is each
The summation of the displaying file subnumber mesh upper limit corresponding to file type is the displaying total number of files mesh upper limit.
Specifically, when performing step 120, can be in the following ways:
First, the file type total number of each file included in compressed file is determined;
Secondly, it is determined that the corresponding file type total number is default to show the total number of files mesh upper limit, and determine respectively
The corresponding default displaying file subnumber mesh upper limit of each file type, wherein, each displaying file subnumber mesh upper limit sum is
The displaying total number of files mesh upper limit.
Below by four kinds of situations respectively exemplified by step 120 is described in detail.
Situation one:File type total number in compressed file is 1 (only existing a kind of file type), then,
Determine that displaying total number of files mesh upper limit is N1 corresponding to it, it is assumed that N1=8 (is only for example).
And displaying file subnumber mesh upper limit M1 corresponding to file type is further confirmed that, in the embodiment of the present invention, due to
Only a kind of file type, therefore M1-N1=8.
If number of files present in compressed file is more than M1, selects M1 and be shown, optionally, can be according to text
The part date of formation is ranked up, and selects the M1 file generated preview image that the date of formation is nearest.
For example, refering to shown in Fig. 4 A, intelligent terminal determines only to include folder type inside compressed file according to scanning
Multiple files, and number of files is more than 8, then 8 files of file generation previews that intelligent terminal can show date nearest
Image.
On the other hand, if number of files is less than 8, preview image can be generated based on whole files.
In another example refering to shown in Fig. 4 B, intelligent terminal determines only to include picture/mb-type inside compressed file according to scanning
Multiple files, and number of files is more than 8, then 8 pictures of file generation preview graphs that intelligent terminal can show date nearest
Picture.
On the other hand, if number of files is less than 8, preview image can be generated based on whole pictures.
Situation two:The file type total number present in compressed file is more than 1 (i.e. in the presence of two and the file of the above
Type), it is determined that displaying total number of files mesh upper limit is N2 so corresponding to it, it is assumed that N2=N1=8 (is only for example), certainly, N2
Value can also be different with N2, such as N2=10, in the embodiment of the present invention, for convenience of description, only said by taking N2=8 as an example
It is bright.
And further confirm that the displaying file subnumber mesh upper limit corresponding to each default file type.
For example, it is assumed that file is not present in compressed file, but contain document, video, audio, picture and installation
Bag, it is assumed that M1a=2 corresponding to document, M1b=2 corresponding to video, M1c=2 corresponding to audio, M1 corresponding to pictured=2, peace
M1 corresponding to dress bage=2, wherein, M1a+M1b+M1c+M1d+M1e=N2=8.
By taking a kind of file type (e.g., video) as an example, if video number present in compressed file is more than M1b, select
M1b are shown, and optionally, can be ranked up according to the file generated date, select the M1b file that the date of formation is nearest
Generate preview image.
If video number present in compressed file is less than M1b, selects whole videos and be shown.
In another example refering to shown in Fig. 4 C, it is assumed that file in compressed file both be present and file is not present, but contained text
Shelves, video, audio, picture and installation kit, it is assumed that M1a=2 corresponding to document, M1b=2 corresponding to video, M1c corresponding to audio
=2, M1 corresponding to pictured=1, M1 corresponding to installation kite=1, wherein, M1a+M1b+M1c+M1d+M1e=N2=8.
By taking a kind of file type (e.g., video) as an example, if video number present in compressed file is more than M1b, select
M1b are shown, and optionally, can be ranked up according to the file generated date, select the M1b file that the date of formation is nearest
Generate preview image.
In another example refering to shown in Fig. 4 D again, it is assumed that existing file has document, video, audio, figure inside compressed file
Piece and installation kit, it is assumed that M1 corresponding to filex=2, M1a=2 corresponding to document, M1b=1 corresponding to video, audio are corresponding
M1c=1, M1 corresponding to pictured=1, M1 corresponding to installation kite=1, wherein, M1x+M1a+M1b+M1c+M1d+M1e=N2=
8。
By taking a kind of file type (e.g., file) as an example, if video number present in compressed file is more than M1x, then choose
Select M1xIt is individual to be shown, it optionally, can be ranked up according to the file generated date, select the M1 that the date of formation is nearestxIndividual text
Part generates preview image.
If file number present in compressed file is less than M1x, then select whole videos and be shown.
Certainly, above-mentioned N1, N2, M1 etc. value are only for example.In practical application, under different application scene, may be used also
According to different file type total numbers, to set the different displaying total number of files mesh upper limits, and each file type to correspond to
The displaying file subnumber mesh upper limit, optionally, displaying the total number of files mesh upper limit value can be with file type total number
Increase and reduce, so perform, also for the further operating time for saving generation preview image.
For example, if file type total number is 1, the displaying file upper limit total number being correspondingly arranged is 8.
In another example if file type total number is 2, then the displaying file upper limit total number being correspondingly arranged is 7.
In another example if file type total number is 3, then the displaying file upper limit total number being correspondingly arranged is 6.
In another example if file type total number is 4, then the displaying file upper limit total number being correspondingly arranged is 5.
……
Step 130:Intelligent terminal is respectively according to the file subnumber mesh upper limit is shown corresponding to each file type, corresponding
File type lower part decompresses the file of respective number, generates corresponding preview image.
It is specifically, (intelligent when performing step 130 exemplified by hereinafter referred to as file type x) by any one file type
Terminal can judge whether the number of files under file type x reaches the corresponding displaying file subnumber mesh upper limit (e.g., 8);
If so, then intelligent terminal is based on the displaying file subdata upper limit, the file of respective number is selected under file type x
File name decompression, and the file name based on acquisition and the icon for characterizing file type x are at least carried out, generation is corresponding pre-
Look at image.
Otherwise, whole files is selected under file type x and at least carries out file name decompression, and the text based on acquisition
Part title and the icon for characterizing file type x, generate corresponding preview image.
In the embodiment of the present invention, each file type can be corresponded in advance corresponding icon, identical file type are set
Under need to show if there is multiple files, then allow multiple files to use same icon, and pass through the file after decompression
Title is distinguish between.
For example, refering to shown in Fig. 4 A, it is assumed that file type x is file, then can obtain the icon of default file
(file pattern i.e. as shown in Figure 4 A), the file name of each file obtained for decompression mix corresponding file
The icon of folder, so as to generate corresponding preview image.
Optionally, different file types can correspond to different default icons, referring particularly to shown in Fig. 4 C and Fig. 4 D.
Further, by under file type x any one file (exemplified by hereinafter referred to as file x), to file x at least
File name decompression, and the file name based on acquisition and the icon for characterizing file type x are carried out, generates corresponding preview graph
During picture, intelligent terminal can use but be limited to following two modes (being only for example):
First way is:File name decompression is carried out to file x, and obtains the default icons of respective file type x,
File name and icon based on acquisition generate corresponding preview image.
When using first way, intelligent terminal does not differentiate between file content, and the file of any content is using default
Icon generates preview image.
The second way is:Judge whether file type x is file types
If so, then carrying out file name decompression to file x, and file x partial document data are decompressed
Corresponding icon is generated, and corresponding preview image is generated based on acquisition file name and icon;
Otherwise, file name decompression is carried out to file x, the default icons of respective file type x is obtained, based on filename
Claim and icon generates corresponding preview image.
When using the second way, intelligent terminal distinguishes file content, for the file of some file types
(e.g., image), in order to make user more clearly visible know file content, intelligent terminal can decompress partial document data,
To obtain the icon generated by partial document data, so as to make the icon of generation more targeted.
For example, it is assumed that intelligent terminal determines that file x file type x is file types, i.e. image, then intelligent terminal
In addition to being decompressed to file x file name, it can also be decompressed for partial document data, obtain low resolution
The image of rate, so as to combine file x file name, generates corresponding preview image as icon corresponding to file x.
Certainly, the file of alternative document type, e.g., video, document etc., filename can also be based on using same way
Claim and partial document data generate corresponding image, this is no longer going to repeat them.
Based on above-described embodiment, after generating into preview image, further, intelligent terminal can be directed to each preview
Image is ranked up.
In the case of the first, refering to shown in Fig. 4 A and Fig. 4 B, for preview image corresponding to the file of identical file type,
Intelligent terminal is ranked up according to the order of default displaying priority from high to low.
And so-called displaying priority, can be the priority set on date based on file optionally, i.e. date distance
The displaying priority of the nearest file of current time is higher.
In the case of second, refering to shown in Fig. 4 C and Fig. 4 D, for preview image corresponding to the file of different file types,
Intelligent terminal is ranked up according to the order of default file type priority from high to low.
And so-called file type priority, can be the priority that administrative staff pre-set, e.g., file->Text
Shelves->Video->Audio->Image->Installation kit.
Based on above-described embodiment, as shown in fig.5, in the embodiment of the present invention, a kind of device of preview compressed file is (e.g.,
Intelligent terminal), including at least scanning element 50, determining unit 51 and generation unit 52, wherein,
Scanning element 50, when occurring to specify trigger event for the compressed file preserved for determination, pressure is stated to described
Contracting file is scanned, and the file type and text for each file for determining to include in the compressed file based on scanning result
Part type total number;
Determining unit 51, for determining the corresponding default displaying total number of files mesh upper limit of the file type total number, with
And the default displaying file subnumber mesh upper limit of each corresponding file type is determined respectively;Wherein, each displaying file subnumber mesh
Upper limit sum is the displaying total number of files mesh upper limit;
Generation unit 52, for not according to the file subnumber mesh upper limit is shown corresponding to each file type, in corresponding text
Part type lower part decompresses the file of respective number, generates corresponding preview image.
Optionally, it is determined that when occurring to specify trigger event for the compressed file preserved, scanning element 50 is used for:
If it is determined that user has used the operating gesture specified, it is determined that occurs to specify trigger event;Or
If it is determined that user has used the multimedia instruction specified, it is determined that occurs to specify trigger event.
Optionally, according to the displaying file subnumber mesh upper limit corresponding to any one file type, under corresponding document type
The file of partial decompressing respective number, when generating corresponding preview image, generation unit 52 is used for:
Based on the scanning result, judge whether the number of files under any one described file type reaches the displaying
The file subnumber mesh upper limit;
If so, respective counts are then selected under any one described file type based on the displaying file subdata upper limit
Purpose file at least carries out file name decompression, and the file name based on acquisition and any one described file type of sign
Icon, generate corresponding preview image;
Otherwise, whole files is selected under any one described file type and at least carries out file name decompression, and
The icon of file name and sign any one file type based on acquisition, generates corresponding preview image.
Optionally, file name decompression is at least carried out to any one file under any one described file type,
And the file name based on acquisition and the icon for characterizing any one file type, it is raw when generating corresponding preview image
It is used for into unit 52:
File name decompression is carried out to any one described file, any one corresponding described file type is obtained and presets
Icon, corresponding preview image is generated based on the file name and the icon;Or
Judge whether any one described file type is file types, if so, then to any one described file
File name decompression is carried out, and the corresponding icon of decompression generation, and base are carried out to the partial document data of the file
Corresponding preview image is generated in the file name and the icon, otherwise, filename is carried out to any one described file
Claim decompression, obtain the default icon of any one corresponding described file type, given birth to based on the file name and the icon
Into corresponding preview image.
Optionally, after generating preview image, generation unit 52 is further used for:
For preview image corresponding to the file of identical file type, according to default displaying priority from high to low suitable
Sequence is ranked up;Or/and
For preview image corresponding to the file of different file types, according to default file type priority from high to low
Order be ranked up.
In summary, in the embodiment of the present invention, intelligent terminal can first pass through scanning determine compressed file in include it is each
The file type and file type total number of file, then determine that the corresponding default displaying file of the file type total number is total
The number upper limit, and the default displaying file subnumber mesh upper limit of each corresponding file type is determined respectively, finally, then press respectively
According to the file subnumber mesh upper limit is shown corresponding to each file type, in corresponding document type lower part decompression respective number
File, generate corresponding preview image.So, the preview image that partial decompressing mode generates each file is will pass through, both
The identification of compressed file is improved, the long operating time will not be taken again, makes user to confirm pressure within the shortest time
The content of contracting file, and then effectively improve the operating efficiency of user.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.So, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.
Claims (10)
- A kind of 1. method of preview compressed file, it is characterised in that including:When intelligent terminal determines to occur to specify trigger event for the compressed file preserved, the compressed file of stating is swept Retouch, and the file type for each file for determining to include in the compressed file based on scanning result and file type sum Mesh;Intelligent terminal determines the corresponding default displaying total number of files mesh upper limit of the file type total number, and determination pair respectively Answer the default displaying file subnumber mesh upper limit of each file type;Wherein, each displaying file subnumber mesh upper limit sum is institute State the displaying total number of files mesh upper limit;Intelligent terminal is respectively according to the file subnumber mesh upper limit is shown corresponding to each file type, in corresponding document type bottom The file of compression respective number is decomposed, generates corresponding preview image.
- 2. the method as described in claim 1, it is characterised in that intelligent terminal determines to refer to for the compressed file preserved Determine trigger event, including:If intelligent terminal determines that user has used the operating gesture specified, it is determined that occurs to specify trigger event;OrIf intelligent terminal determines that user has used the multimedia instruction specified, it is determined that occurs to specify trigger event.
- 3. method as claimed in claim 1 or 2, it is characterised in that intelligent terminal is according to corresponding to any one file type The file subnumber mesh upper limit is shown, in the file of corresponding document type lower part decompression respective number, generates corresponding preview graph Picture, including:Intelligent terminal is based on the scanning result, judges whether the number of files under any one described file type reaches described Show the file subnumber mesh upper limit;If so, respective number is then selected under any one described file type based on the displaying file subdata upper limit File at least carries out file name decompression, and the file name based on acquisition and the figure for characterizing any one file type Mark, generates corresponding preview image;Otherwise, select whole files under any one described file type and at least carry out file name decompression, and be based on The file name of acquisition and the icon for characterizing any one file type, generate corresponding preview image.
- 4. method as claimed in claim 3, it is characterised in that to any one file under any one described file type File name decompression, and the file name based on acquisition and the icon for characterizing any one file type are at least carried out, Corresponding preview image is generated, including:File name decompression is carried out to any one described file, obtains the default figure of any one corresponding described file type Mark, corresponding preview image is generated based on the file name and the icon;OrJudge whether any one described file type is file types, if so, then being carried out to any one described file File name decompresses, and carries out the corresponding icon of decompression generation to the partial document data of the file, and is based on institute State file name and the icon generates corresponding preview image, otherwise, file name solution is carried out to any one described file Compression, the default icon of any one corresponding described file type is obtained, based on the file name and icon generation phase The preview image answered.
- 5. method as claimed in claim 3, it is characterised in that after generation preview image, further comprise:For preview image corresponding to the file of identical file type, enter according to the order of default displaying priority from high to low Row sequence;Or/andFor preview image corresponding to the file of different file types, according to default file type priority from high to low suitable Sequence is ranked up.
- A kind of 6. device of preview compressed file, it is characterised in that including:Scanning element, when occurring to specify trigger event for the compressed file preserved for determination, compressed file is stated to described It is scanned, and the file type and file type for each file for determining to include in the compressed file based on scanning result Total number;Determining unit, for determining the corresponding default displaying total number of files mesh upper limit of the file type total number, and respectively It is determined that correspond to the default displaying file subnumber mesh upper limit of each file type;Wherein, each displaying file subnumber mesh upper limit it The total number of files mesh upper limit is shown with to be described;Generation unit, for not according to corresponding to each file type show the file subnumber mesh upper limit, in corresponding document type Lower part decompresses the file of respective number, generates corresponding preview image.
- 7. device as claimed in claim 6, it is characterised in that it is determined that occurring to specify triggering thing for the compressed file preserved During part, the scanning element is used for:If it is determined that user has used the operating gesture specified, it is determined that occurs to specify trigger event;OrIf it is determined that user has used the multimedia instruction specified, it is determined that occurs to specify trigger event.
- 8. device as claimed in claims 6 or 7, it is characterised in that show file according to corresponding to any one file type The subnumber mesh upper limit, it is described when generating corresponding preview image in the file of corresponding document type lower part decompression respective number Generation unit is used for:Based on the scanning result, judge whether the number of files under any one described file type reaches the displaying file The subnumber mesh upper limit;If so, respective number is then selected under any one described file type based on the displaying file subdata upper limit File at least carries out file name decompression, and the file name based on acquisition and the figure for characterizing any one file type Mark, generates corresponding preview image;Otherwise, select whole files under any one described file type and at least carry out file name decompression, and be based on The file name of acquisition and the icon for characterizing any one file type, generate corresponding preview image.
- 9. device as claimed in claim 8, it is characterised in that to any one file under any one described file type File name decompression, and the file name based on acquisition and the icon for characterizing any one file type are at least carried out, When generating corresponding preview image, the generation unit is used for:File name decompression is carried out to any one described file, obtains the default figure of any one corresponding described file type Mark, corresponding preview image is generated based on the file name and the icon;OrJudge whether any one described file type is file types, if so, then being carried out to any one described file File name decompresses, and carries out the corresponding icon of decompression generation to the partial document data of the file, and is based on institute State file name and the icon generates corresponding preview image, otherwise, file name solution is carried out to any one described file Compression, the default icon of any one corresponding described file type is obtained, based on the file name and icon generation phase The preview image answered.
- 10. device as claimed in claim 8, it is characterised in that after generation preview image, the generation unit is further used In:For preview image corresponding to the file of identical file type, enter according to the order of default displaying priority from high to low Row sequence;Or/andFor preview image corresponding to the file of different file types, according to default file type priority from high to low suitable Sequence is ranked up.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710661806.9A CN107515704B (en) | 2017-08-04 | 2017-08-04 | Method and device for previewing compressed file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710661806.9A CN107515704B (en) | 2017-08-04 | 2017-08-04 | Method and device for previewing compressed file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107515704A true CN107515704A (en) | 2017-12-26 |
CN107515704B CN107515704B (en) | 2020-01-07 |
Family
ID=60721971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710661806.9A Expired - Fee Related CN107515704B (en) | 2017-08-04 | 2017-08-04 | Method and device for previewing compressed file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107515704B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111009017A (en) * | 2019-10-18 | 2020-04-14 | 珠海格力电器股份有限公司 | Picture compression method and device, storage medium and computer equipment |
CN112835479A (en) * | 2019-11-25 | 2021-05-25 | 腾讯科技(深圳)有限公司 | Compressed file viewing method, device, equipment and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010040592A1 (en) * | 1996-07-29 | 2001-11-15 | Foreman Kevin J. | Graphical user interface for a video editing system |
US20050102184A1 (en) * | 2003-08-27 | 2005-05-12 | Sony Corporation | Content playback method, content playback apparatus, and content distribution method |
CN102054038A (en) * | 2010-12-30 | 2011-05-11 | 东莞宇龙通信科技有限公司 | File decompression method and device as well as mobile terminal |
CN102682013A (en) * | 2011-03-14 | 2012-09-19 | 盛乐信息技术(上海)有限公司 | Method for operating compressed file in network storage appliance |
CN104572966A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Zip file unzipping method and device |
CN104978369A (en) * | 2014-04-14 | 2015-10-14 | 腾讯科技(深圳)有限公司 | File search method and device |
CN106874278A (en) * | 2015-12-11 | 2017-06-20 | 中国电信股份有限公司 | A kind of online method for previewing, device, system and cloud storage platform |
-
2017
- 2017-08-04 CN CN201710661806.9A patent/CN107515704B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010040592A1 (en) * | 1996-07-29 | 2001-11-15 | Foreman Kevin J. | Graphical user interface for a video editing system |
US20050102184A1 (en) * | 2003-08-27 | 2005-05-12 | Sony Corporation | Content playback method, content playback apparatus, and content distribution method |
CN102054038A (en) * | 2010-12-30 | 2011-05-11 | 东莞宇龙通信科技有限公司 | File decompression method and device as well as mobile terminal |
CN102682013A (en) * | 2011-03-14 | 2012-09-19 | 盛乐信息技术(上海)有限公司 | Method for operating compressed file in network storage appliance |
CN104978369A (en) * | 2014-04-14 | 2015-10-14 | 腾讯科技(深圳)有限公司 | File search method and device |
CN104572966A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Zip file unzipping method and device |
CN106874278A (en) * | 2015-12-11 | 2017-06-20 | 中国电信股份有限公司 | A kind of online method for previewing, device, system and cloud storage platform |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111009017A (en) * | 2019-10-18 | 2020-04-14 | 珠海格力电器股份有限公司 | Picture compression method and device, storage medium and computer equipment |
CN111009017B (en) * | 2019-10-18 | 2021-08-17 | 珠海格力电器股份有限公司 | Picture compression method and device, storage medium and computer equipment |
CN112835479A (en) * | 2019-11-25 | 2021-05-25 | 腾讯科技(深圳)有限公司 | Compressed file viewing method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107515704B (en) | 2020-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11689760B2 (en) | Methods and devices for comment information display and interaction, electronic apparatus, and storage medium | |
EP1355270B1 (en) | Thumbnail image browsing method in an embedded system | |
US20060224937A1 (en) | Information output device outputting plurality of information presenting outline of data | |
CN105678073B (en) | Medical image inspection method, apparatus and system | |
US8543940B2 (en) | Method and apparatus for browsing media content and executing functions related to media content | |
US20100115434A1 (en) | User interface generator, information terminal, user interface generation control program, storage medium, and user interface generation method | |
US20110161818A1 (en) | Method and apparatus for video chapter utilization in video player ui | |
CN108173742B (en) | Image data processing method and device | |
EP1739525A1 (en) | Electronic device | |
CN105261032B (en) | Method and apparatus for handling the video frame in video file | |
WO2015077259A1 (en) | Image sharing for online collaborations | |
CN105630525B (en) | Page synchronization method and device | |
CN106021542A (en) | Image display method and image server, terminal | |
CN105323620B (en) | Display device and its control method | |
CN107908337A (en) | Share the method and apparatus of picture material | |
CN106293563A (en) | A kind of control method and electronic equipment | |
CN107515704A (en) | Method and device for previewing compressed file | |
CN112651475A (en) | Two-dimensional code display method, device, equipment and medium | |
US20120324380A1 (en) | Method and apparatus for controlling a spatial relationship between at least two groups of content during movement of the content | |
US20090100365A1 (en) | Zooming transitions | |
CN105324160A (en) | Electronic game machine, electronic game processing method, and electronic game program | |
CN106355547A (en) | Layout editing method and device for combined pictures and mobile terminal | |
US10114518B2 (en) | Information processing system, information processing device, and screen display method | |
CN105487769A (en) | Media file display method and device and electronic equipment | |
CN111552705B (en) | Data processing method and device based on chart, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200107 Termination date: 20200804 |