Method and device for obtaining thumbnails of images

A thumbnail and picture technology, applied in the field of picture processing, can solve the problems of slow speed, insufficient picture formats, and inability to apply high-resolution pictures, etc., to achieve the effect of balancing types and compatibility

Active Publication Date: 2012-11-07
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of realizing the present invention, the inventor found that the method for obtaining thumbnails of pictures in the prior art has at least the following problems: the decoding algorithm is used to completely decode the pictures, the speed is relatively slow, the supported picture formats are not enough, and cannot Suitable for high-resolution images

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for obtaining thumbnails of images
  • Method and device for obtaining thumbnails of images

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0018] The processing flow of a method for obtaining a thumbnail of a picture provided by an embodiment of the present invention is as follows: figure 1 As shown, the following processing steps are included:

[0019] Step 11. Obtain the source picture whose thumbnail needs to be extracted. The above thumbnails are small pictures in the computer that have been scaled down for the source picture, and are usually used for fast loading or browsing multiple pictures at a time. In common application scenarios, the pixel size of the thumbnail is usually below 150*150.

[0020] Step 12. Read the file header of the above-mentioned source picture, obtain the length and width information of the above-mentioned source picture from the file header, and save the length and width information of the above-mentioned source picture.

[0021] Step 13. Obtain the EXIF ​​information in the above source picture, judge whether there is a thumbnail of the above source picture in the EXIF ​​informat...

Embodiment 2

[0036] An embodiment of the present invention also provides a device for obtaining thumbnails of pictures, the specific structure of which is as follows figure 2 As shown, the following modules are included:

[0037] The decoding processing module 21 is used to decode the source picture by using the enhanced graphics device interface GDI+ to obtain the decoded source picture;

[0038] The interpolation processing module 22 is configured to perform scaling and interpolation on the source picture decoded by the decoding processing module to obtain a thumbnail of the source picture.

[0039] The device may also include:

[0040] EXIF information processing module 23, is used for reading the file header of described source picture, obtains the length and width information of described source picture from this file header, calculates the aspect ratio of described source picture according to this length and width information; When When the EXIF ​​information in the source picture...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a device for obtaining thumbnails of images. The method comprises the following steps: under the conditions that a source image belongs to the GDI+ (enhanced graphics device interface)-decoding image format, and the resolution of the source image is less than the set value, using GDI+ (enhanced graphics device interface) to decode the source image; under the conditions that the source image does not belong to the GDI+-decoding image format, and / or the resolution of the source image is not less than the set value, judging whether the source image is more than the JPG (joint picture group) file with the set bit; if yes, using the GDI+ to partly decode the source image; and if no, using Freeimage to decode the source image. The method integrates the methods for generating thumbnails, combines the advantages of the methods, and provides a complete solution; and various factors such as type and compatibility of the supported image formats, the thumbnail-generating speed and the thumbnail-generating quality are effectively balanced.

Description

technical field [0001] The present invention relates to the technical field of picture processing, in particular to a method and device for acquiring a thumbnail of a picture. Background technique [0002] A method for obtaining thumbnails of pictures provided by Microsoft's windows operating system mainly includes: for pictures in the current directory, the operating system first reads the "Thumbs.db" file in the current directory, and the "Thumbs.db" file is A hidden file representing a thumbnail database. When the operating system does not read the "Thumbs.db" file in the current directory or there is no thumbnail of the above picture in the thumbnail database represented by the read "Thumbs.db" file, the operating system will try to obtain the above EXIF (Exchangeable image file format, exchangeable image file) information in the picture, the above-mentioned EXIF ​​information mainly includes: relevant information of digital photos inserted in picture files of various f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06T3/40G06T9/00
Inventor 黄飞跃傅斌杨洋
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products