Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method for compressing png images

A compression method and image technology, which is applied in the field of PNG image compression, can solve the problem of enlargement, etc., and achieve the effect of high compression rate and good processing performance

Inactive Publication Date: 2017-04-12
广东北斗宇航科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

PNG images are generally small, but they can also become large because they contain many unnecessary data blocks

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
  • A method for compressing png images

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] In order to allow those skilled in the art to better understand the technical solutions of the present invention, the present invention will be further described below in conjunction with the accompanying drawings.

[0017] Such as figure 1 Shown, the present invention discloses a kind of compression method of PNG image, comprises the following steps:

[0018] (1) Read the original image, and convert the RGB color space of the original image to the HSV color space.

[0019] For each pixel of the image, let (r, g, b) be the red, green and blue pixel values ​​of the pixel in the RGB space, and the values ​​are real numbers between 0 and 255. Let max=max(r,g,b), min=min(r,g,b). Then the corresponding (h, s, v) values ​​in HSV space are:

[0020] ,

[0021] ,

[0022] .

[0023] (2) Use the pixel data of the image obtained in step (1) to set the palette through the octree method: (a) First create a node with only the root node 0 and initialize it; (b) Divide th...

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 discloses a PNG (Portable Network Graphic) image compression method which comprises the following steps of (1) reading an original image, obtaining RGB (Red Green blue) color space of the original image and converting into HSV (Hue Saturation Value) color space; (2) utilizing image pixel data which are obtained in step (1) to set a palette through an octree method; (3) utilizing the palette which is obtained in step (2) to establish pixel palette index on the image which is obtained in the step (1) to obtain an index image; (4) utilizing the palette which is obtained in the step (2) to perform data compression on pixel data in the index image which is obtained in step (3); and (5) generating a final compressed PNG format image. The PNG image compression method has the advantages of obtaining a perfect PNG format image and being good in processing performance and high in compression ratio at the same time due to the facts that a source image is converted into the PNG format image and unnecessary data blocks are deleted.

Description

technical field [0001] The invention relates to the field of image compression, in particular to a method for compressing PNG pictures. Background technique [0002] With the rapid development of multimedia and communication technology, the transmission of multimedia information puts forward higher requirements for data storage and transmission, and also poses a severe test to the existing limited bandwidth, especially digital image communication with a huge amount of data. It is more difficult to transmit and store, which greatly restricts the development of image communication. For a website, the opening speed of the page is very important. Not only does it directly affect the ranking parameters of the website in search engines, but more importantly, it slows down the page opening speed of visitors. The purpose of image compression is to represent and transmit the original larger image with as few bytes as possible, and require the restored image to have better quality. ...

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/96H04N19/85
Inventor 蔡昭权
Owner 广东北斗宇航科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products