CN107528897A - A kind of cloud disk reduced graph generating method and device - Google Patents
A kind of cloud disk reduced graph generating method and device Download PDFInfo
- Publication number
- CN107528897A CN107528897A CN201710723434.8A CN201710723434A CN107528897A CN 107528897 A CN107528897 A CN 107528897A CN 201710723434 A CN201710723434 A CN 201710723434A CN 107528897 A CN107528897 A CN 107528897A
- Authority
- CN
- China
- Prior art keywords
- thumbnail
- picture
- video file
- file
- standard
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/561—Adding application-functional data or data for application control, e.g. adding metadata
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Library & Information Science (AREA)
- Television Signal Processing For Recording (AREA)
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of cloud disk reduced graph generating method:When picture or video file are uploaded to cloud disk, according to picture or video file, standard thumbnail is generated;Preserve picture or video file and its standard thumbnail;When the picture or video file of cloud disk need to show thumbnail, according to displaying resolution requirements, judge whether the standard thumbnail of picture or video file meets displaying demand, if so, the standard thumbnail of exhibiting pictures or video file;Otherwise, the thumbnail of displaying resolution requirements is met according to the generation of the standard thumbnail of picture or video file, and be shown.In addition, the invention also discloses a kind of cloud disk thumbnail generating apparatus, including:Thumbnail generation module, upload memory module, display module and judging treatmenting module.The present invention takes to do in storage resource and displaying elapsed time in thumbnail to be considered, and is preferably improved Consumer's Experience, can be reduced the space of thumbnail occupancy, and improves picture formation speed.
Description
Technical field
The present invention relates to network technique field, more particularly to a kind of cloud disk reduced graph generating method and device
Background technology
Cloud disk is a kind of internet storage system, the various files of preservation user, including document beyond the clouds, picture, video,
The files such as tool software.
Cloud disk is uploaded to file by cell-phone customer terminal, web client, pc clients, downloaded, and can check cloud disk
The file of storage.
Client checks that Documents Comparison is similar with windows explorer, can show file using different modes,
Such as list mode, details mode, small icon mode, large icons mode.For picture or video, generation breviary may require that
Figure, shown in different clients.Because system is different, the size of thumbnail is also different, it is necessary to generate various various sizes of breviaries
Figure.
General breviary map generalization has two ways:
(1) to picture or video, prior statistical system needs the various sizes of thumbnail of how many kinds of, is uploading to cloud disk
When, disposable generation, while be stored in cloud disk, and download link is generated, record in the metadata, for client call exhibition
Show.This mode thumbnail displaying speed is fast, and shortcoming is to need to previously generate multiple figures, and it is more to take memory space.
(2) thumbnail is not first generated when file uploads cloud disk, when needing to show thumbnail, in-time generatin, and under generation
Carry link.Thumbnail displaying needs first to wait picture generation.Particularly to HD video or picture, file itself is just big, generation
During consume that CPU, memory source are all a lot, and when many users are asking thumbnail, system resource is slack-off, further shadow
Ring Consumer's Experience.
The content of the invention
For above-mentioned the deficiencies in the prior art, the present invention provides a kind of cloud disk reduced graph generating method and device, in breviary
Figure, which takes to do on storage resource and displaying elapsed time, to be considered, and is preferably improved Consumer's Experience, is reduced as far as possible and storage is provided
The occupancy in source.
On the one hand, the invention discloses a kind of cloud disk reduced graph generating method, including:
S200, according to the picture or video file, generates standard breviary when picture or video file are uploaded to cloud disk
Figure;
S300 preserves the picture or video file and its standard thumbnail;
S400, according to displaying resolution requirements, sentences when the picture or video file of cloud disk need to show thumbnail
Whether the standard thumbnail of the picture or video file of breaking meets displaying demand, if so, into step S500;Otherwise step is entered
Rapid S600;
S500 shows the standard thumbnail of the picture or video file;
S600 meets the contracting of the displaying resolution requirements according to the generation of the standard thumbnail of the picture or video file
Sketch map, and be shown.
Further, in addition to:S700 is not when the file for needing to show is picture or video file, according to the needs
The type of the file of displaying, obtain corresponding default icon and be shown.
Further, in addition to:S340 generates the download address of the standard thumbnail of the picture or video file, and remembers
Record is easy to call in the metadata;
The step S500 includes:S510 calls the standard thumbnail download address of the picture or video file, displaying
The standard thumbnail.
Further, the step S300 includes:The standard thumbnail is optimized compression by S310, and will be described excellent
Change the standard thumbnail after compression and its corresponding picture or video file is stored in cloud disk.
Further, the step S200 includes:
S210 judges that the file is picture file or video file;
S220 chooses the video frame images of the video file, according to the video when the file is video file
Two field picture generates the standard thumbnail of the video file;
S230, according to the picture of the picture file, generates the picture file when the file is picture file
Standard thumbnail.
On the other hand, the invention discloses a kind of cloud disk thumbnail generating apparatus, including:Thumbnail generation module, is used for
When picture or video file are uploaded to cloud disk, according to picture or video file, standard thumbnail is generated;And according to the standard
Thumbnail generation meets the thumbnail of displaying resolution requirements;Memory module is uploaded, for file, standard thumbnail to be stored in
Cloud disk;Display module, for showing the thumbnail of file;Judging treatmenting module, for when the picture or video of cloud disk
When file needs to show thumbnail, according to displaying resolution requirements, judging the standard thumbnail of the picture or video file is
It is no to meet displaying demand, if so, the standard thumbnail of the picture or video file is then shown by the display module, it is no
Then, the thumbnail generation module is controlled to meet the displaying point according to the generation of the standard thumbnail of the picture or video file
The thumbnail of resolution demand, and be shown by the display module.
Further, cloud disk thumbnail generating apparatus of the invention also includes:Acquisition module, for being handled when the judgement
When the file that module judges to need to show is not picture or video file, according to the type of the file for needing to show, obtain
Corresponding default icon, and be shown by the display module.
Further, cloud disk thumbnail generating apparatus of the invention also includes:Operation module, for uploading storage when described
After module stores the standard thumbnail of the picture or video file, the standard thumbnail of the picture or video file is generated
Download address, and record and be easy to the judging treatmenting module to call in the metadata;The judging treatmenting module, it is additionally operable to work as cloud
When the standard thumbnail of the picture or video file of disk meets displaying resolution requirements, the picture or video file are called
Standard thumbnail download address, and pass through the display module and show the standard thumbnail.
Further, the operation module, it is additionally operable to before the upload memory module stores the standard thumbnail,
The standard thumbnail is optimized into compression.
Further, the cloud disk thumbnail generating apparatus also includes:Module is chosen, for when the judging treatmenting module
When the file for judging to upload is video file, the video frame images of the video file are chosen, are easy to the thumbnail generation mould
Root tuber generates the standard thumbnail of the video file according to the video frame images.
By the present invention, picture or video file only generate standard thumbnail when uploading cloud disk, reduce multiple thumbnails
To the occupancy in storage system space;In addition, to the non-standard thumbnail of needs, changed from standard thumbnail, rather than from original
File is changed, and is reduced the occupancy to system resource, is improved conversion speed, improves Consumer's Experience.In brief, it is of the invention
Take to do in storage resource and displaying elapsed time in thumbnail and consider, preferably improve Consumer's Experience, as far as possible reduction pair
The occupancy of storage resource, and improve thumbnail formation speed.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings
His accompanying drawing.
Fig. 1 is a kind of flow chart of the embodiment of cloud disk reduced graph generating method of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of cloud disk reduced graph generating method of the present invention;
Fig. 3 is a kind of flow chart of another embodiment of cloud disk reduced graph generating method of the present invention;
Fig. 4 is another embodiment Plays thumbnail product process figure of cloud disk reduced graph generating method of the present invention;
Fig. 5 is that cloud disk thumbnail shows flow chart in another embodiment of cloud disk reduced graph generating method of the present invention;
Fig. 6 is a kind of embodiment block diagram of cloud disk thumbnail generating apparatus of the present invention;
Fig. 7 is a kind of block diagram of another embodiment of cloud disk thumbnail generating apparatus of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into
One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
The invention discloses a kind of cloud disk reduced graph generating method, embodiment as shown in figure 1, including:
S200, according to the picture or video file, generates standard breviary when picture or video file are uploaded to cloud disk
Figure;
S300 preserves the picture or video file and its standard thumbnail;
S400, according to displaying resolution requirements, sentences when the picture or video file of cloud disk need to show thumbnail
Whether the standard thumbnail of the picture or video file of breaking meets displaying demand, if so, into step S500;Otherwise step is entered
Rapid S600;
S500 shows the standard thumbnail of the picture or video file;
S600 meets the contracting of the displaying resolution requirements according to the generation of the standard thumbnail of the picture or video file
Sketch map, and be shown.
In above-described embodiment, the resolution ratio of standard thumbnail is higher, is the thumbnail intermediate-resolution highest for showing
A kind of thumbnail.Other thumbnails are generated according to standard thumbnail, and resolution ratio standard thumbnail is low.Picture regards
When frequency file is uploaded to cloud disk, a standard thumbnail is only generated according to picture or video file, it is other all kinds of without generating
The thumbnail of resolution ratio, so as to reduce occupancy of multiple thumbnails to storage system space.And in displaying, if necessary to it
The thumbnail of its resolution ratio, then it can be quickly generated according to standard thumbnail, because the thumbnail of other resolution ratio is not basis
Original picture file or video file are come what is generated, and standard thumbnail has been compressed relative to artwork, and file diminishes, according to mark
In the generating process of other sizes (resolution ratio) thumbnail of quasi- thumbnail generation, consumption CPU, memory source are smaller, picture life
Also accelerated into speed.
Preferably, on the basis of above-described embodiment, in addition to:S700 is not picture or video text when the file for needing to show
During part, according to the type of the file for needing to show, obtain corresponding default icon and be shown.
The file type for uploading to cloud disk differs, and when video or picture file upload, we can be according to video or picture
Standard thumbnail corresponding to file generated, the video or picture file and corresponding standard thumbnail are collectively stored in cloud disk.
But the file of the other non-videos or picture uploaded, then corresponding standard thumbnail can not be generated, and simply enter this document
Row storage.And in displaying, if the file of displaying is not picture or video file, can be used according to the type of file
Default icon is shown corresponding to the type.And for picture or video file, then whether first criterion thumbnail meets
Displaying demand, if satisfied, then standard thumbnail is shown, if being unsatisfactory for, then needs to be contracted according to standard
The thumbnail that sketch map generation meets displaying resolution requirements is shown.
Another embodiment of the present invention, as shown in Fig. 2 including:
S200, according to the picture or video file, generates standard breviary when picture or video file are uploaded to cloud disk
Figure;
S300 preserves the picture or video file and its standard thumbnail;
S340 generates the download address of the standard thumbnail of the picture or video file, and records and be easy in the metadata
Call;
S400, according to displaying resolution requirements, sentences when the picture or video file of cloud disk need to show thumbnail
Whether the standard thumbnail of the picture or video file of breaking meets displaying demand, if so, into step S510;Otherwise step is entered
Rapid S600;
S510 calls the standard thumbnail download address of the picture or video file, shows the standard thumbnail;
S600 meets the contracting of the displaying resolution requirements according to the generation of the standard thumbnail of the picture or video file
Sketch map, and be shown.
In above-described embodiment, the download address of the thumbnail can be also generated when standard thumbnail is stored in cloud disk, and this
Individual download address record in the metadata, is easy to call when client shows standard thumbnail.
Metadata (Metadata), also known as broker data, relaying data, to describe data (the data about of data
Data), data attribute (property) information is mainly described, for supporting such as instruction storage location, historical data, resource
The functions such as lookup, file record.Metadata a kind of electronic type catalogue at last, in order to reach the purpose of scheduling, it is necessary to retouching
State and collect the interior perhaps characteristic of data, and then reach the purpose for assisting data retrieval.
In any of the above-described embodiment, the picture or video file and its contracting of corresponding standard are preserved in the step S300
Sketch map, including the standard thumbnail is optimized into compression, and by the standard thumbnail after the optimization compression and its correspondingly
The picture or video file stored in cloud disk.Standard thumbnail is optimized into compression procedure storage, can be passed through
Compression storage thumbnail saves the effect of internal memory so as to reach.
Another embodiment of the present invention, as shown in figure 3, including:
Whether the file that S100 judges to be uploaded to cloud disk is picture or video file, if so, into step S210, is otherwise entered
Enter step S380;
S210 judges that the file is picture file or video file;
S220 chooses the video frame images of the video file, according to the video when the file is video file
Two field picture generates the standard thumbnail of the video file;
S230, according to the picture of the picture file, generates the picture file when the file is picture file
Standard thumbnail;
S300 preserves the picture or video file and its standard thumbnail;
The file is stored in cloud disk by S380;
S390 judges to need whether the file that shows is picture or video file when receiving thumbnail displaying instruction,
If so, into step S400, otherwise into step S700;
S400, according to displaying resolution requirements, sentences when the picture or video file of cloud disk need to show thumbnail
Whether the standard thumbnail of the picture or video file of breaking meets displaying demand, if so, into step S500;Otherwise step is entered
Rapid S600;
S500 shows the standard thumbnail of the picture or video file;
S600 meets the contracting of the displaying resolution requirements according to the generation of the standard thumbnail of the picture or video file
Sketch map, and be shown;
S700 is not when the file for needing to show is picture or video file, according to the class of the file for needing to show
Type, obtain corresponding default icon and be shown.
In the present embodiment, the step of video file generates standard thumbnail is added, can when video file is uploaded to cloud disk
With the video frame images in selecting video file, then standard thumbnail is generated according to video frame images.In addition, the video of cloud disk
File is when playing, if pause, at this moment may also may require that thumbnail, at this time it is also possible to current video frame images are selected,
Then the thumbnail of displaying demand is met according to video frame images generation.
The generating process of thumbnail is changed into two steps by another embodiment of the inventive method, the present embodiment, is upper first
Resolution ratio higher standard thumbnail is generated during transmitting file, this is a kind of breviary of resolution ratio highest that system can be used
Figure, is stored in cloud disk.When client needs to call thumbnail, first judge whether to use standard thumbnail, in this way, directly draw
With if it is not, then being generated from standard thumbnail.Because the relative artwork of thumbnail has been compressed, file diminishes, then second compression
It is few to take resource.Idiographic flow is as follows:
Standard thumbnail generating process is as shown in Figure 4:
Step 1:Client starts file upload;
Step 2:File type is judged, if video file or picture file, then generate standard thumbnail, if not
It is cloud disk, directly deposits, and go to step four
Step 3:Deposit successfully, standard thumbnail download address recorded metadata;
Step 4:Flow terminates.
Thumbnail shows flow, as shown in Figure 5:
Step 1:Client query folder information simultaneously shows file;
Step 2:Sequentially judge one by one file whether video or pictureIf it is not, being shown using default icon, turn step
Rapid five;
Step 3:To video or file, judge whether to show standard thumbnailIn this way, direct normative reference thumbnail chain
Connect;Go to step five;
Step 4:If desired for non-standard thumbnail is shown, then the thumbnail of given resolution is generated simultaneously from standard thumbnail
Displaying;
Step 5:Flow terminates.
In the present embodiment, file only generates standard thumbnail when uploading cloud disk, reduces multiple thumbnails to storage system
The occupancy in space;In addition, to the non-standard thumbnail of needs, change from standard thumbnail, rather than changed from original document, subtracted
Lack the occupancy to system resource, improved conversion speed, improve Consumer's Experience.
Based on identical technical concept, the invention discloses a kind of cloud disk thumbnail generating apparatus, the device can use
The above-mentioned either method embodiment of the present invention, specifically, as shown in fig. 6, including:Thumbnail generation module 10, for working as picture
Or video file according to picture or video file, generates standard thumbnail when being uploaded to cloud disk;And according to the standard thumbnail
Generation meets the thumbnail of displaying resolution requirements;Memory module 20 is uploaded, for file, standard thumbnail to be stored in into cloud
Disk;Display module 30, for showing the thumbnail of file;Judging treatmenting module 40, for when cloud disk the picture or regard
When frequency file needs to show thumbnail, according to resolution requirements are shown, the standard thumbnail of the picture or video file is judged
Whether satisfaction shows demand, if so, the standard thumbnail of the picture or video file is then shown by the display module 30,
Otherwise, the thumbnail generation module 10 is controlled to meet the exhibition according to the generation of the standard thumbnail of the picture or video file
Show the thumbnail of resolution requirements, and be shown by the display module 30.
Preferably, as shown in fig. 7, on the basis of said apparatus embodiment, in addition to:Acquisition module 50, for when described
When the file that judging treatmenting module 40 judges to need to show is not picture or video file, according to the file for needing to show
Type, corresponding default icon is obtained, and be shown by the display module 30.
In above-described embodiment, judging treatmenting module 40 is the equal of a central controller, controls each module coordination to work,
And make important judgement and instruction.Specifically, when file uploads to cloud disk, judging treatmenting module 40 judges whether is the file that uploads
It is picture or video file, if it does, then controlling thumbnail generation module 10 according to the picture or video file generation pair
The standard thumbnail answered, and the picture or video file and its standard thumbnail are stored in cloud by uploading memory module 20
Disk;If the file uploaded is not picture or video file, this document is directly stored in cloud by uploading memory module 20
Disk.When the file of cloud disk needs to show in client, judging treatmenting module 40 judges what each needs were shown one by one again
Whether file is picture or video file, if it is not, then according to the type of this document, by the displaying of display module 30 with
Default icon corresponding to the type, if it is determined that if processing module 40 judges that this document is picture or video file, then need
Determine whether the resolution ratio of standard thumbnail meets the resolution requirements of client displaying, if meeting, then lead to
Standard thumbnail corresponding to crossing the displaying picture of display module 30 or video file, if not meeting, then needs to lead to
The thumbnail that thumbnail generation module 10 meets displaying resolution requirements according to standard thumbnail generation is crossed, then by showing mould
The thumbnail for meeting displaying resolution requirements of generation is shown by block 30.The thumbnail of other resolution ratio is needed if showing
Need to be generated according to standard thumbnail, thus, it will be seen that standard thumbnail be differentiate in the thumbnail of displaying in need
Rate highest thumbnail, that is to say, that standard thumbnail is the thumbnail of highest resolution that possible need to show, different visitors
The resolution requirements of family end displaying are different, (thumbnail dimensions are different in other words), but standard thumbnail is point that can be used
A kind of thumbnail of resolution highest, it is stored in cloud disk, when the thumbnail resolution requirement that client needs to show does not have so
If height, then the thumbnail for meeting client displaying resolution ratio can be generated temporarily further according to standard thumbnail, due to standard
Thumbnail is much smaller relative to original picture file or video file, therefore, new thumbnail is generated according to standard thumbnail
Than generating new thumbnail much faster according to original picture file or video file, and in generating process, consumption CPU, internal memory
Resource is also much smaller, and user experience is high.
As shown in fig. 7, on the basis of any of the above-described embodiment, cloud disk thumbnail generating apparatus of the invention also includes:
Operation module 60, for after the upload memory module 20 stores the standard thumbnail of the picture or video file, generating
The download address of the standard thumbnail of the picture or video file, and record and be easy to the judging treatmenting module in the metadata
40 call;The judging treatmenting module 40, it is additionally operable to when the standard thumbnail of the picture or video file of cloud disk meets exhibition
When showing resolution requirements, the standard thumbnail download address of the picture or video file is called, and passes through the display module
The 30 displaying standard thumbnails.
When picture or video file are uploaded to cloud disk, thumbnail generation module 10 generates according to the picture or video file
Corresponding standard thumbnail, then upload memory module 20 and store the picture or video file and its corresponding standard thumbnail
In cloud disk, operation module 60 generates the download address of the standard thumbnail after standard thumbnail is stored in cloud disk, and records
In the metadata, it is easy to follow-up judging treatmenting module 40 to call.When the file of cloud disk needs to carry out thumbnail displaying in client
When, if it is determined that the resolution ratio of the criterion thumbnail of processing module 40 meets the needs of showing resolution ratio, then just pass through member
Data obtain the download address of standard thumbnail, then call the download address of the standard thumbnail, so as to show that the standard contracts
Sketch map.
Preferably, the operation module 60, be additionally operable to the upload memory module 20 store the standard thumbnail it
Before, the standard thumbnail is optimized into compression.That is, being stored in after standard thumbnail generation before cloud disk, may be used also
Further to optimize compression processing, cloud disk is then stored in again, so can further reduce the memory space of occupancy.
On the basis of any of the above-described embodiment, the cloud disk thumbnail generating apparatus can also include:Module 70 is chosen,
When file for judging to upload when the judging treatmenting module 40 is video file, the frame of video figure of the video file is chosen
Picture, it is easy to the thumbnail generation module 10 to generate the standard thumbnail of the video file according to the video frame images.
In above-described embodiment, for video file, it is necessary to according to the video file selecting video two field picture, then according to regarding
Standard thumbnail corresponding to frequency two field picture regeneration.
In each device embodiment of the present invention, for each picture or video file, it is no longer necessary to generate different sizes
The thumbnail storage of (resolution ratio) substantially reduces the occupancy to the memory space of cloud disk in cloud disk.Without displaying when again
The thumbnail of displaying demand is met to generate according to original picture or video file temporarily, particularly HD video or picture, file
Inherently bigger, consumption CPU, memory source all compare more during generation thumbnail, therefore, are in generation, system resource
Also can be slack-off, Consumer's Experience is influenceed, and the present invention is then to be gone to meet displaying demand corresponding to generation again according to standard thumbnail
Thumbnail, it is smaller to consume CPU during generation, is also not take up more memory source, thumbnail formation speed is fast, and user experience is high.
The device embodiment of the present invention is corresponding with embodiment of the method, and therefore, the ins and outs in embodiment of the method are similarly
Suitable for apparatus of the present invention embodiment, repeated to reduce, it is no longer superfluous to chat.
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 the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (10)
- A kind of 1. cloud disk reduced graph generating method, it is characterised in that including:S200, according to the picture or video file, generates standard thumbnail when picture or video file are uploaded to cloud disk;S300 preserves the picture or video file and its standard thumbnail;S400, according to displaying resolution requirements, judges institute when the picture or video file of cloud disk need to show thumbnail Whether the standard thumbnail for stating picture or video file meets displaying demand, if so, into step S500;Otherwise step is entered S600;S500 shows the standard thumbnail of the picture or video file;S600 meets the thumbnail of the displaying resolution requirements according to the generation of the standard thumbnail of the picture or video file, And it is shown.
- 2. a kind of cloud disk reduced graph generating method according to claim 1, it is characterised in that also include:S700, according to the type of the file for needing to show, obtains when the file for needing to show is not picture or video file Corresponding default icon is taken to be shown.
- 3. a kind of cloud disk reduced graph generating method according to claim 1, it is characterised in that also include:S340 generates the download address of the standard thumbnail of the picture or video file, and records and be easy to adjust in the metadata With;The step S500 includes:S510 calls the standard thumbnail download address of the picture or video file, shows the standard thumbnail.
- 4. a kind of cloud disk reduced graph generating method according to claim 1, it is characterised in that the step S300 includes:The standard thumbnail is optimized compression by S310, and by the standard thumbnail after the optimization compression and its corresponding The picture or video file are stored in cloud disk.
- A kind of 5. cloud disk reduced graph generating method according to claim any one of 1-4, it is characterised in that the step S200 includes:S210 judges that the file is picture file or video file;S220 chooses the video frame images of the video file, according to the frame of video figure when the file is video file Standard thumbnail as generating the video file;S230 is when the file is picture file, according to the picture of the picture file, generates the standard of the picture file Thumbnail.
- A kind of 6. cloud disk thumbnail generating apparatus, it is characterised in that including:Thumbnail generation module, for when picture or video file are uploaded to cloud disk, according to picture or video file, generation mark Quasi- thumbnail;And meet the thumbnail of displaying resolution requirements according to standard thumbnail generation;Memory module is uploaded, for file, standard thumbnail to be stored in into cloud disk;Display module, for showing the thumbnail of file;Judging treatmenting module, for when the picture or video file of cloud disk need to show thumbnail, being divided according to displaying Resolution demand, judges whether the standard thumbnail of the picture or video file meets displaying demand, if so, then passing through the exhibition Show the standard thumbnail of picture described in modules exhibit or video file, otherwise, control the thumbnail generation module according to The generation of the standard thumbnail of picture or video file meets the thumbnail of the displaying resolution requirements, and passes through the displaying mould Block is shown.
- 7. a kind of cloud disk thumbnail generating apparatus according to claim 6, it is characterised in that also include:Acquisition module, when the file for judging to need to show when the judging treatmenting module is not picture or video file, root According to the type of the file for needing to show, corresponding default icon is obtained, and be shown by the display module.
- 8. a kind of cloud disk thumbnail generating apparatus according to claim 6, it is characterised in that also include:Operation module, for after the upload memory module stores the standard thumbnail of the picture or video file, generating The download address of the standard thumbnail of the picture or video file, and record and be easy to the judging treatmenting module in the metadata Call;The judging treatmenting module, it is additionally operable to when the standard thumbnail of the picture or video file of cloud disk meets that displaying is differentiated During rate demand, the standard thumbnail download address of the picture or video file is called, and institute is shown by the display module State standard thumbnail.
- A kind of 9. cloud disk thumbnail generating apparatus according to claim 6, it is characterised in thatThe operation module, it is additionally operable to before the upload memory module stores the standard thumbnail, the standard is contracted Sketch map optimizes compression.
- 10. a kind of cloud disk thumbnail generating apparatus according to claim any one of 6-9, it is characterised in that also include:Module is chosen, when the file for judging to upload when the judging treatmenting module is video file, chooses the video text The video frame images of part, it is easy to the thumbnail generation module to generate the standard of the video file according to the video frame images Thumbnail.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710723434.8A CN107528897A (en) | 2017-08-22 | 2017-08-22 | A kind of cloud disk reduced graph generating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710723434.8A CN107528897A (en) | 2017-08-22 | 2017-08-22 | A kind of cloud disk reduced graph generating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107528897A true CN107528897A (en) | 2017-12-29 |
Family
ID=60681818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710723434.8A Pending CN107528897A (en) | 2017-08-22 | 2017-08-22 | A kind of cloud disk reduced graph generating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107528897A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088787A (en) * | 2018-06-29 | 2018-12-25 | 上海康斐信息技术有限公司 | A kind of test method and system that cloud disk batch uploads |
CN110245262A (en) * | 2019-05-20 | 2019-09-17 | 平安银行股份有限公司 | Image file treating method and apparatus |
CN112328553A (en) * | 2020-08-21 | 2021-02-05 | 海信视像科技股份有限公司 | Thumbnail capturing method and display device |
CN113453069A (en) * | 2021-06-18 | 2021-09-28 | 海信视像科技股份有限公司 | Display device and thumbnail generation method |
CN113542397A (en) * | 2021-07-13 | 2021-10-22 | 中国银行股份有限公司 | Thumbnail display method and device |
CN113727139A (en) * | 2021-07-30 | 2021-11-30 | 北京达佳互联信息技术有限公司 | Method and device for determining cover picture, server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020076A (en) * | 2011-09-23 | 2013-04-03 | 深圳市快播科技有限公司 | Dynamic preview method and device for player video file |
CN103390034A (en) * | 2013-07-12 | 2013-11-13 | 北京小米科技有限责任公司 | Image display method, device, terminal and server |
CN106844580A (en) * | 2017-01-09 | 2017-06-13 | 北京奇虎科技有限公司 | A kind of generation method of thumbnail, device and mobile terminal |
-
2017
- 2017-08-22 CN CN201710723434.8A patent/CN107528897A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020076A (en) * | 2011-09-23 | 2013-04-03 | 深圳市快播科技有限公司 | Dynamic preview method and device for player video file |
CN103390034A (en) * | 2013-07-12 | 2013-11-13 | 北京小米科技有限责任公司 | Image display method, device, terminal and server |
CN106844580A (en) * | 2017-01-09 | 2017-06-13 | 北京奇虎科技有限公司 | A kind of generation method of thumbnail, device and mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088787A (en) * | 2018-06-29 | 2018-12-25 | 上海康斐信息技术有限公司 | A kind of test method and system that cloud disk batch uploads |
CN110245262A (en) * | 2019-05-20 | 2019-09-17 | 平安银行股份有限公司 | Image file treating method and apparatus |
CN112328553A (en) * | 2020-08-21 | 2021-02-05 | 海信视像科技股份有限公司 | Thumbnail capturing method and display device |
CN113453069A (en) * | 2021-06-18 | 2021-09-28 | 海信视像科技股份有限公司 | Display device and thumbnail generation method |
CN113453069B (en) * | 2021-06-18 | 2022-11-11 | 海信视像科技股份有限公司 | Display device and thumbnail generation method |
CN113542397A (en) * | 2021-07-13 | 2021-10-22 | 中国银行股份有限公司 | Thumbnail display method and device |
CN113727139A (en) * | 2021-07-30 | 2021-11-30 | 北京达佳互联信息技术有限公司 | Method and device for determining cover picture, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107528897A (en) | A kind of cloud disk reduced graph generating method and device | |
US11797449B2 (en) | Providing a dynamic digital content cache | |
JP5182680B2 (en) | Visual processing for user interface in content integration framework | |
US9336760B2 (en) | Generating music from image pixels | |
US20150142884A1 (en) | Image Sharing for Online Collaborations | |
US20090262136A1 (en) | Methods, Systems, and Products for Transforming and Rendering Media Data | |
JP2006505862A (en) | Method and system for performing image processing from mobile client device | |
US9251176B2 (en) | Photo chapters organization | |
CN107908337A (en) | Share the method and apparatus of picture material | |
US20150350371A1 (en) | Caching and syncing mechanisms for a cloud library | |
US7703012B2 (en) | Adaptable transfer and publication of digital media | |
CN101179688A (en) | Method and apparatus for implementing dynamic expression picture | |
CN103647916A (en) | Picture storage method and apparatus thereof | |
CN105430393B (en) | Picture processing method, picture processing device, picture processing platform and storage medium | |
DE112017005917T5 (en) | MEDIA CONTENT MANAGEMENT DEVICE | |
CN109272449A (en) | Image display method and device, computer installation and readable storage medium storing program for executing | |
CN106953924B (en) | Processing method of shared information and shared client | |
CN110415318B (en) | Image processing method and device | |
CN110956572A (en) | Image processing method, device and system | |
WO2021166583A1 (en) | Information processing device, information processing method, and program | |
TWI651639B (en) | Method for optimizing a captured photo or a recorded multi-media and system and electric device therefor | |
US9424627B2 (en) | System and method for high-performance client-side in-browser scaling of digital images | |
WO2021166515A1 (en) | Information processing method, server device, and program | |
CN105808603A (en) | Picture management method and device | |
JP4346222B2 (en) | Mobile phone |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171229 |
|
WD01 | Invention patent application deemed withdrawn after publication |