Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for image compression and decompression

An image compression and decompression technology, applied in the computer field, can solve the problems of affecting image display effect, rendering that does not support transparency, image opacity, etc., to reduce storage size, facilitate network transmission and storage, and achieve the effect of compression

Active Publication Date: 2022-03-25
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Among them, the png image is very suitable for network transmission due to its high compression ratio and lossless compression, but the existing png image storage solution is not the best storage strategy, so it is compressed, and most of the images are now processed in the png8 format To compress images in png format, however, images in png8 format have only one alpha channel (opacity), so that the compressed image only has two cases of complete transparency and complete opacity. Although it saves storage space, it does not support transparency. Rendering, which affects the display effect of the image

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 image compression and decompression
  • Method and device for image compression and decompression
  • Method and device for image compression and decompression

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0110] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0111] Wherein, some proper nouns mentioned in the embodiments of the present invention are explained as follows:

[0112] 1. RGBA, the color space of Red-Green-Blue-Alpha, is just the RGB model with additional information. The color used is RGB, which can belong to any RGB color space, making alpha rendering and alpha synthesis possible. The alpha is derived from the Greek letters used in the linear interpolation equation αA+(1-α)B. ...

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 present invention discloses an image compression and decompression method and device. The method includes: acquiring size information, a color value index array and an index value array of a target image in an image compressed file; determining a target image according to the size information of the target image The included pixel position; the pixel position of the target image corresponding to the color value index is determined based on the position of the color value index in the index value array; the color value information corresponding to the color value index in the index value array in the color value index array is used as The color value information of the pixel position corresponding to the color value index; the target image is restored according to the color value information of each pixel position of the target image. The method also includes compressing the target image through the color value index array and the index value array. By adopting the invention, the image size can be reduced and the display effect of the image itself can be ensured, the lossless compression of the image can be effectively realized, and the network transmission consumption of the image in the application can be reduced.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method and device for image compression and decompression. Background technique [0002] With the rapid development of the Internet, people's entertainment, study, and work are inseparable from the Internet. Therefore, more and more websites or applications have appeared to meet people's needs in all aspects. Because of the increase of websites or applications, there is generally more than one Internet product in the same field, and the number of people using Internet products in this field generally does not change very much. Enhance user stickiness, thereby increasing traffic. Research shows that people generally have a deeper memory or impression of images, videos, etc., which makes more Internet products pay more attention to the display effect of their own pages. However, because the display effect of images or videos is better, their own The larger the st...

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/42H04N19/423
CPCH04N19/42H04N19/423
Inventor 康铭海
Owner TENCENT TECH (SHENZHEN) CO LTD