Home > Enterprise >  Archive and compress set of very similar png images
Archive and compress set of very similar png images

Time:12-21

I have tens of thousands of png images that are very similar to each other and I would like to archive them and compress them in the process. I am aware that png files can barely be compressed because it already is a compressed file format. In my case though, these are similar to each other which is why I thought that there may be some program out there that takes advantage of that. Any hints?

EDIT: example image: https://imgur.com/a/N9csZZH

CodePudding user response:

Video compression also tries to take advantage of similar images to compress smaller. You should try a lossless video compression codec such as WebM.

CodePudding user response:

I think it does not matter for PNG or other lossless formats how similar they appear for humans when you want to compress them (in a single tar for example). Only a few bits or pixels difference make each image mathematically a totally different object. When a high compression of zstd cannot do the trick, you won't need to search anymore. You cannot outperform entropy. There is a mathematical limit on compression, and zstd comes close to that.

  • Related