MozJpegSharp icon indicating copy to clipboard operation
MozJpegSharp copied to clipboard

Create a small application

Open FredWahl opened this issue 1 year ago • 10 comments

Using your own code, you could make a very useful application. It shoud be given a path and it shoul iterate over all files in tis directory and the sub direcories. It should do the safest thing i.e. make the jpg smaller such that is pixel by pixel identical. When a jpg is found, let mozjpeg create something like jpg.tmp. If this file is smaller, the original file can be overwritten by the contents of jpg.tmp. Either way, jpg.tmp shpuld be deleted afterwards. This is better than deleting the original file and then renaming jpg.tmp since it will cause fragmentation. Most jpg files from your smartcam can be reduced by 6% or so and most people have folders with lots of jpeg files.

Best regards, Fredrik

FredWahl avatar Oct 29 '22 15:10 FredWahl