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

PNG image compression method and device, electronic equipment and storage medium

An image compression and image technology, which is applied in the field of image processing, can solve the problems of poor PNG image compression and achieve the effect of realizing PNG image compression and reducing color richness

Pending Publication Date: 2021-07-02
武汉金山办公软件有限公司 +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a PNG image compression method, device, electronic equipment and storage medium to solve the problem of poor PNG image compression effect

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
  • PNG image compression method and device, electronic equipment and storage medium
  • PNG image compression method and device, electronic equipment and storage medium
  • PNG image compression method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0048] The embodiment of the invention discloses a PNG image compression method, such as figure 1 As shown, the following steps may be included:

[0049] In step 101, the PNG image to be compressed is divided into multiple regions, and the borders of adjacent regions in the multiple regions do not overlap.

[0050] Step 102, for each region, calculate the sum of the distances between each pixel in the region and other pixels in the region, as the first distan...

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 provides a PNG image compression method and device, electronic equipment and a storage medium, and the method comprises the steps: dividing a to-be-compressed PNG image into a plurality of regions, calculating the sum value of the distances between each pixel point in each region and other pixel points in the region, and taking the sum value as a first distance sum corresponding to each pixel point; calculating a value obtained by dividing the first distance sum corresponding to each pixel point in the region by the square of the number of pixel points with the same pixel value as the pixel point in the region as a second distance sum of the pixel point; and determining the pixel point with the minimum second distance sum in the region as a reference pixel point in the region; taking each pixel point except the reference pixel point in the region as a to-be-compared pixel point; setting the pixel value of the to-be-compared pixel point of which the distance from the reference pixel point is not greater than a preset distance threshold value as the pixel value of the reference pixel point, and then carrying out lossless compression processing. By the method provided by the embodiment of the invention, the compression effect of the PNG image is improved.

Description

technical field [0001] The invention relates to the technical field of image processing, in particular to a PNG image compression method, device, electronic equipment and storage medium. Background technique [0002] In the field of image processing technology, the larger PNG ((Portable Network Graphics, Portable Network Graphics) image is usually compressed to save the storage space of the image and the transmission speed of the image. At present, for the compression of the PNG image, the application is relatively large. There are many compression methods, mainly by reducing the bit depth of the image, reducing the color richness of the image, and then realizing the compression of the PNG image volume. [0003] In the existing method of compressing PNG images by reducing the bit depth of the image, by counting a limited number of colors that appear more in images with high image bit depths, the limited number can be up to 256, and the counted limited number of colors Defin...

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 Applications(China)
IPC IPC(8): H04N19/42
CPCH04N19/42
Inventor 谢丙堃帅杜娟
Owner 武汉金山办公软件有限公司