How to make the png file size less than or equal to a certain amount

Asked 2 years ago, Updated 2 years ago, 47 views

I use Ubuntu.
I would like to reduce the image file capacity of png below a certain level.(e.g., 200KB or less)
I found a way to lower the compression rate, but is there a way to lower the file capacity by setting it up?

I would appreciate it if you could let me know if you know.

ubuntu png

2022-09-30 19:28

1 Answers

PNG is a reversible compression image format.As the questioner said, if you don't change the image data you're expressing, you have to work hard on the compression algorithm for general images.In irreversible compression image formats like JPEG can reduce the size at the cost of increasing loss, but PNG can't at least use such a method in file formats.

The reversibility of the compression is lost, but if you can play with the vertical and horizontal sizes and the number of colors of the image, it is possible to reduce the file size by reducing it.Tools such as pngquant are known to reduce the number of colors.

Also, I'm no longer talking about PNG, but if you want to reduce the file size for the web, you can consider other formats such as WebP.


2022-09-30 19:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.