Thumbnail generation method, device and terminal equipment

A technology of thumbnails and thumbnail images, which is applied in the field of image processing, can solve problems such as full hard disk, memory space consumption, and difficulty in cleaning intermediate files, and achieve the effects of reducing size, solving excessive memory usage, and improving generation efficiency

Active Publication Date: 2020-01-31
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For images with high resolution, the decoded image obtained after complete decoding will occupy up to GB-level memory space, which will lead to a great consumption of memory space. Because it is difficult to clean up the intermediate files, it is easy to cause the hard disk to be full, and at the same time reduce the generation efficiency of thumbnails

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
  • Thumbnail generation method, device and terminal equipment
  • Thumbnail generation method, device and terminal equipment
  • Thumbnail generation method, device and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It is a flow chart of a method for generating a thumbnail provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of generating thumbnails. The method can be executed by a device for generating a thumbnail image, and the device can be implemented by means of hardware and / or software. see figure 1 , the thumbnail generating method provided in this embodiment specifically includes the following:

[0026] S110. Determine the size of the image to be thumbnailed and the size of the target thumbnail, wherein the image to be thumbnailed is a block-compressed image.

[0027] Wherein, the block-compressed image refers to an image obtained by compressing and encoding each image block of a fixed size in the image, and the size of the image to be thumbnailed can be obtained by reading the header file information of the image to be thumbnailed. The thumbnail size can be obtained from the target thumbnail size parameter input by the u...

Embodiment 2

[0041] This embodiment specifically provides a method for generating a thumbnail image on the basis of the first embodiment above. figure 2 It is a flow chart of a method for generating a thumbnail provided in Embodiment 2 of the present invention. see figure 2 , the thumbnail generating method provided in this embodiment specifically includes the following:

[0042] S210. Determine the size of the image to be thumbnailed and the size of the target thumbnail.

[0043] In this embodiment, the image to be thumbnailed is an image in JPEG encoding format as an example. image 3 It is a process schematic diagram of a method for generating a thumbnail provided in Embodiment 2 of the present invention. see image 3 , get the size of the target thumbnail image 160*90 pixels, and get the size of the image to be thumbnailed 3840*2160 pixels by reading the file header information of the image to be thumbnailed.

[0044] S220. Divide the size of the image to be thumbnailed by a pre...

Embodiment 3

[0057] Figure 5 It is a structural schematic diagram of a thumbnail generating device provided in Embodiment 3 of the present invention. The said device can be applied to the case of generating thumbnail images. see Figure 5 The thumbnail generation device 01 provided in this embodiment specifically includes a size determination module 10 , a decoding sampling parameter determination module 20 , a decoded image generation module 30 and a destination thumbnail generation module 40 .

[0058] Wherein, the size determination module 10 can be used to determine the size of the image to be thumbnailed and the size of the target thumbnail, wherein the image to be thumbnailed is a block compressed image; the decoding sampling parameter determination module 20 can be used to The size of the thumbnail image and the size of the target thumbnail determine the decoding sampling parameters; the decoded image generation module 30 can be used to sample and decode the image to be thumbnail...

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 embodiment of the invention discloses a thumbnail generating method, a device and terminal equipment. The method comprises the following steps: determining the size of a to-be-contracted image and the size of the target thumbnail, wherein the to-be-contracted image is the block compressed image; determining a decoding sampling parameter according to the size of the to-be-contracted image and the size of the target thumbnail; performing sampling decoding on the to-be-contracted image according to the decoding sampling parameter to generate a decoded image; and generating the target thumbnail according to the size of the decoded image and the target thumbnail. Through the thumbnail generating method, the device and terminal equipment provided by the embodiment of the invention, the problem that the decoded image occupies large memory is avoided, and the generating efficiency of the thumbnail is improved.

Description

technical field [0001] Embodiments of the present invention relate to image processing technologies, and in particular, to methods, devices and terminal devices for generating thumbnails. Background technique [0002] As a basic service of the Internet, the thumbnail service has a large number of applications in websites, and the image in the image format realized by block compression is the current image industry standard, such as the image in JPEG format. [0003] In the existing methods for generating thumbnails, the whole image is firstly decoded to obtain a decoded image, then the decoded image is sampled according to the target thumbnail size to obtain a thumbnail image, and finally the thumbnail image is encoded to generate a target thumbnail. For images with high resolution, the decoded image obtained after complete decoding will occupy up to GB-level memory space, which will lead to a great consumption of memory space. Because it is difficult to clean up the interm...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04N19/132H04N19/134H04N19/176H04N19/59
CPCH04N19/132H04N19/134H04N19/176H04N19/59
Inventor 李睿袁磊石松然
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) 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