View Single Post
Old 01-07-2025, 06:46 PM   #45
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,913
Karma: 32620480
Join Date: Sep 2017
Device: PW3, Galaxy Tab A9+, Moto G7
Quote:
Originally Posted by rkomar View Post
I'm not sure that an application can know the answer to whether it will reduce or not without going ahead, compressing a file and comparing the sizes. Are there existing programs that do it another way?
It would be darn near impossible to predict if a file will shrink when compressed or not. It's much easier to predict that a file WON'T shrink. Files that are already compressed generally won't compress any/much more on a second attempt, and many will actually increase in size. So one might be able to predict that a ZIP file, a PNG file, etc. will not benefit from additional compression attempts (much, if any). You could look at the contents of a file and bounce that against the planned compression algorithm and maybe predict shrinkage or not - but that's pretty much the same thing as just doing the compression in the first place and then looking at the results. Some applications compress their files as a normal course of business. That's just what the developers programmed them to do. An outside separate compression program is not going to know that, and will not be able to predict that those application's files shouldn't be touched.

Last edited by haertig; 01-07-2025 at 06:48 PM.
haertig is offline   Reply With Quote