Open sahilpaudel-pe opened 3 years ago
PNG is usually a lossless file format. It stores the image as zipped data.
Jpeg on the other hand is a lossy file format. And thus degrades image quality.
I think png can actually be recompressed, because the pictures we draw are actually 32-bit, but we can convert them to 8-bit images such as websites like tinypng
Reducing the bits is a lossy operation if there are more than 8Bits of color.
Many Websites use slightly lossy compression algorithm by cleaning up some neighbouring pixels. Pngout for example features such things iirc.
I have done some methods to compress the image without changing the size, but the time is too long, so do you know other third-party packages that can solve this problem?
dc.SavePNG("out.png")
Won't this degrade the quality of the image?